Versions in this module Expand all Collapse all v1 v1.0.0 Apr 28, 2022 Changes in this version + type BuildOpt func(*buildOpts) error + func WithCacheRef(ref string) BuildOpt + func WithChunkedWithoutHash(enable bool) BuildOpt + func WithNoCache(enable bool) BuildOpt + func WithNoTests(enable bool) BuildOpt + func WithPlainOutput(enable bool) BuildOpt + func WithResolver(r remotes.Resolver) BuildOpt + type BuildSession struct + Client *client.Client + Dest reference.Named + func NewSession(cl *client.Client, targetRef string, options ...BuildOpt) (*BuildSession, error) + func (s *BuildSession) DownloadBaseInfo(ctx context.Context, p *Project) (err error) + func (s *BuildSession) PrintBuildInfo() + type ChunkCombination struct + Chunks []string + Name string + Ref []string + type ChunkConfig struct + Variants []ChunkVariant + type ChunkImageType string + const ImageTypeChunked + const ImageTypeChunkedNoHash + const ImageTypeFull + const ImageTypeTest + type ChunkVariant struct + Args map[string]string + Dockerfile string + Name string + type CombinerOpt func(*combinerOpts) error + func WithTests(cl *client.Client) CombinerOpt + type EnvVarCombination struct + Action EnvVarCombinationAction + Name string + type EnvVarCombinationAction string + const EnvVarCombineMerge + const EnvVarCombineMergeUnique + const EnvVarCombineUseFirst + const EnvVarCombineUseLast + type LoadFromDirOpts struct + FS func(dir string) fs.FS + type Project struct + Base ProjectChunk + Chunks []ProjectChunk + Config ProjectConfig + func LoadFromDir(contextBase string, opts LoadFromDirOpts) (*Project, error) + func (p *Project) BaseRef(build reference.Named) (reference.NamedTagged, error) + func (p *Project) Build(ctx context.Context, session *BuildSession) error + func (p *Project) Combine(ctx context.Context, chunks []string, dest reference.Named, sess *BuildSession, ...) (err error) + type ProjectChunk struct + Args map[string]string + ContextPath string + Dockerfile []byte + Name string + Tests []*testsuites.Spec + func (p *ProjectChunk) Hash(out io.Writer, sess *BuildSession) (string, error) + func (p *ProjectChunk) ImageName(tpe ChunkImageType, sess *BuildSession) (reference.NamedTagged, error) + func (p *ProjectChunk) PrintManifest(out io.Writer, sess *BuildSession) error + type ProjectConfig struct + ChunkIgnore []string + Combiner struct{ ... } + func LoadProjectConfig(dir fs.FS) (*ProjectConfig, error) + func (pc *ProjectConfig) Write(dir string) error + type Registry interface + Pull func(ctx context.Context, ref reference.Reference, cfg interface{}) (manifest *ociv1.Manifest, absref reference.Digested, err error) + Push func(ctx context.Context, ref reference.Named, opts storeInRegistryOptions) (absref reference.Digested, err error) + func NewResolverRegistry(resolver remotes.Resolver) Registry + type StoredTestResult struct + Passed bool