Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=routing.nexus.adrp.xyz +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Rule
- func (in *Rule) DeepCopy() *Rule
- func (in *Rule) DeepCopyInto(out *Rule)
- func (in *Rule) DeepCopyObject() runtime.Object
- func (mg *Rule) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Rule) GetConnectionDetailsMapping() map[string]string
- func (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Rule) GetID() string
- func (tr *Rule) GetInitParameters() (map[string]any, error)
- func (mg *Rule) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Rule) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Rule) GetObservation() (map[string]any, error)
- func (tr *Rule) GetParameters() (map[string]any, error)
- func (mg *Rule) GetProviderConfigReference() *xpv1.Reference
- func (mg *Rule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Rule) GetTerraformResourceType() string
- func (tr *Rule) GetTerraformSchemaVersion() int
- func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Rule) Hub()
- func (tr *Rule) LateInitialize(attrs []byte) (bool, error)
- func (mg *Rule) SetConditions(c ...xpv1.Condition)
- func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Rule) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Rule) SetObservation(obs map[string]any) error
- func (tr *Rule) SetParameters(params map[string]any) error
- func (mg *Rule) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Rule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RuleInitParameters
- type RuleList
- type RuleObservation
- type RuleParameters
- type RuleSpec
- type RuleStatus
Constants ¶
const ( CRDGroup = "routing.nexus.adrp.xyz" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( Rule_Kind = "Rule" Rule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Rule_Kind}.String() Rule_KindAPIVersion = Rule_Kind + "." + CRDGroupVersion.String() Rule_GroupVersionKind = CRDGroupVersion.WithKind(Rule_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule 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.matchers) || (has(self.initProvider) && has(self.initProvider.matchers))",message="spec.forProvider.matchers is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" Spec RuleSpec `json:"spec"` Status RuleStatus `json:"status,omitempty"` }
Rule is the Schema for the Rules API. Use this resource to create a Nexus Routing Rule. +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,nexus}
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Rule) GetCondition ¶
func (mg *Rule) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Rule.
func (*Rule) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Rule
func (*Rule) GetDeletionPolicy ¶
func (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Rule.
func (*Rule) GetInitParameters ¶
GetInitParameters of this Rule
func (*Rule) GetManagementPolicies ¶
func (mg *Rule) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Rule.
func (*Rule) GetMergedParameters ¶ added in v0.0.6
GetInitParameters of this Rule
func (*Rule) GetObservation ¶
GetObservation of this Rule
func (*Rule) GetParameters ¶
GetParameters of this Rule
func (*Rule) GetProviderConfigReference ¶
GetProviderConfigReference of this Rule.
func (*Rule) GetPublishConnectionDetailsTo ¶
func (mg *Rule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Rule.
func (*Rule) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Rule
func (*Rule) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Rule) GetWriteConnectionSecretToReference ¶
func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Rule.
func (*Rule) LateInitialize ¶
LateInitialize this Rule using its observed tfState. returns True if there are any spec changes for the resource.
func (*Rule) SetConditions ¶
SetConditions of this Rule.
func (*Rule) SetDeletionPolicy ¶
func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Rule.
func (*Rule) SetManagementPolicies ¶
func (mg *Rule) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Rule.
func (*Rule) SetObservation ¶
SetObservation for this Rule
func (*Rule) SetParameters ¶
SetParameters for this Rule
func (*Rule) SetProviderConfigReference ¶
SetProviderConfigReference of this Rule.
func (*Rule) SetPublishConnectionDetailsTo ¶
func (mg *Rule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Rule.
func (*Rule) SetWriteConnectionSecretToReference ¶
func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Rule.
type RuleInitParameters ¶
type RuleInitParameters struct { // (String) The description of the routing rule // The description of the routing rule Description *string `json:"description,omitempty" tf:"description,omitempty"` // (Set of String) Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode) // Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode) // +listType=set Matchers []*string `json:"matchers,omitempty" tf:"matchers,omitempty"` // (String) The mode describe how to hande with mathing requests. Possible values: BLOCK or ALLOW Default: BLOCK // The mode describe how to hande with mathing requests. Possible values: `BLOCK` or `ALLOW` Default: `BLOCK` Mode *string `json:"mode,omitempty" tf:"mode,omitempty"` // (String) The name of the routing rule // The name of the routing rule Name *string `json:"name,omitempty" tf:"name,omitempty"` }
func (*RuleInitParameters) DeepCopy ¶
func (in *RuleInitParameters) DeepCopy() *RuleInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleInitParameters.
func (*RuleInitParameters) DeepCopyInto ¶
func (in *RuleInitParameters) DeepCopyInto(out *RuleInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleList ¶
type RuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Rule `json:"items"` }
RuleList contains a list of Rules
func (*RuleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleObservation ¶
type RuleObservation struct { // (String) The description of the routing rule // The description of the routing rule Description *string `json:"description,omitempty" tf:"description,omitempty"` // (String) Used to identify resource at nexus ID *string `json:"id,omitempty" tf:"id,omitempty"` // (Set of String) Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode) // Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode) // +listType=set Matchers []*string `json:"matchers,omitempty" tf:"matchers,omitempty"` // (String) The mode describe how to hande with mathing requests. Possible values: BLOCK or ALLOW Default: BLOCK // The mode describe how to hande with mathing requests. Possible values: `BLOCK` or `ALLOW` Default: `BLOCK` Mode *string `json:"mode,omitempty" tf:"mode,omitempty"` // (String) The name of the routing rule // The name of the routing rule Name *string `json:"name,omitempty" tf:"name,omitempty"` }
func (*RuleObservation) DeepCopy ¶
func (in *RuleObservation) DeepCopy() *RuleObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleObservation.
func (*RuleObservation) DeepCopyInto ¶
func (in *RuleObservation) DeepCopyInto(out *RuleObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleParameters ¶
type RuleParameters struct { // (String) The description of the routing rule // The description of the routing rule // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // (Set of String) Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode) // Matchers is a list of regular expressions used to identify request paths that are allowed or blocked (depending on above mode) // +kubebuilder:validation:Optional // +listType=set Matchers []*string `json:"matchers,omitempty" tf:"matchers,omitempty"` // (String) The mode describe how to hande with mathing requests. Possible values: BLOCK or ALLOW Default: BLOCK // The mode describe how to hande with mathing requests. Possible values: `BLOCK` or `ALLOW` Default: `BLOCK` // +kubebuilder:validation:Optional Mode *string `json:"mode,omitempty" tf:"mode,omitempty"` // (String) The name of the routing rule // The name of the routing rule // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` }
func (*RuleParameters) DeepCopy ¶
func (in *RuleParameters) DeepCopy() *RuleParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleParameters.
func (*RuleParameters) DeepCopyInto ¶
func (in *RuleParameters) DeepCopyInto(out *RuleParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleSpec ¶
type RuleSpec struct { v1.ResourceSpec `json:",inline"` ForProvider RuleParameters `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 RuleInitParameters `json:"initProvider,omitempty"` }
RuleSpec defines the desired state of Rule
func (*RuleSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec.
func (*RuleSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleStatus ¶
type RuleStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RuleObservation `json:"atProvider,omitempty"` }
RuleStatus defines the observed state of Rule.
func (*RuleStatus) DeepCopy ¶
func (in *RuleStatus) DeepCopy() *RuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleStatus.
func (*RuleStatus) DeepCopyInto ¶
func (in *RuleStatus) DeepCopyInto(out *RuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.