Documentation ¶
Index ¶
- Constants
- func ContainerLockName(containerName string) string
- func ImageLockName(imageName string) string
- func ShelloutPack(command string) string
- type BuildOptions
- type BuilderContainer
- type Container
- type ContainerOptions
- type Image
- type ImageInterface
- type StageImage
- func (i *StageImage) Build(options BuildOptions) error
- func (i *StageImage) BuilderContainer() BuilderContainer
- func (i *StageImage) Commit() error
- func (i *StageImage) Container() Container
- func (i *StageImage) Export(name string) error
- func (i StageImage) GetInspect() (*types.ImageInspect, error)
- func (i *StageImage) ID() string
- func (i *StageImage) Import(name string) error
- func (i *StageImage) Inspect() *types.ImageInspect
- func (i *StageImage) Introspect() error
- func (i *StageImage) IsExists() bool
- func (i *StageImage) Labels() map[string]string
- func (i *StageImage) MustGetId() (string, error)
- func (i *StageImage) MustGetInspect() (*types.ImageInspect, error)
- func (i StageImage) Name() string
- func (i *StageImage) Pull() error
- func (i *StageImage) Push() error
- func (i StageImage) ResetInspect() error
- func (i *StageImage) SaveInCache() error
- func (i *StageImage) SyncDockerState() error
- func (i *StageImage) Tag(name string) error
- func (i StageImage) Untag() error
- type StageImageBuilderContainer
- func (c *StageImageBuilderContainer) AddEnv(envs map[string]string)
- func (c *StageImageBuilderContainer) AddExpose(exposes ...string)
- func (c *StageImageBuilderContainer) AddLabel(labels map[string]string)
- func (c *StageImageBuilderContainer) AddRunCommands(commands ...string)
- func (c *StageImageBuilderContainer) AddServiceRunCommands(commands ...string)
- func (c *StageImageBuilderContainer) AddVolume(volumes ...string)
- func (c *StageImageBuilderContainer) AddVolumeFrom(volumesFrom ...string)
- type StageImageContainer
- func (c *StageImageContainer) AddRunCommands(commands ...string)
- func (c *StageImageContainer) AddServiceRunCommands(commands ...string)
- func (c *StageImageContainer) CommitChangeOptions() ContainerOptions
- func (c *StageImageContainer) Name() string
- func (c *StageImageContainer) RunOptions() ContainerOptions
- func (c *StageImageContainer) ServiceCommitChangeOptions() ContainerOptions
- func (c *StageImageContainer) UserCommitChanges() []string
- func (c *StageImageContainer) UserRunCommands() []string
- type StageImageContainerOptions
- func (co *StageImageContainerOptions) AddCmd(cmds ...string)
- func (co *StageImageContainerOptions) AddEntrypoint(entrypoints ...string)
- func (co *StageImageContainerOptions) AddEnv(envs map[string]string)
- func (co *StageImageContainerOptions) AddExpose(exposes ...string)
- func (co *StageImageContainerOptions) AddHealthCheck(check string)
- func (co *StageImageContainerOptions) AddLabel(labels map[string]string)
- func (co *StageImageContainerOptions) AddOnbuild(onbuilds ...string)
- func (co *StageImageContainerOptions) AddStopSignal(signal string)
- func (co *StageImageContainerOptions) AddUser(user string)
- func (co *StageImageContainerOptions) AddVolume(volumes ...string)
- func (co *StageImageContainerOptions) AddVolumeFrom(volumesFrom ...string)
- func (co *StageImageContainerOptions) AddWorkdir(workdir string)
Constants ¶
View Source
const ( WerfLabel = "werf" WerfVersionLabel = "werf-version" WerfCacheVersionLabel = "werf-cache-version" WerfImageLabel = "werf-image" WerfDockerImageName = "werf-docker-image-name" WerfMountTmpDirLabel = "werf-mount-type-tmp-dir" WerfMountBuildDirLabel = "werf-mount-type-build-dir" WerfMountCustomDirLabelPrefix = "werf-mount-type-custom-dir-" WerfImportLabelPrefix = "werf-import-" WerfTagStrategyLabel = "werf-tag-strategy" StageContainerNamePrefix = "werf.build." )
Variables ¶
This section is empty.
Functions ¶
func ContainerLockName ¶
func ImageLockName ¶
func ShelloutPack ¶
Types ¶
type BuildOptions ¶
type BuilderContainer ¶
type Container ¶ added in v1.2.223
type Container interface { Name() string UserRunCommands() []string UserCommitChanges() []string AddServiceRunCommands(commands ...string) AddRunCommands(commands ...string) RunOptions() ContainerOptions CommitChangeOptions() ContainerOptions ServiceCommitChangeOptions() ContainerOptions }
type ContainerOptions ¶
type ContainerOptions interface { AddVolume(volumes ...string) AddVolumeFrom(volumesFrom ...string) AddExpose(exposes ...string) AddEnv(envs map[string]string) AddLabel(labels map[string]string) AddCmd(cmds ...string) AddOnbuild(onbuilds ...string) AddWorkdir(workdir string) AddUser(user string) AddEntrypoint(entrypoints ...string) AddStopSignal(signal string) AddHealthCheck(check string) }
type Image ¶
type Image struct {
*StageImage
}
func NewImage ¶
func NewImage(fromImage *StageImage, name string) *Image
func (Image) GetInspect ¶
func (i Image) GetInspect() (*types.ImageInspect, error)
func (Image) ResetInspect ¶
func (i Image) ResetInspect() error
type ImageInterface ¶
type ImageInterface interface { Name() string Inspect() *types.ImageInspect Labels() map[string]string ID() string MustGetId() (string, error) Container() Container BuilderContainer() BuilderContainer IsExists() bool SyncDockerState() error Pull() error Untag() error SaveInCache() error Build(BuildOptions) error }
type StageImage ¶
type StageImage struct {
// contains filtered or unexported fields
}
func NewStageImage ¶
func NewStageImage(fromImage *StageImage, name string) *StageImage
func (*StageImage) Build ¶
func (i *StageImage) Build(options BuildOptions) error
func (*StageImage) BuilderContainer ¶
func (i *StageImage) BuilderContainer() BuilderContainer
func (*StageImage) Commit ¶
func (i *StageImage) Commit() error
func (*StageImage) Container ¶
func (i *StageImage) Container() Container
func (*StageImage) Export ¶
func (i *StageImage) Export(name string) error
func (StageImage) GetInspect ¶
func (i StageImage) GetInspect() (*types.ImageInspect, error)
func (*StageImage) ID ¶
func (i *StageImage) ID() string
func (*StageImage) Import ¶
func (i *StageImage) Import(name string) error
func (*StageImage) Inspect ¶
func (i *StageImage) Inspect() *types.ImageInspect
func (*StageImage) Introspect ¶
func (i *StageImage) Introspect() error
func (*StageImage) IsExists ¶
func (i *StageImage) IsExists() bool
func (*StageImage) Labels ¶
func (i *StageImage) Labels() map[string]string
func (*StageImage) MustGetId ¶
func (i *StageImage) MustGetId() (string, error)
func (*StageImage) MustGetInspect ¶
func (i *StageImage) MustGetInspect() (*types.ImageInspect, error)
func (*StageImage) Pull ¶
func (i *StageImage) Pull() error
func (*StageImage) Push ¶
func (i *StageImage) Push() error
func (StageImage) ResetInspect ¶
func (i StageImage) ResetInspect() error
func (*StageImage) SaveInCache ¶
func (i *StageImage) SaveInCache() error
func (*StageImage) SyncDockerState ¶
func (i *StageImage) SyncDockerState() error
func (*StageImage) Tag ¶
func (i *StageImage) Tag(name string) error
type StageImageBuilderContainer ¶
type StageImageBuilderContainer struct {
// contains filtered or unexported fields
}
func (*StageImageBuilderContainer) AddEnv ¶
func (c *StageImageBuilderContainer) AddEnv(envs map[string]string)
func (*StageImageBuilderContainer) AddExpose ¶
func (c *StageImageBuilderContainer) AddExpose(exposes ...string)
func (*StageImageBuilderContainer) AddLabel ¶
func (c *StageImageBuilderContainer) AddLabel(labels map[string]string)
func (*StageImageBuilderContainer) AddRunCommands ¶
func (c *StageImageBuilderContainer) AddRunCommands(commands ...string)
func (*StageImageBuilderContainer) AddServiceRunCommands ¶
func (c *StageImageBuilderContainer) AddServiceRunCommands(commands ...string)
func (*StageImageBuilderContainer) AddVolume ¶
func (c *StageImageBuilderContainer) AddVolume(volumes ...string)
func (*StageImageBuilderContainer) AddVolumeFrom ¶
func (c *StageImageBuilderContainer) AddVolumeFrom(volumesFrom ...string)
type StageImageContainer ¶
type StageImageContainer struct {
// contains filtered or unexported fields
}
func (*StageImageContainer) AddRunCommands ¶
func (c *StageImageContainer) AddRunCommands(commands ...string)
func (*StageImageContainer) AddServiceRunCommands ¶
func (c *StageImageContainer) AddServiceRunCommands(commands ...string)
func (*StageImageContainer) CommitChangeOptions ¶
func (c *StageImageContainer) CommitChangeOptions() ContainerOptions
func (*StageImageContainer) Name ¶
func (c *StageImageContainer) Name() string
func (*StageImageContainer) RunOptions ¶
func (c *StageImageContainer) RunOptions() ContainerOptions
func (*StageImageContainer) ServiceCommitChangeOptions ¶
func (c *StageImageContainer) ServiceCommitChangeOptions() ContainerOptions
func (*StageImageContainer) UserCommitChanges ¶
func (c *StageImageContainer) UserCommitChanges() []string
func (*StageImageContainer) UserRunCommands ¶
func (c *StageImageContainer) UserRunCommands() []string
type StageImageContainerOptions ¶
type StageImageContainerOptions struct { Volume []string VolumesFrom []string Expose []string Env map[string]string Label map[string]string Cmd []string Onbuild []string Workdir string User string Entrypoint []string StopSignal string HealthCheck string }
func (*StageImageContainerOptions) AddCmd ¶
func (co *StageImageContainerOptions) AddCmd(cmds ...string)
func (*StageImageContainerOptions) AddEntrypoint ¶
func (co *StageImageContainerOptions) AddEntrypoint(entrypoints ...string)
func (*StageImageContainerOptions) AddEnv ¶
func (co *StageImageContainerOptions) AddEnv(envs map[string]string)
func (*StageImageContainerOptions) AddExpose ¶
func (co *StageImageContainerOptions) AddExpose(exposes ...string)
func (*StageImageContainerOptions) AddHealthCheck ¶
func (co *StageImageContainerOptions) AddHealthCheck(check string)
func (*StageImageContainerOptions) AddLabel ¶
func (co *StageImageContainerOptions) AddLabel(labels map[string]string)
func (*StageImageContainerOptions) AddOnbuild ¶
func (co *StageImageContainerOptions) AddOnbuild(onbuilds ...string)
func (*StageImageContainerOptions) AddStopSignal ¶
func (co *StageImageContainerOptions) AddStopSignal(signal string)
func (*StageImageContainerOptions) AddUser ¶
func (co *StageImageContainerOptions) AddUser(user string)
func (*StageImageContainerOptions) AddVolume ¶
func (co *StageImageContainerOptions) AddVolume(volumes ...string)
func (*StageImageContainerOptions) AddVolumeFrom ¶
func (co *StageImageContainerOptions) AddVolumeFrom(volumesFrom ...string)
func (*StageImageContainerOptions) AddWorkdir ¶
func (co *StageImageContainerOptions) AddWorkdir(workdir string)
Click to show internal directories.
Click to hide internal directories.