Documentation ¶
Index ¶
- func Build(ctx context.Context, pullRegistry docker.Registry, ...) error
- func CheckTagsForOverwrite(isSnapshot bool, tags []string, tagWith string, semanticVersion string, ...) error
- type Builder
- type Layer
- type LayerBuilder
- func (l *LayerBuilder) Build(buildConfig docker.BuildConfig, baseImageLayerProvider *LayerProvider) (*LayerProvider, error)
- func (l *LayerBuilder) Pull(ctx context.Context, buildConfig docker.BuildConfig) (*LayerProvider, error)
- func (l *LayerBuilder) Push(ctx context.Context, layers *LayerProvider, tag []string) error
- type LayerProvider
- type Prepper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder interface { Build(buildConfig docker.BuildConfig, baseimageLayers *LayerProvider) (*LayerProvider, error) Pull(ctx context.Context, buildConfig docker.BuildConfig) (*LayerProvider, error) Push(ctx context.Context, buildResult *LayerProvider, tag []string) error }
Builder interface
type Layer ¶
type Layer struct { Digest string Size int Content func(cxt context.Context) (io.ReadCloser, error) }
Layer represent an image blob
type LayerBuilder ¶
type LayerBuilder struct {
// contains filtered or unexported fields
}
LayerBuilder configuration
func (*LayerBuilder) Build ¶
func (l *LayerBuilder) Build(buildConfig docker.BuildConfig, baseImageLayerProvider *LayerProvider) (*LayerProvider, error)
Build container image
func (*LayerBuilder) Pull ¶
func (l *LayerBuilder) Pull(ctx context.Context, buildConfig docker.BuildConfig) (*LayerProvider, error)
Pull layers
func (*LayerBuilder) Push ¶
func (l *LayerBuilder) Push(ctx context.Context, layers *LayerProvider, tag []string) error
Push layers and tags
type LayerProvider ¶
type LayerProvider struct { Manifest *docker.ManifestV2 ContainerConfig *docker.ContainerConfig BaseImage runtime.DockerImage Layers []Layer }
LayerProvider keep track of the image layers
type Prepper ¶
type Prepper func( cfg *config.Config, auroraVersion *runtime.AuroraVersion, deliverable nexus.Deliverable, baseImage runtime.BaseImage) (*docker.BuildConfig, error)
Prepper is a fuction used to prepare a docker image. It is called within the context of the prepare stage
Click to show internal directories.
Click to hide internal directories.