ecrutil

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTagsToImage

func AddTagsToImage(sess *session.Session, image string, tags []string) error

AddTagsToImage adds the tags to the existing ECR image. image full URL of the image.

func EnsureRepoExists

func EnsureRepoExists(sess *session.Session, registry string, repo string) error

EnsureRepoExists ensures the repository exists. If the repository exists this function does nothing; if it doesn't exist the repo is created.

Types

type EcrPolicySyncController

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

EcrPolicySyncController knows how to apply EcrPolicySync resources.

func NewEcrPolicySyncController

func NewEcrPolicySyncController(sess *session.Session, opts ...EcrPolicySyncOption) (*EcrPolicySyncController, error)

NewEcrPolicySyncController create a new controller.

func (*EcrPolicySyncController) Apply

func (a *EcrPolicySyncController) Apply(n *yaml.RNode) error

Apply applies the controller.

func (*EcrPolicySyncController) GroupVersionKinds

func (a *EcrPolicySyncController) GroupVersionKinds() []schema.GroupVersionKind

GroupVersionKinds return GVKs.

type EcrPolicySyncOption

type EcrPolicySyncOption func(c *EcrPolicySyncController)

EcrPolicySyncOption is an option

func EcrPolicySyncWithLogger

func EcrPolicySyncWithLogger(log logr.Logger) EcrPolicySyncOption

EcrPolicySyncWithLogger create an option to use the logger.

Jump to

Keyboard shortcuts

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