Documentation
¶
Index ¶
- type BuildService
- type Convention
- func (c Convention) Build(ctx context.Context, path, context string) (Image, config.BuildTime, error)
- func (c Convention) EnsureRepository(ctx context.Context, repositoryName string) error
- func (c Convention) Find(ctx context.Context, repositoryName, tag string) (Release, error)
- func (c Convention) GcApply(ctx context.Context, repositoryName string, digests []string) error
- func (c Convention) GcPlan(ctx context.Context, repositoryName string) ([]ReleaseSummary, []string, error)
- func (c Convention) List(ctx context.Context, repositoryName string) ([]ReleaseSummary, error)
- func (c Convention) Publish(ctx context.Context, i Image) error
- func (c Convention) Untag(ctx context.Context, repositoryName, tag string) error
- type EventService
- type Image
- type RegistryService
- type Release
- type ReleaseSummary
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildService ¶
type Convention ¶
func FromServices ¶
func FromServices(c config.Config, r RegistryService, b BuildService) Convention
func (Convention) EnsureRepository ¶
func (c Convention) EnsureRepository(ctx context.Context, repositoryName string) error
func (Convention) GcPlan ¶
func (c Convention) GcPlan(ctx context.Context, repositoryName string) ([]ReleaseSummary, []string, error)
func (Convention) List ¶
func (c Convention) List(ctx context.Context, repositoryName string) ([]ReleaseSummary, error)
type EventService ¶
type Image ¶
type Image struct {
types.ImageInspect
}
type RegistryService ¶
type RegistryService interface { InspectByTag(ctx context.Context, registryId, repositoryName, tag string) (types.ImageInspect, error) ImageUri(ctx context.Context, registryId, registryUrl, repositoryName, tag string) (string, error) List(ctx context.Context, registryId, repositoryName string) (ecr.DescribeImagesOutput, error) Delete(ctx context.Context, registryId, repositoryName string, imageDigests []string) error Untag(ctx context.Context, registryId, repositoryName, tag string) error PutRepository(ctx context.Context, repositoryName string) error }
type Release ¶
type Release struct { Image Uri string AWSArchitecture []lambdatypes.Architecture }
type ReleaseSummary ¶
type Service ¶
type Service struct { Registry RegistryService Build BuildService Event EventService }
Click to show internal directories.
Click to hide internal directories.