Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the nacos.io v1 API group +kubebuilder:object:generate=true +groupName=nacos.io
Index ¶
- Variables
- type AdditionalConfiguration
- type DynamicConfiguration
- func (in *DynamicConfiguration) DeepCopy() *DynamicConfiguration
- func (in *DynamicConfiguration) DeepCopyInto(out *DynamicConfiguration)
- func (in *DynamicConfiguration) DeepCopyObject() runtime.Object
- func (r *DynamicConfiguration) Default()
- func (r *DynamicConfiguration) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *DynamicConfiguration) ValidateCreate() (admission.Warnings, error)
- func (r *DynamicConfiguration) ValidateDelete() (admission.Warnings, error)
- func (r *DynamicConfiguration) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type DynamicConfigurationList
- type DynamicConfigurationSpec
- type DynamicConfigurationStatus
- type DynamicConfigurationSyncDirection
- type DynamicConfigurationSyncPolicy
- type NacosServerConfiguration
- type SyncStatus
- type SyncStrategy
Constants ¶
This section is empty.
Variables ¶
var ( SecretGVK = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Secret"} ConfigMapGVK = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "ConfigMap"} )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "nacos.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AdditionalConfiguration ¶
type AdditionalConfiguration struct { Labels map[string]string `json:"labels,omitempty"` Properties map[string]string `json:"properties,omitempty"` Tags map[string]string `json:"tags,omitempty"` }
func (*AdditionalConfiguration) DeepCopy ¶
func (in *AdditionalConfiguration) DeepCopy() *AdditionalConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdditionalConfiguration.
func (*AdditionalConfiguration) DeepCopyInto ¶
func (in *AdditionalConfiguration) DeepCopyInto(out *AdditionalConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicConfiguration ¶
type DynamicConfiguration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DynamicConfigurationSpec `json:"spec,omitempty"` Status DynamicConfigurationStatus `json:"status,omitempty"` }
DynamicConfiguration is the Schema for the dynamicconfigurations API
func (*DynamicConfiguration) DeepCopy ¶
func (in *DynamicConfiguration) DeepCopy() *DynamicConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfiguration.
func (*DynamicConfiguration) DeepCopyInto ¶
func (in *DynamicConfiguration) DeepCopyInto(out *DynamicConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicConfiguration) DeepCopyObject ¶
func (in *DynamicConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DynamicConfiguration) Default ¶
func (r *DynamicConfiguration) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*DynamicConfiguration) SetupWebhookWithManager ¶
func (r *DynamicConfiguration) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*DynamicConfiguration) ValidateCreate ¶
func (r *DynamicConfiguration) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*DynamicConfiguration) ValidateDelete ¶
func (r *DynamicConfiguration) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*DynamicConfiguration) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type DynamicConfigurationList ¶
type DynamicConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DynamicConfiguration `json:"items"` }
DynamicConfigurationList contains a list of DynamicConfiguration
func (*DynamicConfigurationList) DeepCopy ¶
func (in *DynamicConfigurationList) DeepCopy() *DynamicConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigurationList.
func (*DynamicConfigurationList) DeepCopyInto ¶
func (in *DynamicConfigurationList) DeepCopyInto(out *DynamicConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicConfigurationList) DeepCopyObject ¶
func (in *DynamicConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DynamicConfigurationSpec ¶
type DynamicConfigurationSpec struct { DataIds []string `json:"dataIds,omitempty"` AdditionalConf *AdditionalConfiguration `json:"additionalConf,omitempty"` Strategy SyncStrategy `json:"strategy,omitempty"` NacosServer NacosServerConfiguration `json:"nacosServer,omitempty"` ObjectRef *v1.ObjectReference `json:"objectRef,omitempty"` }
DynamicConfigurationSpec defines the desired state of DynamicConfiguration
func (*DynamicConfigurationSpec) DeepCopy ¶
func (in *DynamicConfigurationSpec) DeepCopy() *DynamicConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigurationSpec.
func (*DynamicConfigurationSpec) DeepCopyInto ¶
func (in *DynamicConfigurationSpec) DeepCopyInto(out *DynamicConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicConfigurationStatus ¶
type DynamicConfigurationStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Phase string `json:"phase,omitempty"` Message string `json:"message,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` SyncStatuses []SyncStatus `json:"syncStatuses,omitempty"` ObjectRef *v1.ObjectReference `json:"objectRef,omitempty"` }
DynamicConfigurationStatus defines the observed state of DynamicConfiguration
func (*DynamicConfigurationStatus) DeepCopy ¶
func (in *DynamicConfigurationStatus) DeepCopy() *DynamicConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicConfigurationStatus.
func (*DynamicConfigurationStatus) DeepCopyInto ¶
func (in *DynamicConfigurationStatus) DeepCopyInto(out *DynamicConfigurationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicConfigurationSyncDirection ¶
type DynamicConfigurationSyncDirection string
const ( Cluster2Server DynamicConfigurationSyncDirection = "cluster2server" Server2Cluster DynamicConfigurationSyncDirection = "server2cluster" )
type DynamicConfigurationSyncPolicy ¶
type DynamicConfigurationSyncPolicy string
const ( Always DynamicConfigurationSyncPolicy = "Always" IfAbsent DynamicConfigurationSyncPolicy = "IfAbsent" )
type NacosServerConfiguration ¶
type NacosServerConfiguration struct { Endpoint *string `json:"endpoint,omitempty"` ServerAddr *string `json:"serverAddr,omitempty"` Namespace string `json:"namespace,omitempty"` Group string `json:"group,omitempty"` AuthRef *v1.ObjectReference `json:"authRef,omitempty"` }
func (*NacosServerConfiguration) DeepCopy ¶
func (in *NacosServerConfiguration) DeepCopy() *NacosServerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NacosServerConfiguration.
func (*NacosServerConfiguration) DeepCopyInto ¶
func (in *NacosServerConfiguration) DeepCopyInto(out *NacosServerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncStatus ¶
type SyncStatus struct { DataId string `json:"dataId,omitempty"` LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"` LastSyncFrom string `json:"lastSyncFrom,omitempty"` Md5 string `json:"md5,omitempty"` Ready bool `json:"ready,omitempty"` Message string `json:"message,omitempty"` }
func (*SyncStatus) DeepCopy ¶
func (in *SyncStatus) DeepCopy() *SyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStatus.
func (*SyncStatus) DeepCopyInto ¶
func (in *SyncStatus) DeepCopyInto(out *SyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncStrategy ¶
type SyncStrategy struct { SyncPolicy DynamicConfigurationSyncPolicy `json:"syncPolicy,omitempty"` SyncDeletion bool `json:"syncDeletion,omitempty"` SyncDirection DynamicConfigurationSyncDirection `json:"syncDirection,omitempty"` }
func (*SyncStrategy) DeepCopy ¶
func (in *SyncStrategy) DeepCopy() *SyncStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStrategy.
func (*SyncStrategy) DeepCopyInto ¶
func (in *SyncStrategy) DeepCopyInto(out *SyncStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.