v1alpha1

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains managed resources for GCP storage services such as GCS bucket policies. +kubebuilder:object:generate=true +groupName=storage.gcp.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "storage.gcp.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	BucketPolicyKind             = reflect.TypeOf(BucketPolicy{}).Name()
	BucketPolicyGroupKind        = schema.GroupKind{Group: Group, Kind: BucketPolicyKind}.String()
	BucketPolicyKindAPIVersion   = BucketPolicyKind + "." + SchemeGroupVersion.String()
	BucketPolicyGroupVersionKind = SchemeGroupVersion.WithKind(BucketPolicyKind)
)

BucketPolicy type metadata.

View Source
var (
	BucketPolicyMemberKind             = reflect.TypeOf(BucketPolicyMember{}).Name()
	BucketPolicyMemberGroupKind        = schema.GroupKind{Group: Group, Kind: BucketPolicyMemberKind}.String()
	BucketPolicyMemberKindAPIVersion   = BucketPolicyMemberKind + "." + SchemeGroupVersion.String()
	BucketPolicyMemberGroupVersionKind = SchemeGroupVersion.WithKind(BucketPolicyMemberKind)
)

BucketPolicyMember type metadata.

Functions

This section is empty.

Types

type BucketPolicy

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

	Spec   BucketPolicySpec   `json:"spec"`
	Status BucketPolicyStatus `json:"status,omitempty"`
}

BucketPolicy is a managed resource that represents a Google Cloud Storage Bucket IAM Policy. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:resource:scope=Cluster +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}

func (*BucketPolicy) DeepCopy

func (in *BucketPolicy) DeepCopy() *BucketPolicy

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

func (*BucketPolicy) DeepCopyInto

func (in *BucketPolicy) DeepCopyInto(out *BucketPolicy)

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

func (*BucketPolicy) DeepCopyObject

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

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

func (*BucketPolicy) GetCondition

func (mg *BucketPolicy) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this BucketPolicy.

func (*BucketPolicy) GetDeletionPolicy

func (mg *BucketPolicy) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this BucketPolicy.

func (*BucketPolicy) GetProviderConfigReference

func (mg *BucketPolicy) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this BucketPolicy.

func (*BucketPolicy) GetProviderReference

func (mg *BucketPolicy) GetProviderReference() *xpv1.Reference

GetProviderReference of this BucketPolicy. Deprecated: Use GetProviderConfigReference.

func (*BucketPolicy) GetPublishConnectionDetailsTo

func (mg *BucketPolicy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this BucketPolicy.

func (*BucketPolicy) GetWriteConnectionSecretToReference

func (mg *BucketPolicy) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this BucketPolicy.

func (*BucketPolicy) ResolveReferences

func (in *BucketPolicy) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this BucketPolicy

func (*BucketPolicy) SetConditions

func (mg *BucketPolicy) SetConditions(c ...xpv1.Condition)

SetConditions of this BucketPolicy.

func (*BucketPolicy) SetDeletionPolicy

func (mg *BucketPolicy) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this BucketPolicy.

func (*BucketPolicy) SetProviderConfigReference

func (mg *BucketPolicy) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this BucketPolicy.

func (*BucketPolicy) SetProviderReference

func (mg *BucketPolicy) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this BucketPolicy. Deprecated: Use SetProviderConfigReference.

func (*BucketPolicy) SetPublishConnectionDetailsTo

func (mg *BucketPolicy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this BucketPolicy.

func (*BucketPolicy) SetWriteConnectionSecretToReference

func (mg *BucketPolicy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this BucketPolicy.

type BucketPolicyList

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

BucketPolicyList contains a list of BucketPolicy types

func (*BucketPolicyList) DeepCopy

func (in *BucketPolicyList) DeepCopy() *BucketPolicyList

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

func (*BucketPolicyList) DeepCopyInto

func (in *BucketPolicyList) DeepCopyInto(out *BucketPolicyList)

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

func (*BucketPolicyList) DeepCopyObject

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

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

func (*BucketPolicyList) GetItems

func (l *BucketPolicyList) GetItems() []resource.Managed

GetItems of this BucketPolicyList.

type BucketPolicyMember

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

	Spec   BucketPolicyMemberSpec   `json:"spec"`
	Status BucketPolicyMemberStatus `json:"status,omitempty"`
}

BucketPolicyMember is a managed resource that represents membership of a Google Cloud Storage Bucket IAM Policy. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:resource:scope=Cluster +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}

func (*BucketPolicyMember) DeepCopy

func (in *BucketPolicyMember) DeepCopy() *BucketPolicyMember

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

func (*BucketPolicyMember) DeepCopyInto

func (in *BucketPolicyMember) DeepCopyInto(out *BucketPolicyMember)

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

func (*BucketPolicyMember) DeepCopyObject

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

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

func (*BucketPolicyMember) GetCondition

func (mg *BucketPolicyMember) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this BucketPolicyMember.

func (*BucketPolicyMember) GetDeletionPolicy

func (mg *BucketPolicyMember) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this BucketPolicyMember.

func (*BucketPolicyMember) GetProviderConfigReference

func (mg *BucketPolicyMember) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this BucketPolicyMember.

func (*BucketPolicyMember) GetProviderReference

func (mg *BucketPolicyMember) GetProviderReference() *xpv1.Reference

GetProviderReference of this BucketPolicyMember. Deprecated: Use GetProviderConfigReference.

func (*BucketPolicyMember) GetPublishConnectionDetailsTo

func (mg *BucketPolicyMember) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this BucketPolicyMember.

func (*BucketPolicyMember) GetWriteConnectionSecretToReference

func (mg *BucketPolicyMember) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this BucketPolicyMember.

func (*BucketPolicyMember) ResolveReferences

func (in *BucketPolicyMember) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this BucketPolicyMember

func (*BucketPolicyMember) SetConditions

func (mg *BucketPolicyMember) SetConditions(c ...xpv1.Condition)

SetConditions of this BucketPolicyMember.

func (*BucketPolicyMember) SetDeletionPolicy

func (mg *BucketPolicyMember) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this BucketPolicyMember.

func (*BucketPolicyMember) SetProviderConfigReference

func (mg *BucketPolicyMember) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this BucketPolicyMember.

func (*BucketPolicyMember) SetProviderReference

func (mg *BucketPolicyMember) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this BucketPolicyMember. Deprecated: Use SetProviderConfigReference.

func (*BucketPolicyMember) SetPublishConnectionDetailsTo

func (mg *BucketPolicyMember) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this BucketPolicyMember.

func (*BucketPolicyMember) SetWriteConnectionSecretToReference

func (mg *BucketPolicyMember) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this BucketPolicyMember.

type BucketPolicyMemberList

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

BucketPolicyMemberList contains a list of BucketPolicyMember types

func (*BucketPolicyMemberList) DeepCopy

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

func (*BucketPolicyMemberList) DeepCopyInto

func (in *BucketPolicyMemberList) DeepCopyInto(out *BucketPolicyMemberList)

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

func (*BucketPolicyMemberList) DeepCopyObject

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

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

func (*BucketPolicyMemberList) GetItems

func (l *BucketPolicyMemberList) GetItems() []resource.Managed

GetItems of this BucketPolicyMemberList.

type BucketPolicyMemberParameters

type BucketPolicyMemberParameters struct {
	// Bucket: The RRN of the Bucket to which this BucketPolicyMember belongs.
	// +optional
	// +immutable
	Bucket *string `json:"bucket,omitempty"`

	// BucketRef references a Bucket and retrieves its URI
	// +optional
	// +immutable
	BucketRef *xpv1.Reference `json:"bucketRef,omitempty"`

	// BucketSelector selects a reference to a Bucket
	// +optional
	BucketSelector *xpv1.Selector `json:"bucketSelector,omitempty"`

	// Role: Role that is assigned to `members`.
	// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
	// +immutable
	Role string `json:"role"`

	// Member: Specifies the identity requesting access for a Cloud
	// Platform resource.
	// `member` can have the following values:
	//
	// * `allUsers`: A special identifier that represents anyone who is
	//    on the internet; with or without a Google account.
	//
	// * `allAuthenticatedUsers`: A special identifier that represents
	// anyone
	//    who is authenticated with a Google account or a service
	// account.
	//
	// * `user:{emailid}`: An email address that represents a specific
	// Google
	//    account. For example, `alice@example.com` .
	//
	//
	// * `serviceAccount:{emailid}`: An email address that represents a
	// service
	//    account. For example,
	// `my-other-app@appspot.gserviceaccount.com`.
	//
	// * `group:{emailid}`: An email address that represents a Google
	// group.
	//    For example, `admins@example.com`.
	//
	// * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
	// unique
	//    identifier) representing a user that has been recently deleted.
	// For
	//    example, `alice@example.com?uid=123456789012345678901`. If the
	// user is
	//    recovered, this value reverts to `user:{emailid}` and the
	// recovered user
	//    retains the role in the binding.
	//
	// * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
	// (plus
	//    unique identifier) representing a service account that has been
	// recently
	//    deleted. For example,
	//
	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
	//
	//    If the service account is undeleted, this value reverts to
	//    `serviceAccount:{emailid}` and the undeleted service account
	// retains the
	//    role in the binding.
	//
	// * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus
	// unique
	//    identifier) representing a Google group that has been recently
	//    deleted. For example,
	// `admins@example.com?uid=123456789012345678901`. If
	//    the group is recovered, this value reverts to `group:{emailid}`
	// and the
	//    recovered group retains the role in the binding.
	//
	//
	// * `domain:{domain}`: The G Suite domain (primary) that represents all
	// the
	//    users of that domain. For example, `google.com` or
	// `example.com`.
	//
	//
	// +optional
	// +immutable
	Member *string `json:"member,omitempty"`

	// ServiceAccountMemberRef is reference to ServiceAccount used to set
	// the Member.
	// +optional
	// +immutable
	ServiceAccountMemberRef *xpv1.Reference `json:"serviceAccountMemberRef,omitempty"`

	// ServiceAccountMemberSelector selects reference to ServiceAccount used
	// to set the Member.
	// +optional
	// +immutable
	ServiceAccountMemberSelector *xpv1.Selector `json:"serviceAccountMemberSelector,omitempty"`
}

BucketPolicyMemberParameters defines parameters for a desired KMS BucketPolicyMember

func (*BucketPolicyMemberParameters) DeepCopy

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

func (*BucketPolicyMemberParameters) DeepCopyInto

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

type BucketPolicyMemberSpec

type BucketPolicyMemberSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       BucketPolicyMemberParameters `json:"forProvider"`
}

