v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=dashboard.opensearch.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "dashboard.opensearch.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Object_Kind             = "Object"
	Object_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Object_Kind}.String()
	Object_KindAPIVersion   = Object_Kind + "." + CRDGroupVersion.String()
	Object_GroupVersionKind = CRDGroupVersion.WithKind(Object_Kind)
)

Repository type metadata.

View Source
var (
	Tenant_Kind             = "Tenant"
	Tenant_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Tenant_Kind}.String()
	Tenant_KindAPIVersion   = Tenant_Kind + "." + CRDGroupVersion.String()
	Tenant_GroupVersionKind = CRDGroupVersion.WithKind(Tenant_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Object

type Object struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.body) || (has(self.initProvider) && has(self.initProvider.body))",message="spec.forProvider.body is a required parameter"
	Spec   ObjectSpec   `json:"spec"`
	Status ObjectStatus `json:"status,omitempty"`
}

Object is the Schema for the Objects API. Provides an OpenSearch Dashboards object resource. This resource interacts directly with the underlying OpenSearch index backing Dashboards, so the format must match what Dashboards the version of Dashboards is expecting. Dashboards with older versions - directly pulling the JSON from a Dashboards index of the same version of OpenSearch targeted by the provider is a workaround. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,opensearch}

func (*Object) DeepCopy

func (in *Object) DeepCopy() *Object

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

func (*Object) DeepCopyInto

func (in *Object) DeepCopyInto(out *Object)

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

func (*Object) DeepCopyObject

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

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

func (*Object) GetCondition

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

GetCondition of this Object.

func (*Object) GetConnectionDetailsMapping

func (tr *Object) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Object

func (*Object) GetDeletionPolicy

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

GetDeletionPolicy of this Object.

func (*Object) GetID

func (tr *Object) GetID() string

GetID returns ID of underlying Terraform resource of this Object

func (*Object) GetInitParameters

func (tr *Object) GetInitParameters() (map[string]any, error)

GetInitParameters of this Object

func (*Object) GetManagementPolicies

func (mg *Object) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Object.

func (*Object) GetMergedParameters

func (tr *Object) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Object

func (*Object) GetObservation

func (tr *Object) GetObservation() (map[string]any, error)

GetObservation of this Object

func (*Object) GetParameters

func (tr *Object) GetParameters() (map[string]any, error)

GetParameters of this Object

func (*Object) GetProviderConfigReference

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

GetProviderConfigReference of this Object.

func (*Object) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Object.

func (*Object) GetTerraformResourceType

func (mg *Object) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Object

func (*Object) GetTerraformSchemaVersion

func (tr *Object) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Object) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Object.

func (*Object) Hub

func (tr *Object) Hub()

Hub marks this type as a conversion hub.

func (*Object) LateInitialize

func (tr *Object) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Object using its observed tfState. returns True if there are any spec changes for the resource.

func (*Object) SetConditions

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

SetConditions of this Object.

func (*Object) SetDeletionPolicy

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

SetDeletionPolicy of this Object.

func (*Object) SetManagementPolicies

func (mg *Object) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Object.

func (*Object) SetObservation

func (tr *Object) SetObservation(obs map[string]any) error

SetObservation for this Object

func (*Object) SetParameters

func (tr *Object) SetParameters(params map[string]any) error

SetParameters for this Object

func (*Object) SetProviderConfigReference

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

SetProviderConfigReference of this Object.

func (*Object) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Object.

func (*Object) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Object.

type ObjectInitParameters

type ObjectInitParameters struct {

	// (String) The JSON body of the dashboard object.
	// The JSON body of the dashboard object.
	Body *string `json:"body,omitempty" tf:"body,omitempty"`

	// (String) The name of the index where dashboard data is stored.
	// The name of the index where dashboard data is stored.
	Index *string `json:"index,omitempty" tf:"index,omitempty"`
}

func (*ObjectInitParameters) DeepCopy

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

func (*ObjectInitParameters) DeepCopyInto

func (in *ObjectInitParameters) DeepCopyInto(out *ObjectInitParameters)

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

type ObjectList

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

ObjectList contains a list of Objects

func (*ObjectList) DeepCopy

func (in *ObjectList) DeepCopy() *ObjectList

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

func (*ObjectList) DeepCopyInto

func (in *ObjectList) DeepCopyInto(out *ObjectList)

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

func (*ObjectList) DeepCopyObject

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

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

func (*ObjectList) GetItems

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

GetItems of this ObjectList.

type ObjectObservation

type ObjectObservation struct {

	// (String) The JSON body of the dashboard object.
	// The JSON body of the dashboard object.
	Body *string `json:"body,omitempty" tf:"body,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) The name of the index where dashboard data is stored.
	// The name of the index where dashboard data is stored.
	Index *string `json:"index,omitempty" tf:"index,omitempty"`
}

func (*ObjectObservation) DeepCopy

func (in *ObjectObservation) DeepCopy() *ObjectObservation

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

func (*ObjectObservation) DeepCopyInto

func (in *ObjectObservation) DeepCopyInto(out *ObjectObservation)

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

type ObjectParameters

type ObjectParameters struct {

	// (String) The JSON body of the dashboard object.
	// The JSON body of the dashboard object.
	// +kubebuilder:validation:Optional
	Body *string `json:"body,omitempty" tf:"body,omitempty"`

	// (String) The name of the index where dashboard data is stored.
	// The name of the index where dashboard data is stored.
	// +kubebuilder:validation:Optional
	Index *string `json:"index,omitempty" tf:"index,omitempty"`
}

func (*ObjectParameters) DeepCopy

func (in *ObjectParameters) DeepCopy() *ObjectParameters

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

func (*ObjectParameters) DeepCopyInto

func (in *ObjectParameters) DeepCopyInto(out *ObjectParameters)

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

type ObjectSpec

type ObjectSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ObjectParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider ObjectInitParameters `json:"initProvider,omitempty"`
}

ObjectSpec defines the desired state of Object

func (*ObjectSpec) DeepCopy

func (in *ObjectSpec) DeepCopy() *ObjectSpec

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

func (*ObjectSpec) DeepCopyInto

func (in *ObjectSpec) DeepCopyInto(out *ObjectSpec)

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

type ObjectStatus

type ObjectStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        ObjectObservation `json:"atProvider,omitempty"`
}

ObjectStatus defines the observed state of Object.

func (*ObjectStatus) DeepCopy

func (in *ObjectStatus) DeepCopy() *ObjectStatus

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

func (*ObjectStatus) DeepCopyInto

func (in *ObjectStatus) DeepCopyInto(out *ObjectStatus)

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

type Tenant

type Tenant struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.tenantName) || (has(self.initProvider) && has(self.initProvider.tenantName))",message="spec.forProvider.tenantName is a required parameter"
	Spec   TenantSpec   `json:"spec"`
	Status TenantStatus `json:"status,omitempty"`
}

Tenant is the Schema for the Tenants API. Provides an OpenSearch dashboard tenant resource. Please refer to the OpenSearch documentation for details. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,opensearch}

func (*Tenant) DeepCopy

func (in *Tenant) DeepCopy() *Tenant

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

func (*Tenant) DeepCopyInto

func (in *Tenant) DeepCopyInto(out *Tenant)

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

func (*Tenant) DeepCopyObject

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

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

func (*Tenant) GetCondition

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

GetCondition of this Tenant.

func (*Tenant) GetConnectionDetailsMapping

func (tr *Tenant) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Tenant

func (*Tenant) GetDeletionPolicy

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

GetDeletionPolicy of this Tenant.

func (*Tenant) GetID

func (tr *Tenant) GetID() string

GetID returns ID of underlying Terraform resource of this Tenant

func (*Tenant) GetInitParameters

func (tr *Tenant) GetInitParameters() (map[string]any, error)

GetInitParameters of this Tenant

func (*Tenant) GetManagementPolicies

func (mg *Tenant) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Tenant.

func (*Tenant) GetMergedParameters

func (tr *Tenant) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Tenant

func (*Tenant) GetObservation

func (tr *Tenant) GetObservation() (map[string]any, error)

GetObservation of this Tenant

func (*Tenant) GetParameters

func (tr *Tenant) GetParameters() (map[string]any, error)

GetParameters of this Tenant

func (*Tenant) GetProviderConfigReference

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

GetProviderConfigReference of this Tenant.

func (*Tenant) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Tenant.

func (*Tenant) GetTerraformResourceType

func (mg *Tenant) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Tenant

func (*Tenant) GetTerraformSchemaVersion

func (tr *Tenant) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Tenant) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Tenant.

func (*Tenant) Hub

func (tr *Tenant) Hub()

Hub marks this type as a conversion hub.

func (*Tenant) LateInitialize

func (tr *Tenant) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Tenant using its observed tfState. returns True if there are any spec changes for the resource.

func (*Tenant) SetConditions

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

SetConditions of this Tenant.

func (*Tenant) SetDeletionPolicy

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

SetDeletionPolicy of this Tenant.

func (*Tenant) SetManagementPolicies

func (mg *Tenant) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Tenant.

func (*Tenant) SetObservation

func (tr *Tenant) SetObservation(obs map[string]any) error

SetObservation for this Tenant

func (*Tenant) SetParameters

func (tr *Tenant) SetParameters(params map[string]any) error

SetParameters for this Tenant

func (*Tenant) SetProviderConfigReference

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

SetProviderConfigReference of this Tenant.

func (*Tenant) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Tenant.

func (*Tenant) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Tenant.

type TenantInitParameters

type TenantInitParameters struct {

	// (String) Description of the tenant.
	// Description of the tenant.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The name of the tenant.
	// The name of the tenant.
	TenantName *string `json:"tenantName,omitempty" tf:"tenant_name,omitempty"`
}

func (*TenantInitParameters) DeepCopy

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

func (*TenantInitParameters) DeepCopyInto

func (in *TenantInitParameters) DeepCopyInto(out *TenantInitParameters)

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

type TenantList

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

TenantList contains a list of Tenants

func (*TenantList) DeepCopy

func (in *TenantList) DeepCopy() *TenantList

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

func (*TenantList) DeepCopyInto

func (in *TenantList) DeepCopyInto(out *TenantList)

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

func (*TenantList) DeepCopyObject

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

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

func (*TenantList) GetItems

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

GetItems of this TenantList.

type TenantObservation

type TenantObservation struct {

	// (String) Description of the tenant.
	// Description of the tenant.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String)
	Index *string `json:"index,omitempty" tf:"index,omitempty"`

	// (String) The name of the tenant.
	// The name of the tenant.
	TenantName *string `json:"tenantName,omitempty" tf:"tenant_name,omitempty"`
}

func (*TenantObservation) DeepCopy

func (in *TenantObservation) DeepCopy() *TenantObservation

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

func (*TenantObservation) DeepCopyInto

func (in *TenantObservation) DeepCopyInto(out *TenantObservation)

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

type TenantParameters

type TenantParameters struct {

	// (String) Description of the tenant.
	// Description of the tenant.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The name of the tenant.
	// The name of the tenant.
	// +kubebuilder:validation:Optional
	TenantName *string `json:"tenantName,omitempty" tf:"tenant_name,omitempty"`
}

func (*TenantParameters) DeepCopy

func (in *TenantParameters) DeepCopy() *TenantParameters

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

func (*TenantParameters) DeepCopyInto

func (in *TenantParameters) DeepCopyInto(out *TenantParameters)

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

type TenantSpec

type TenantSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     TenantParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider TenantInitParameters `json:"initProvider,omitempty"`
}

TenantSpec defines the desired state of Tenant

func (*TenantSpec) DeepCopy

func (in *TenantSpec) DeepCopy() *TenantSpec

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

func (*TenantSpec) DeepCopyInto

func (in *TenantSpec) DeepCopyInto(out *TenantSpec)

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

type TenantStatus

type TenantStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        TenantObservation `json:"atProvider,omitempty"`
}

TenantStatus defines the observed state of Tenant.

func (*TenantStatus) DeepCopy

func (in *TenantStatus) DeepCopy() *TenantStatus

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

func (*TenantStatus) DeepCopyInto

func (in *TenantStatus) DeepCopyInto(out *TenantStatus)

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