package containerrepository
import "github.com/oslokommune/okctl/pkg/cfn/components/containerrepository"
Package containerrepository knows how to create an AWS ECRepository cloud formation resource
Index ¶
- Constants
- type ContainerRepository
- func New(imageName string) *ContainerRepository
- func (c *ContainerRepository) Name() string
- func (c *ContainerRepository) NamedOutputs() map[string]cloudformation.Output
- func (c *ContainerRepository) Ref() string
- func (c *ContainerRepository) Resource() cloudformation.Resource
- type ImageScanConfiguration
- type TagMutabilityConfiguration
Constants ¶
const ( // TagMutabilityConfigurationMutable enables overwriting existing tags TagMutabilityConfigurationMutable = "MUTABLE" // TagMutabilityConfigurationImmutable disables overwriting existing tags TagMutabilityConfigurationImmutable = "IMMUTABLE" // ImageScanConfigurationOn enables image vulnerability scanning ImageScanConfigurationOn = true // ImageScanConfigurationOff disables image vulnerability scanning ImageScanConfigurationOff = false )
Types ¶
type ContainerRepository ¶
ContainerRepository contains state for building a cloud formation resource
func New ¶
func New(imageName string) *ContainerRepository
New returns an initialised AWS S3 cloud formation template - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html
func (*ContainerRepository) Name ¶
func (c *ContainerRepository) Name() string
Name returns the logical identifier
func (*ContainerRepository) NamedOutputs ¶
func (c *ContainerRepository) NamedOutputs() map[string]cloudformation.Output
NamedOutputs returns the named outputs
func (*ContainerRepository) Ref ¶
func (c *ContainerRepository) Ref() string
Ref returns an aws intrinsic ref to this resource
func (*ContainerRepository) Resource ¶
func (c *ContainerRepository) Resource() cloudformation.Resource
Resource returns the cloud formation resource
type ImageScanConfiguration ¶
type ImageScanConfiguration bool
ImageScanConfiguration configures whether to scan pushed images for security vulnerabilities
type TagMutabilityConfiguration ¶
type TagMutabilityConfiguration string
TagMutabilityConfiguration configures image tag mutability. If mutability is set to Immutable, we'll see an error trying to push an already existing tag
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 22 hours ago –
Tools for package owners.