BucketPolicyMemberSpec defines the desired state of a BucketPolicyMember.

func (*BucketPolicyMemberSpec) DeepCopy

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

func (*BucketPolicyMemberSpec) DeepCopyInto

func (in *BucketPolicyMemberSpec) DeepCopyInto(out *BucketPolicyMemberSpec)

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

type BucketPolicyMemberStatus

type BucketPolicyMemberStatus struct {
	xpv1.ResourceStatus `json:",inline"`
}

BucketPolicyMemberStatus represents the observed state of a BucketPolicyMember.

func (*BucketPolicyMemberStatus) DeepCopy

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

func (*BucketPolicyMemberStatus) DeepCopyInto

func (in *BucketPolicyMemberStatus) DeepCopyInto(out *BucketPolicyMemberStatus)

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

type BucketPolicyObservation

type BucketPolicyObservation struct {
	// Version: Specifies the format of the policy.
	//
	// Valid values are `0`, `1`, and `3`. Requests that specify an invalid
	// value
	// are rejected.
	//
	// Any operation that affects conditional role bindings must specify
	// version
	// `3`. This requirement applies to the following operations:
	//
	// * Getting a policy that includes a conditional role binding
	// * Adding a conditional role binding to a policy
	// * Changing a conditional role binding in a policy
	// * Removing any role binding, with or without a condition, from a
	// policy
	//   that includes conditions
	//
	// **Important:** If you use IAM Conditions, you must include the `etag`
	// field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM
	// allows
	// you to overwrite a version `3` policy with a version `1` policy, and
	// all of
	// the conditions in the version `3` policy are lost.
	//
	// If a policy does not include any conditions, operations on that
	// policy may
	// specify any valid version or leave the field unset.
	Version int64 `json:"version,omitempty"`
}

BucketPolicyObservation is used to show the observed state of the BucketPolicy resource on GCP. All fields in this structure should only be populated from GCP responses; any changes made to the k8s resource outside of the crossplane gcp controller will be ignored and overwritten.

func (*BucketPolicyObservation) DeepCopy

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

func (*BucketPolicyObservation) DeepCopyInto

func (in *BucketPolicyObservation) DeepCopyInto(out *BucketPolicyObservation)

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

type BucketPolicyParameters

type BucketPolicyParameters struct {
	// Bucket: The RRN of the Bucket to which this BucketPolicy belongs.
	// +optional
	// +immutable
	Bucket *string `json:"bucket,omitempty"`

	// BucketRef references a Bucket and retrieves its URI
	// +optional
	// +immutable
	BucketRef *xpv1.Reference `json:"bucketRef,omitempty"`

	// BucketSelector selects a reference to a Bucket
	// +optional
	BucketSelector *xpv1.Selector `json:"bucketSelector,omitempty"`

	// Policy: An Identity and Access Management (IAM) policy, which
	// specifies access controls for Google Cloud resources.
	Policy iamv1alpha1.Policy `json:"policy"`
}

BucketPolicyParameters defines parameters for a desired KMS BucketPolicy

func (*BucketPolicyParameters) DeepCopy

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

func (*BucketPolicyParameters) DeepCopyInto

func (in *BucketPolicyParameters) DeepCopyInto(out *BucketPolicyParameters)

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

type BucketPolicySpec

type BucketPolicySpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       BucketPolicyParameters `json:"forProvider"`
}

BucketPolicySpec defines the desired state of a BucketPolicy.

func (*BucketPolicySpec) DeepCopy

func (in *BucketPolicySpec) DeepCopy() *BucketPolicySpec

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

func (*BucketPolicySpec) DeepCopyInto

func (in *BucketPolicySpec) DeepCopyInto(out *BucketPolicySpec)

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

type BucketPolicyStatus

type BucketPolicyStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          BucketPolicyObservation `json:"atProvider,omitempty"`
}

BucketPolicyStatus represents the observed state of a BucketPolicy.

func (*BucketPolicyStatus) DeepCopy

func (in *BucketPolicyStatus) DeepCopy() *BucketPolicyStatus

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

func (*BucketPolicyStatus) DeepCopyInto

func (in *BucketPolicyStatus) DeepCopyInto(out *BucketPolicyStatus)

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