v1beta1

package
v0.0.0-...-a9f80de Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the queue v1beta1 API group +kubebuilder:object:generate=true +groupName=storage.govsvc.uk

Index

Constants

View Source
const (
	ImageRepositoryResourceName      = "ImageRepository"
	ImageRepositoryName              = "ImageRepositoryName"
	ImageRepositoryURI               = "ImageRepositoryURI"
	ImageRepositoryRegion            = "ImageRepositoryRegion"
	ImageRepositoryResourceIAMPolicy = "ImageRepositoryIAMPolicy"
	AccountIdParameterName           = "AWS::AccountId"
	IAMRoleArnParameterName          = "IAMRoleArn"
)
View Source
const (
	S3BucketResourceName      = "S3Bucket"
	S3BucketName              = "S3BucketName"
	S3BucketURL               = "S3BucketURL"
	S3BucketRegion            = "S3BucketRegion"
	S3BucketResourceIAMPolicy = "S3BucketIAMPolicy"
	IAMRoleParameterName      = "IAMRoleName"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "storage.govsvc.uk", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var DefaultLifecyclePolicy = cloudformation.ECRLifecyclePolicy{
	Rules: []cloudformation.ECRLifecyclePolicyRule{
		{
			RulePriority: 1,
			Description:  "only keep 100 images",
			Selection: cloudformation.ECRLifecyclePolicySelection{
				TagStatus:   "any",
				CountType:   cloudformation.ECRLifecycleMoreThan,
				CountNumber: 100,
			},
			Action: cloudformation.ECRLifecyclePolicyAction{
				Type: cloudformation.ECRLifecyclePolicyExpire,
			},
		},
	},
}

DefaultLifecyclePolicy is the default policy assigned to ECR repositories

Functions

This section is empty.

Types

type AWS

type AWS struct {
}

AWS allows specifying configuration for the S3Bucket

func (*AWS) DeepCopy

func (in *AWS) DeepCopy() *AWS

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWS.

func (*AWS) DeepCopyInto

func (in *AWS) DeepCopyInto(out *AWS)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ImageRepository

type ImageRepository struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec          ImageRepositorySpec `json:"spec,omitempty"`
	object.Status `json:"status,omitempty"`
}

ImageRepository is the Schema for the ImageRepository API

func (*ImageRepository) DeepCopy

func (in *ImageRepository) DeepCopy() *ImageRepository

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepository.

func (*ImageRepository) DeepCopyInto

func (in *ImageRepository) DeepCopyInto(out *ImageRepository)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ImageRepository) DeepCopyObject

func (in *ImageRepository) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ImageRepository) Empty

func (s *ImageRepository) Empty(ctx context.Context, client sdk.Client) error

func (*ImageRepository) GetAWSName

func (s *ImageRepository) GetAWSName() string

func (*ImageRepository) GetSecretName

func (s *ImageRepository) GetSecretName() string

SecretName returns the name of the secret that will be populated with data

func (*ImageRepository) GetStackName

func (s *ImageRepository) GetStackName() string

Name returns the name of the ImageRepository cloudformation stack

func (*ImageRepository) GetStackRoleParameters

func (s *ImageRepository) GetStackRoleParameters(roleName string) ([]*cloudformation.Parameter, error)

GetStackRoleParameters returns additional params based on a target principal resource

func (*ImageRepository) GetStackTemplate

func (s *ImageRepository) GetStackTemplate() (*cloudformation.Template, error)

Template returns a cloudformation Template for provisioning an ImageRepository

type ImageRepositoryList

type ImageRepositoryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ImageRepository `json:"items"`
}

ImageRepositoryList contains a list of ImageRepository

func (*ImageRepositoryList) DeepCopy

func (in *ImageRepositoryList) DeepCopy() *ImageRepositoryList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepositoryList.

func (*ImageRepositoryList) DeepCopyInto

func (in *ImageRepositoryList) DeepCopyInto(out *ImageRepositoryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ImageRepositoryList) DeepCopyObject

func (in *ImageRepositoryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ImageRepositorySpec

type ImageRepositorySpec struct {
	// AWS specific subsection of the resource.
	AWS AWS `json:"aws,omitempty"`
	// Secret name to be used for storing relevant instance secrets for further use.
	Secret string `json:"secret,omitempty"`
}

ImageRepositorySpec defines the desired state of ImageRepository

func (*ImageRepositorySpec) DeepCopy

func (in *ImageRepositorySpec) DeepCopy() *ImageRepositorySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepositorySpec.

func (*ImageRepositorySpec) DeepCopyInto

func (in *ImageRepositorySpec) DeepCopyInto(out *ImageRepositorySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type S3Bucket

type S3Bucket struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec          S3BucketSpec `json:"spec,omitempty"`
	object.Status `json:"status,omitempty"`
}

S3Bucket is the Schema for the S3Bucket API

func (*S3Bucket) DeepCopy

func (in *S3Bucket) DeepCopy() *S3Bucket

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Bucket.

func (*S3Bucket) DeepCopyInto

func (in *S3Bucket) DeepCopyInto(out *S3Bucket)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*S3Bucket) DeepCopyObject

func (in *S3Bucket) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*S3Bucket) Empty

func (s *S3Bucket) Empty(ctx context.Context, client sdk.Client) error

func (*S3Bucket) GetAWSName

func (s *S3Bucket) GetAWSName() string

func (*S3Bucket) GetSecretName

func (s *S3Bucket) GetSecretName() string

SecretName returns the name of the secret that will be populated with data

func (*S3Bucket) GetServiceEntryName

func (s *S3Bucket) GetServiceEntryName() string

func (*S3Bucket) GetServiceEntrySpecs

func (s *S3Bucket) GetServiceEntrySpecs(outputs cloudformation.Outputs) ([]map[string]interface{}, error)

ServiceEntry to whitelist egress access to S3 hostname.

func (*S3Bucket) GetStackName

func (s *S3Bucket) GetStackName() string

Name returns the name of the S3Bucket cloudformation stack

func (*S3Bucket) GetStackRoleParameters

func (s *S3Bucket) GetStackRoleParameters(roleName string) ([]*cloudformation.Parameter, error)

GetStackRoleParameters returns additional params based on a target principal resource

func (*S3Bucket) GetStackTemplate

func (s *S3Bucket) GetStackTemplate() (*cloudformation.Template, error)

Template returns a cloudformation Template for provisioning an S3Bucket

type S3BucketList

type S3BucketList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []S3Bucket `json:"items"`
}

S3BucketList contains a list of S3Bucket

func (*S3BucketList) DeepCopy

func (in *S3BucketList) DeepCopy() *S3BucketList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3BucketList.

func (*S3BucketList) DeepCopyInto

func (in *S3BucketList) DeepCopyInto(out *S3BucketList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*S3BucketList) DeepCopyObject

func (in *S3BucketList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type S3BucketSpec

type S3BucketSpec struct {
	// AWS specific subsection of the resource.
	AWS AWS `json:"aws,omitempty"`
	// Secret name to be used for storing relevant instance secrets for further use.
	Secret string `json:"secret,omitempty"`
	// ServiceEntry name to be used for storing the egress firewall rule to allow tenant access to the bucket
	ServiceEntry string `json:"serviceEntry,omitempty"`
}

S3BucketSpec defines the desired state of S3Bucket

func (*S3BucketSpec) DeepCopy

func (in *S3BucketSpec) DeepCopy() *S3BucketSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3BucketSpec.

func (*S3BucketSpec) DeepCopyInto

func (in *S3BucketSpec) DeepCopyInto(out *S3BucketSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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