promote

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(a PromoteApplication) *Handler

func (*Handler) Handler

func (h *Handler) Handler(ctx context.Context, options *Options) error

type HandlerMock

type HandlerMock struct {
	mock.Mock
}

func NewHandlerMock

func NewHandlerMock() *HandlerMock

func (*HandlerMock) Handler

func (h *HandlerMock) Handler(ctx context.Context, options *Options) error

type Options

type Options struct {
	// DryRun is a flag to indicate if the promote should be a dry run
	DryRun bool
	// EnableSemanticVersionTags is a flag to indicate whether to generate semantic version tags
	EnableSemanticVersionTags bool
	// SourceImageName is the name of the image to promote
	SourceImageName string
	// TargetImageName is the name of the image to promote to
	TargetImageName string
	// TargetImageRegistryNamespace is the namespace of the registry to use as target
	TargetImageRegistryNamespace string
	// TargetImageRegistryHost is the host of the registry to use as target
	TargetImageRegistryHost string
	// TargetImageTags is the list of tags to generate
	TargetImageTags []string
	// RemoveTargerImageTags is a flag to indicate whether to remove from local generated image tags
	RemoveTargetImageTags bool
	// DEPRECATEDRemoveTargetImageTags is a flag to indicate whether to remove from local generated image tags
	DEPRECATEDRemoveTargetImageTags bool
	// SemanticVersionTagsTemplates is the list of semantic version tags templates
	SemanticVersionTagsTemplates []string
	// PromoteSourceImageTag is the tag to promote
	PromoteSourceImageTag bool
	// RemoteSourceImage is the flag to indicate whether to promote from remote source image
	RemoteSourceImage bool
}

type PromoteApplication

type PromoteApplication interface {
	Promote(ctx context.Context, options *promote.Options) error
}

PromoteApplication

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL