v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "roles.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 (
	Mapping_Kind             = "Mapping"
	Mapping_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Mapping_Kind}.String()
	Mapping_KindAPIVersion   = Mapping_Kind + "." + CRDGroupVersion.String()
	Mapping_GroupVersionKind = CRDGroupVersion.WithKind(Mapping_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MappingSpec   `json:"spec"`
	Status            MappingStatus `json:"status,omitempty"`
}

Mapping is the Schema for the Mappings API. Provides an OpenSearch security role mapping. Please refer to the OpenSearch Access Control documentation for details. +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: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 (*Mapping) DeepCopy

func (in *Mapping) DeepCopy() *Mapping

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

func (*Mapping) DeepCopyInto

func (in *Mapping) DeepCopyInto(out *Mapping)

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

func (*Mapping) DeepCopyObject

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

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

func (*Mapping) GetCondition

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

GetCondition of this Mapping.

func (*Mapping) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Mapping

func (*Mapping) GetDeletionPolicy

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

GetDeletionPolicy of this Mapping.

func (*Mapping) GetID

func (tr *Mapping) GetID() string

GetID returns ID of underlying Terraform resource of this Mapping

func (*Mapping) GetInitParameters

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

GetInitParameters of this Mapping

func (*Mapping) GetManagementPolicies

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

GetManagementPolicies of this Mapping.

func (*Mapping) GetMergedParameters

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

GetInitParameters of this Mapping

func (*Mapping) GetObservation

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

GetObservation of this Mapping

func (*Mapping) GetParameters

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

GetParameters of this Mapping

func (*Mapping) GetProviderConfigReference

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

GetProviderConfigReference of this Mapping.

func (*Mapping) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Mapping.

func (*Mapping) GetTerraformResourceType

func (mg *Mapping) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Mapping

func (*Mapping) GetTerraformSchemaVersion

func (tr *Mapping) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Mapping) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Mapping.

func (*Mapping) Hub

func (tr *Mapping) Hub()

Hub marks this type as a conversion hub.

func (*Mapping) LateInitialize

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

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

func (*Mapping) ResolveReferences

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

ResolveReferences of this Mapping.

func (*Mapping) SetConditions

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

SetConditions of this Mapping.

func (*Mapping) SetDeletionPolicy

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

SetDeletionPolicy of this Mapping.

func (*Mapping) SetManagementPolicies

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

SetManagementPolicies of this Mapping.

func (*Mapping) SetObservation

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

SetObservation for this Mapping

func (*Mapping) SetParameters

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

SetParameters for this Mapping

func (*Mapping) SetProviderConfigReference

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

SetProviderConfigReference of this Mapping.

func (*Mapping) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Mapping.

func (*Mapping) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Mapping.

type MappingInitParameters

type MappingInitParameters struct {

	// (Set of String) A list of backend roles.
	// A list of backend roles.
	// +listType=set
	AndBackendRoles []*string `json:"andBackendRoles,omitempty" tf:"and_backend_roles,omitempty"`

	// (Set of String) A list of backend roles.
	// A list of backend roles.
	// +listType=set
	BackendRoles []*string `json:"backendRoles,omitempty" tf:"backend_roles,omitempty"`

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

	// (Set of String) A list of host names.
	// A list of host names.
	// +listType=set
	Hosts []*string `json:"hosts,omitempty" tf:"hosts,omitempty"`

	// (String) The name of the security role.
	// The name of the security role.
	// +crossplane:generate:reference:type=github.com/tagesjump/provider-opensearch/apis/opensearch/v1alpha1.Role
	RoleName *string `json:"roleName,omitempty" tf:"role_name,omitempty"`

	// Reference to a Role in opensearch to populate roleName.
	// +kubebuilder:validation:Optional
	RoleNameRef *v1.Reference `json:"roleNameRef,omitempty" tf:"-"`

	// Selector for a Role in opensearch to populate roleName.
	// +kubebuilder:validation:Optional
	RoleNameSelector *v1.Selector `json:"roleNameSelector,omitempty" tf:"-"`

	// (Set of String) A list of users.
	// A list of users.
	// +crossplane:generate:reference:type=github.com/tagesjump/provider-opensearch/apis/opensearch/v1alpha1.User
	// +listType=set
	Users []*string `json:"users,omitempty" tf:"users,omitempty"`

	// References to User in opensearch to populate users.
	// +kubebuilder:validation:Optional
	UsersRefs []v1.Reference `json:"usersRefs,omitempty" tf:"-"`

	// Selector for a list of User in opensearch to populate users.
	// +kubebuilder:validation:Optional
	UsersSelector *v1.Selector `json:"usersSelector,omitempty" tf:"-"`
}

func (*MappingInitParameters) DeepCopy

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

func (*MappingInitParameters) DeepCopyInto

