v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group eventstreamsadminv1 resources of the IBM Cloud provider. +kubebuilder:object:generate=true +groupName=cloudantv1.ibmcloud.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "cloudantv1.ibmcloud.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 (
	CloudantDatabaseKind             = reflect.TypeOf(CloudantDatabase{}).Name()
	CloudantDatabaseGroupKind        = schema.GroupKind{Group: Group, Kind: CloudantDatabaseKind}.String()
	CloudantDatabaseKindAPIVersion   = CloudantDatabaseKind + "." + SchemeGroupVersion.String()
	CloudantDatabaseGroupVersionKind = SchemeGroupVersion.WithKind(CloudantDatabaseKind)
)

resourcecontrollerv2 types metadata.

Functions

func ConnSecretRef

func ConnSecretRef() reference.ExtractValueFn

ConnSecretRef extracts the connection secret namespace and name

Types

type CloudantDatabase

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

	Spec   CloudantDatabaseSpec   `json:"spec"`
	Status CloudantDatabaseStatus `json:"status,omitempty"`
}

A CloudantDatabase represents an instance of a managed service on IBM Cloud +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ibmcloud}

func (*CloudantDatabase) DeepCopy

func (in *CloudantDatabase) DeepCopy() *CloudantDatabase

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

func (*CloudantDatabase) DeepCopyInto

func (in *CloudantDatabase) DeepCopyInto(out *CloudantDatabase)

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

func (*CloudantDatabase) DeepCopyObject

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

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

func (*CloudantDatabase) GetCondition

GetCondition of this CloudantDatabase.

func (*CloudantDatabase) GetDeletionPolicy

func (mg *CloudantDatabase) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy

GetDeletionPolicy of this CloudantDatabase.

func (*CloudantDatabase) GetProviderConfigReference

func (mg *CloudantDatabase) GetProviderConfigReference() *runtimev1alpha1.Reference

GetProviderConfigReference of this CloudantDatabase.

func (*CloudantDatabase) GetProviderReference

func (mg *CloudantDatabase) GetProviderReference() *runtimev1alpha1.Reference

GetProviderReference of this CloudantDatabase. Deprecated: Use GetProviderConfigReference.

func (*CloudantDatabase) GetWriteConnectionSecretToReference

func (mg *CloudantDatabase) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this CloudantDatabase.

func (*CloudantDatabase) ResolveReferences

func (mg *CloudantDatabase) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this ResourceKey Crossplane resolvers are not designed to resolve fields from non-Crossplane resources. There is a design doc in progress to support this type of scenario at https://github.com/crossplane/crossplane/pull/2385 At this time the only solution is a two steps approach: 1. use the resolver on a resource key to obtain the namespage and name of the secret from writeConnectionSecretToRef 2. use that namespace and name with the client.Reader to get the secret and extract the cloudant_admin_url from there

func (*CloudantDatabase) SetConditions

func (mg *CloudantDatabase) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this CloudantDatabase.

func (*CloudantDatabase) SetDeletionPolicy

func (mg *CloudantDatabase) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)

SetDeletionPolicy of this CloudantDatabase.

func (*CloudantDatabase) SetProviderConfigReference

func (mg *CloudantDatabase) SetProviderConfigReference(r *runtimev1alpha1.Reference)

SetProviderConfigReference of this CloudantDatabase.

func (*CloudantDatabase) SetProviderReference

func (mg *CloudantDatabase) SetProviderReference(r *runtimev1alpha1.Reference)

SetProviderReference of this CloudantDatabase. Deprecated: Use SetProviderConfigReference.

func (*CloudantDatabase) SetWriteConnectionSecretToReference

func (mg *CloudantDatabase) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this CloudantDatabase.

type CloudantDatabaseList

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

CloudantDatabaseList contains a list of CloudantDatabase

func (*CloudantDatabaseList) DeepCopy

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

func (*CloudantDatabaseList) DeepCopyInto

func (in *CloudantDatabaseList) DeepCopyInto(out *CloudantDatabaseList)

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

func (*CloudantDatabaseList) DeepCopyObject

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

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

func (*CloudantDatabaseList) GetItems

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

GetItems of this CloudantDatabaseList.

type CloudantDatabaseObservation

