ecr

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 20 Imported by: 0

README

AWS ECR

The AWS ECR plugin pushes a Docker image to an Elastic Container Registry on AWS.

Components

  1. Registry
  1. AWS ECR Pull
  2. AWS ECS

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_waypoint_builtin_aws_ecr_plugin_proto protoreflect.FileDescriptor
View Source
var Options = []sdk.Option{
	sdk.WithComponents(&Registry{}),
	sdk.WithMappers(ECRImageMapper),
}

Options are the SDK options to use for instantiation.

Functions

func ECRImageMapper added in v0.3.0

func ECRImageMapper(src *Image) *docker.Image

ECRImageMapper maps a ecr.Image to a docker.Image structure.

Types

type Config

type Config struct {
	// AWS Region to access ECR in
	Region string `hcl:"region,optional"`

	// Repository to store the image into
	Repository string `hcl:"repository,optional"`

	// Tag is the tag to apply to the image.
	Tag string `hcl:"tag,attr"`
}

Config is the configuration structure for the registry.

type Image

type Image struct {
	Image        string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	Tag          string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"`
	// contains filtered or unexported fields
}

Image is the artifact type for the registry.

func DockerToEcrImageMapper added in v0.11.4

func DockerToEcrImageMapper(src *docker.Image) *Image

func (*Image) Descriptor deprecated

func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetArchitecture added in v0.8.0

func (x *Image) GetArchitecture() string

func (*Image) GetImage

func (x *Image) GetImage() string

func (*Image) GetTag

func (x *Image) GetTag() string

func (*Image) Name added in v0.3.0

func (i *Image) Name() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type Registry

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

Registry represents access to an AWS registry.

func (*Registry) AccessInfo added in v0.6.0

func (r *Registry) AccessInfo(
	ctx context.Context,
	log hclog.Logger,
	ui terminal.UI,
	src *component.Source,
) (*docker.AccessInfo, error)

AccessInfo returns information on how to access the registry

func (*Registry) AccessInfoFunc added in v0.6.0

func (r *Registry) AccessInfoFunc() interface{}

func (*Registry) Config

func (r *Registry) Config() (interface{}, error)

Config implements Configurable

func (*Registry) Documentation

func (r *Registry) Documentation() (*docs.Documentation, error)

func (*Registry) Push

func (r *Registry) Push(
	ctx context.Context,
	log hclog.Logger,
	img *docker.Image,
	ui terminal.UI,
	src *component.Source,
) (*Image, error)

Push pushes an image to the registry.

func (*Registry) PushFunc

func (r *Registry) PushFunc() interface{}

PushFunc implements component.Registry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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