v1alpha1

package
v0.0.0-...-09572fc Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the agill v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=agill.apps

Package v1alpha1 contains API Schema definitions for the agill v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=agill.apps

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "agill.apps", Version: "v1alpha1"}

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

Functions

func DesiredRestrictedPolicyDocForBucket

func DesiredRestrictedPolicyDocForBucket(policyName string, bucketName string) (string, error)

Types

type IAMUser

type IAMUser struct {
	Username string `json:"username"`
}

func (*IAMUser) DeepCopy

func (in *IAMUser) DeepCopy() *IAMUser

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

func (*IAMUser) DeepCopyInto

func (in *IAMUser) DeepCopyInto(out *IAMUser)

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

type S3

type S3 struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              S3Spec   `json:"spec,omitempty"`
	Status            S3Status `json:"status,omitempty"`
}

S3 is the Schema for the s3s API +kubebuilder:subresource:status +kubebuilder:resource:path=s3s,scope=Namespaced +kubebuilder:printcolumn:name="bucket-name",type=string,JSONPath=`.spec.bucketName` +kubebuilder:printcolumn:name="IAM-User",type=string,JSONPath=`.spec.iamUser.username` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (S3) CreateBucketIn

func (s S3) CreateBucketIn() *s3.CreateBucketInput

func (S3) CreateIAMUserIn

func (s S3) CreateIAMUserIn() *iam.CreateUserInput

func (*S3) DeepCopy

func (in *S3) DeepCopy() *S3

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

func (*S3) DeepCopyInto

func (in *S3) DeepCopyInto(out *S3)

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

func (*S3) DeepCopyObject

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

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

func (S3) DeleteBucketIn

func (s S3) DeleteBucketIn() *s3.DeleteBucketInput

func (S3) GetIAMK8SSecretName

func (s S3) GetIAMK8SSecretName() string

func (S3) GetPolicyName

func (s S3) GetPolicyName() string

func (S3) GetRestrictedInlinePolicyInput

func (s S3) GetRestrictedInlinePolicyInput() (*iam.PutUserPolicyInput, error)

func (S3) GetUsername

func (s S3) GetUsername() string

func (S3) PutBucketAccelIn

func (s S3) PutBucketAccelIn() *s3.PutBucketAccelerateConfigurationInput

func (S3) PutBucketAclIn

func (s S3) PutBucketAclIn() *s3.PutBucketAclInput

func (S3) PutBucketPolicyIn

func (s S3) PutBucketPolicyIn() *s3.PutBucketPolicyInput

func (S3) PutBucketVersioningIn

func (s S3) PutBucketVersioningIn() *s3.PutBucketVersioningInput

func (S3) SetBucketLocation

func (s S3) SetBucketLocation() *s3.CreateBucketConfiguration

type S3List

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

S3List contains a list of S3

func (*S3List) DeepCopy

func (in *S3List) DeepCopy() *S3List

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

func (*S3List) DeepCopyInto

func (in *S3List) DeepCopyInto(out *S3List)

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

func (*S3List) DeepCopyObject

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

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

type S3Spec

type S3Spec struct {
	// +optional
	IAMUserSpec IAMUser `json:"iamUser"`

	// +kubebuilder:validation:Required
	Region string `json:"region,required"`

	// +kubebuilder:validation:Required
	BucketName string `json:"bucketName,required"`

	// The canned ACL to apply to the bucket.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum:=private;public-read;public-read-write;authenticated-read
	BucketACL string `json:"bucketACL,required"`

	// Specifies whether you want S3 Object Lock to be enabled for the new bucket.
	// +optional
	EnableObjectLock bool `json:"enableObjectLock,omitempty"`

	// Decides whether versioning should be enabled. Defaults to false.
	// +optional
	EnableVersioning bool `json:"enableVersioning,omitempty"`

	// Decides whether transfer acceleration should be enabled. Defaults to false
	// +optional
	EnableTransferAcceleration bool `json:"enableTransferAcceleration,omitempty"`

	// +optional
	BucketPolicy string `json:"bucketPolicy,omitempty"`
}

S3Spec defines the desired state of S3

func (*S3Spec) DeepCopy

func (in *S3Spec) DeepCopy() *S3Spec

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

func (*S3Spec) DeepCopyInto

func (in *S3Spec) DeepCopyInto(out *S3Spec)

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

type S3Status

type S3Status struct {
	Status string `json:"status"`
}

S3Status defines the observed state of S3

func (*S3Status) DeepCopy

func (in *S3Status) DeepCopy() *S3Status

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

func (*S3Status) DeepCopyInto

func (in *S3Status) DeepCopyInto(out *S3Status)

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