type CloudantDatabaseObservation struct {

	// Schema for database cluster information.
	Cluster *DatabaseInformationCluster `json:"cluster,omitempty"`

	// An opaque string that describes the committed state of the database.
	CommittedUpdateSeq string `json:"committedUpdateSeq,omitempty"`

	// True if the database compaction routine is operating on this database.
	CompactRunning bool `json:"compactRunning,omitempty"`

	// An opaque string that describes the compaction state of the database.
	CompactedSeq string `json:"compactedSeq,omitempty"`

	// The version of the physical format used for the data when it is stored on disk.
	DiskFormatVersion int64 `json:"diskFormatVersion,omitempty"`

	// A count of the documents in the specified database.
	DocCount int64 `json:"docCount,omitempty"`

	// Number of deleted documents.
	DocDelCount int64 `json:"docDelCount,omitempty"`

	// The engine used for the database.
	Engine string `json:"engine,omitempty"`

	// Schema for size information of content.
	Sizes *ContentInformationSizes `json:"sizes,omitempty"`

	// An opaque string that describes the state of the database. Do not rely on this string for counting the number of
	// updates.
	UpdateSeq string `json:"updateSeq,omitempty"`

	// The UUID of the database.
	UUID string `json:"uuid,omitempty"`

	// The current state of the cloudantdatabase. For example, if the cloudantdatabase is deleted, it will return terminating.
	State string `json:"state,omitempty"`
}

CloudantDatabaseObservation are the observable fields of a CloudantDatabase.

func (*CloudantDatabaseObservation) DeepCopy

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

func (*CloudantDatabaseObservation) DeepCopyInto

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

type CloudantDatabaseParameters

type CloudantDatabaseParameters struct {

	// The name of the database
	// +immutable
	Db string `json:"db"`

	// CloudantAdminURL is the URL to the Cloudant instance admin endpoint
	// +immutable
	// +optional
	CloudantAdminURL *string `json:"cloudantAdminUrl,omitempty"`

	// A reference to the Cloudant Secret Key used to set CloudantAdminURL
	// +immutable
	// +optional
	CloudantAdminURLRef *runtimev1alpha1.Reference `json:"cloudantAdminUrlRef,omitempty"`

	// SourceSelector selects a reference to a resource used to set Source
	// +immutable
	// +optional
	CloudantAdminURLSelector *runtimev1alpha1.Selector `json:"cloudantAdminUrlSelector,omitempty"`

	// Query parameter to specify whether to enable database partitions when creating a database.
	// +immutable
	// +optional
	Partitioned *bool `json:"partitioned,omitempty"`

	// The number of shards in the database. Each shard is a partition of the hash value range. Default is 8, unless
	// overridden in the `cluster config`.
	// +immutable
	// +optional
	Q *int64 `json:"q,omitempty"`
}

CloudantDatabaseParameters are the configurable fields of a CloudantDatabase.

func (*CloudantDatabaseParameters) DeepCopy

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

func (*CloudantDatabaseParameters) DeepCopyInto

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

type CloudantDatabaseSpec

type CloudantDatabaseSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	ForProvider                  CloudantDatabaseParameters `json:"forProvider"`
}

A CloudantDatabaseSpec defines the desired state of a CloudantDatabase.

func (*CloudantDatabaseSpec) DeepCopy

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

func (*CloudantDatabaseSpec) DeepCopyInto

func (in *CloudantDatabaseSpec) DeepCopyInto(out *CloudantDatabaseSpec)

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

type CloudantDatabaseStatus

type CloudantDatabaseStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	AtProvider                     CloudantDatabaseObservation `json:"atProvider,omitempty"`
}

A CloudantDatabaseStatus represents the observed state of a CloudantDatabase.

func (*CloudantDatabaseStatus) DeepCopy

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

func (*CloudantDatabaseStatus) DeepCopyInto

func (in *CloudantDatabaseStatus) DeepCopyInto(out *CloudantDatabaseStatus)

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

type ContentInformationSizes

type ContentInformationSizes struct {
	// The active size of the content, in bytes.
	Active int64 `json:"active,omitempty"`

	// The total uncompressed size of the content, in bytes.
	External int64 `json:"external,omitempty"`

	// The total size of the content as stored on disk, in bytes.
	File int64 `json:"file,omitempty"`
}

ContentInformationSizes : Schema for size information of content.

func (*ContentInformationSizes) DeepCopy

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

func (*ContentInformationSizes) DeepCopyInto

func (in *ContentInformationSizes) DeepCopyInto(out *ContentInformationSizes)

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

type DatabaseInformationCluster

type DatabaseInformationCluster struct {
	// Schema for the number of replicas of a database in a cluster.
	N int64 `json:"n,omitempty"`

	// Read quorum. The number of consistent copies of a document that need to be read before a successful reply.
	R int64 `json:"r,omitempty"`

	// Write quorum. The number of copies of a document that need to be written before a successful reply.
	W int64 `json:"w,omitempty"`
}

DatabaseInformationCluster : Schema for database cluster information.

func (*DatabaseInformationCluster) DeepCopy

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

func (*DatabaseInformationCluster) DeepCopyInto

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