func (in *MappingInitParameters) DeepCopyInto(out *MappingInitParameters)

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

type MappingList

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

MappingList contains a list of Mappings

func (*MappingList) DeepCopy

func (in *MappingList) DeepCopy() *MappingList

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

func (*MappingList) DeepCopyInto

func (in *MappingList) DeepCopyInto(out *MappingList)

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

func (*MappingList) DeepCopyObject

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

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

func (*MappingList) GetItems

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

GetItems of this MappingList.

type MappingObservation

type MappingObservation struct {

	// (Set of String) A list of backend roles.
	// A list of backend roles.
	// +listType=set
	AndBackendRoles []*string `json:"andBackendRoles,omitempty" tf:"and_backend_roles,omitempty"`

	// (Set of String) A list of backend roles.
	// A list of backend roles.
	// +listType=set
	BackendRoles []*string `json:"backendRoles,omitempty" tf:"backend_roles,omitempty"`

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

	// (Set of String) A list of host names.
	// A list of host names.
	// +listType=set
	Hosts []*string `json:"hosts,omitempty" tf:"hosts,omitempty"`

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

	// (String) The name of the security role.
	// The name of the security role.
	RoleName *string `json:"roleName,omitempty" tf:"role_name,omitempty"`

	// (Set of String) A list of users.
	// A list of users.
	// +listType=set
	Users []*string `json:"users,omitempty" tf:"users,omitempty"`
}

func (*MappingObservation) DeepCopy

func (in *MappingObservation) DeepCopy() *MappingObservation

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

func (*MappingObservation) DeepCopyInto

func (in *MappingObservation) DeepCopyInto(out *MappingObservation)

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

type MappingParameters

type MappingParameters struct {

	// (Set of String) A list of backend roles.
	// A list of backend roles.
	// +kubebuilder:validation:Optional
	// +listType=set
	AndBackendRoles []*string `json:"andBackendRoles,omitempty" tf:"and_backend_roles,omitempty"`

	// (Set of String) A list of backend roles.
	// A list of backend roles.
	// +kubebuilder:validation:Optional
	// +listType=set
	BackendRoles []*string `json:"backendRoles,omitempty" tf:"backend_roles,omitempty"`

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

	// (Set of String) A list of host names.
	// A list of host names.
	// +kubebuilder:validation:Optional
	// +listType=set
	Hosts []*string `json:"hosts,omitempty" tf:"hosts,omitempty"`

	// (String) The name of the security role.
	// The name of the security role.
	// +crossplane:generate:reference:type=github.com/tagesjump/provider-opensearch/apis/opensearch/v1alpha1.Role
	// +kubebuilder:validation:Optional
	RoleName *string `json:"roleName,omitempty" tf:"role_name,omitempty"`

	// Reference to a Role in opensearch to populate roleName.
	// +kubebuilder:validation:Optional
	RoleNameRef *v1.Reference `json:"roleNameRef,omitempty" tf:"-"`

	// Selector for a Role in opensearch to populate roleName.
	// +kubebuilder:validation:Optional
	RoleNameSelector *v1.Selector `json:"roleNameSelector,omitempty" tf:"-"`

	// (Set of String) A list of users.
	// A list of users.
	// +crossplane:generate:reference:type=github.com/tagesjump/provider-opensearch/apis/opensearch/v1alpha1.User
	// +kubebuilder:validation:Optional
	// +listType=set
	Users []*string `json:"users,omitempty" tf:"users,omitempty"`

	// References to User in opensearch to populate users.
	// +kubebuilder:validation:Optional
	UsersRefs []v1.Reference `json:"usersRefs,omitempty" tf:"-"`

	// Selector for a list of User in opensearch to populate users.
	// +kubebuilder:validation:Optional
	UsersSelector *v1.Selector `json:"usersSelector,omitempty" tf:"-"`
}

func (*MappingParameters) DeepCopy

func (in *MappingParameters) DeepCopy() *MappingParameters

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

func (*MappingParameters) DeepCopyInto

func (in *MappingParameters) DeepCopyInto(out *MappingParameters)

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

type MappingSpec

type MappingSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     MappingParameters `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 MappingInitParameters `json:"initProvider,omitempty"`
}

MappingSpec defines the desired state of Mapping

func (*MappingSpec) DeepCopy

func (in *MappingSpec) DeepCopy() *MappingSpec

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

func (*MappingSpec) DeepCopyInto

func (in *MappingSpec) DeepCopyInto(out *MappingSpec)

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

type MappingStatus

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

MappingStatus defines the observed state of Mapping.

func (*MappingStatus) DeepCopy

func (in *MappingStatus) DeepCopy() *MappingStatus

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

func (*MappingStatus) DeepCopyInto

func (in *MappingStatus) DeepCopyInto(out *MappingStatus)

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