release

package
v0.0.0-...-0fd85f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildService

type BuildService interface {
	InspectByTag(ctx context.Context, registryUrl, repository, tag string) (types.ImageInspect, error)
	Build(ctx context.Context, functionPath, contextPath string, labels map[string]string, tags []string) error
	Push(ctx context.Context, tag string) error
}

type Convention

type Convention struct {
	Config  config.Config
	Service Service
}

func (Convention) Build

func (c Convention) Build(ctx context.Context, path, context string) (Image, config.BuildTime, error)

func (Convention) EnsureRepository

func (c Convention) EnsureRepository(ctx context.Context, repositoryName string) error

func (Convention) Find

func (c Convention) Find(ctx context.Context, repositoryName, tag string) (Release, error)

func (Convention) GcApply

func (c Convention) GcApply(ctx context.Context, repositoryName string, digests []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)

func (Convention) Publish

func (c Convention) Publish(ctx context.Context, i Image) error

func (Convention) Untag

func (c Convention) Untag(ctx context.Context, repositoryName, tag string) error

type EventService

type EventService interface {
	Emit(ctx context.Context, accountId, busName, detailType string, detail any) error
}

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 ReleaseSummary struct {
	Branch      string
	GitSha      string
	ImageDigest string
	Released    string
}

type Service

type Service struct {
	Registry RegistryService
	Build    BuildService
	Event    EventService
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