Documentation ¶
Overview ¶
Package search is the internal version of the API. +k8s:deepcopy-gen=package +groupName=search.karmada.io
Index ¶
Constants ¶
const GroupName = "search.karmada.io"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // SchemeBuilder is the scheme builder with scheme init functions to run for this API package SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BackendStoreConfig ¶
type BackendStoreConfig struct { // OpenSearch is a community-driven, open source search and analytics suite. // Refer to website(https://opensearch.org/) for more details about OpenSearch. // +optional OpenSearch *OpenSearchConfig `json:"openSearch,omitempty"` }
BackendStoreConfig specifies backend store.
func (*BackendStoreConfig) DeepCopy ¶
func (in *BackendStoreConfig) DeepCopy() *BackendStoreConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendStoreConfig.
func (*BackendStoreConfig) DeepCopyInto ¶
func (in *BackendStoreConfig) DeepCopyInto(out *BackendStoreConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpenSearchConfig ¶
type OpenSearchConfig struct { // Addresses is a list of node endpoint(e.g. 'https://localhost:9200') to use. // For the 'node' concept, please refer to: // https://opensearch.org/docs/latest/opensearch/index/#clusters-and-nodes // +required Addresses []string `json:"addresses"` // SecretRef represents the secret contains mandatory credentials to access the server. // The secret should hold credentials as follows: // - secret.data.userName // - secret.data.password // +required SecretRef clusterv1alpha1.LocalSecretReference `json:"secretRef,omitempty"` }
OpenSearchConfig holds the necessary configuration for client to access and config an OpenSearch server.
func (*OpenSearchConfig) DeepCopy ¶
func (in *OpenSearchConfig) DeepCopy() *OpenSearchConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenSearchConfig.
func (*OpenSearchConfig) DeepCopyInto ¶
func (in *OpenSearchConfig) DeepCopyInto(out *OpenSearchConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRegistry ¶
type ResourceRegistry struct { metav1.TypeMeta metav1.ObjectMeta // Spec represents the desired behavior of ResourceRegistry. Spec ResourceRegistrySpec // Status represents the status of ResourceRegistry. // +optional Status ResourceRegistryStatus }
ResourceRegistry defines a list of member cluster to be cached.
func (*ResourceRegistry) DeepCopy ¶
func (in *ResourceRegistry) DeepCopy() *ResourceRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRegistry.
func (*ResourceRegistry) DeepCopyInto ¶
func (in *ResourceRegistry) DeepCopyInto(out *ResourceRegistry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceRegistry) DeepCopyObject ¶
func (in *ResourceRegistry) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceRegistryList ¶
type ResourceRegistryList struct { metav1.TypeMeta metav1.ListMeta // Items holds a list of ResourceRegistry. Items []ResourceRegistry }
ResourceRegistryList if a collection of ResourceRegistry.
func (*ResourceRegistryList) DeepCopy ¶
func (in *ResourceRegistryList) DeepCopy() *ResourceRegistryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRegistryList.
func (*ResourceRegistryList) DeepCopyInto ¶
func (in *ResourceRegistryList) DeepCopyInto(out *ResourceRegistryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceRegistryList) DeepCopyObject ¶
func (in *ResourceRegistryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceRegistrySpec ¶
type ResourceRegistrySpec struct { // TargetCluster specifies the clusters where the cache system collect resource from. // +required TargetCluster policyv1alpha1.ClusterAffinity `json:"targetCluster"` // ResourceSelectors specifies the resources type that should be cached by cache system. // +required ResourceSelectors []ResourceSelector `json:"resourceSelectors"` // BackendStore specifies the location where to store the cached items. // +optional BackendStore *BackendStoreConfig `json:"backendStore,omitempty"` }
ResourceRegistrySpec defines the desired state of ResourceRegistry.
func (*ResourceRegistrySpec) DeepCopy ¶
func (in *ResourceRegistrySpec) DeepCopy() *ResourceRegistrySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRegistrySpec.
func (*ResourceRegistrySpec) DeepCopyInto ¶
func (in *ResourceRegistrySpec) DeepCopyInto(out *ResourceRegistrySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRegistryStatus ¶
type ResourceRegistryStatus struct { // Conditions contain the different condition statuses. // +optional Conditions []metav1.Condition }
ResourceRegistryStatus defines the observed state of ResourceRegistry
func (*ResourceRegistryStatus) DeepCopy ¶
func (in *ResourceRegistryStatus) DeepCopy() *ResourceRegistryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRegistryStatus.
func (*ResourceRegistryStatus) DeepCopyInto ¶
func (in *ResourceRegistryStatus) DeepCopyInto(out *ResourceRegistryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelector ¶
type ResourceSelector struct { // APIVersion represents the API version of the target resources. // +required APIVersion string // Kind represents the kind of the target resources. // +required Kind string `json:"kind"` // Namespace of the target resource. // Default is empty, which means all namespaces. // +optional Namespace string }
ResourceSelector specifies the resources type and its scope.
func (*ResourceSelector) DeepCopy ¶
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Search ¶
Search define a flag for resource search that do not have actual resources.
func (*Search) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Search.
func (*Search) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Search) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.