Documentation
¶
Index ¶
- Constants
- func DisplayDockerLog(w io.Writer, in io.Reader) error
- func Publish(ctx context.Context, w io.Writer, images []string, username, password string, ...) error
- func PublishImage(ctx context.Context, w io.Writer, image, username, password string, ...) error
- func SetRepoManager(rm RepoManager)
- type ArtifactoryMvn
- type ArtifactoryPackage
- type ArtifactoryPublisher
- type ArtifactorySql
- type Config
- type DockerConfig
- type DockerPublisher
- type DockerSql
- type DummyPublisher
- type Interface
- type PrepareImage
- type PreparePackage
- type PublishContext
- type RepoChannel
- type RepoManager
- type Repository
Constants ¶
View Source
const (
Dockerfile = "Dockerfile"
)
View Source
const PublishConfigFileName = "Buildpackfile.publish"
Variables ¶
This section is empty.
Functions ¶
func PublishImage ¶
func SetRepoManager ¶
func SetRepoManager(rm RepoManager)
Types ¶
type ArtifactoryMvn ¶
type ArtifactoryMvn struct {
ArtifactoryPublisher
}
type ArtifactoryPackage ¶
type ArtifactoryPublisher ¶
type ArtifactoryPublisher struct {
PreparePackage
}
func (ArtifactoryPublisher) PostPublish ¶
func (n ArtifactoryPublisher) PostPublish(ctx PublishContext) error
func (ArtifactoryPublisher) PrePublish ¶
func (n ArtifactoryPublisher) PrePublish(ctx PublishContext) error
func (ArtifactoryPublisher) Publish ¶
func (n ArtifactoryPublisher) Publish(ctx PublishContext) error
type ArtifactorySql ¶
type ArtifactorySql struct {
ArtifactoryPublisher
}
type Config ¶
type Config struct {
Publisher string `yaml:"publisher,omitempty"`
Repository string `yaml:"repository,omitempty"`
}
func ReadConfig ¶
type DockerConfig ¶
type DockerConfig struct {
Config
Tag string `yaml:"tag,omitempty"`
Registries []string `yaml:"registries,omitempty"`
}
func ReadDockerConfig ¶
func ReadDockerConfig(moduleDir string) (c DockerConfig, err error)
type DockerPublisher ¶
type DockerPublisher struct {
PrepareImage
}
func (DockerPublisher) PostPublish ¶
func (n DockerPublisher) PostPublish(ctx PublishContext) error
func (DockerPublisher) PrePublish ¶
func (n DockerPublisher) PrePublish(ctx PublishContext) error
func (DockerPublisher) Publish ¶
func (n DockerPublisher) Publish(ctx PublishContext) error
type DockerSql ¶
type DockerSql struct {
DockerPublisher
}
type DummyPublisher ¶
type DummyPublisher struct {
}
func (DummyPublisher) PostPublish ¶
func (n DummyPublisher) PostPublish(ctx PublishContext) error
func (DummyPublisher) PrePublish ¶
func (n DummyPublisher) PrePublish(ctx PublishContext) error
func (DummyPublisher) Publish ¶
func (n DummyPublisher) Publish(ctx PublishContext) error
type Interface ¶
type Interface interface {
PrePublish(ctx PublishContext) error
Publish(ctx PublishContext) error
PostPublish(ctx PublishContext) error
}
func GetPublisher ¶
type PrepareImage ¶
type PrepareImage func(ctx PublishContext, client common.DockerClient) ([]string, error)
type PreparePackage ¶
type PreparePackage func(ctx PublishContext) ([]ArtifactoryPackage, error)
type PublishContext ¶
type RepoChannel ¶
func PickChannel ¶
func PickChannel(name string, stable bool) (rc RepoChannel, err error)
func PickChannelByAddress ¶
func PickChannelByAddress(address string, stable bool) (rc RepoChannel, err error)
type RepoManager ¶
type RepoManager struct {
Repos map[string]Repository
}
type Repository ¶
type Repository struct {
Name string
Stable *RepoChannel
Unstable *RepoChannel
}
func PickOne ¶
func PickOne(name string) (r Repository, err error)
Click to show internal directories.
Click to hide internal directories.