v1alpha1

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:conversion-gen=github.com/karmada-io/karmada/pkg/apis/search +groupName=search.karmada.io

Index

Constants

View Source
const (
	// ResourceKindResourceRegistry is the name of the resource registry
	ResourceKindResourceRegistry = "ResourceRegistry"
	// ResourceSingularResourceRegistry is singular name of ResourceRegistry.
	ResourceSingularResourceRegistry = "resourceregistry"
	// ResourcePluralResourceRegistry is plural name of ResourceRegistry.
	ResourcePluralResourceRegistry = "resourceregistries"
	// ResourceNamespaceScopedResourceRegistry is the scope of the ResourceRegistry
	ResourceNamespaceScopedResourceRegistry = false
)
View Source
const GroupName = "search.karmada.io"

GroupName specifies the group name used to register the objects.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Depreciated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}

GroupVersion specifies the group and the version used to register the objects.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.

Functions

func Convert_search_BackendStoreConfig_To_v1alpha1_BackendStoreConfig

func Convert_search_BackendStoreConfig_To_v1alpha1_BackendStoreConfig(in *search.BackendStoreConfig, out *BackendStoreConfig, s conversion.Scope) error

Convert_search_BackendStoreConfig_To_v1alpha1_BackendStoreConfig is an autogenerated conversion function.

func Convert_search_OpenSearchConfig_To_v1alpha1_OpenSearchConfig

func Convert_search_OpenSearchConfig_To_v1alpha1_OpenSearchConfig(in *search.OpenSearchConfig, out *OpenSearchConfig, s conversion.Scope) error

Convert_search_OpenSearchConfig_To_v1alpha1_OpenSearchConfig is an autogenerated conversion function.

func Convert_search_ResourceRegistryList_To_v1alpha1_ResourceRegistryList

func Convert_search_ResourceRegistryList_To_v1alpha1_ResourceRegistryList(in *search.ResourceRegistryList, out *ResourceRegistryList, s conversion.Scope) error

Convert_search_ResourceRegistryList_To_v1alpha1_ResourceRegistryList is an autogenerated conversion function.

func Convert_search_ResourceRegistrySpec_To_v1alpha1_ResourceRegistrySpec

func Convert_search_ResourceRegistrySpec_To_v1alpha1_ResourceRegistrySpec(in *search.ResourceRegistrySpec, out *ResourceRegistrySpec, s conversion.Scope) error

Convert_search_ResourceRegistrySpec_To_v1alpha1_ResourceRegistrySpec is an autogenerated conversion function.

func Convert_search_ResourceRegistryStatus_To_v1alpha1_ResourceRegistryStatus

func Convert_search_ResourceRegistryStatus_To_v1alpha1_ResourceRegistryStatus(in *search.ResourceRegistryStatus, out *ResourceRegistryStatus, s conversion.Scope) error

Convert_search_ResourceRegistryStatus_To_v1alpha1_ResourceRegistryStatus is an autogenerated conversion function.

func Convert_search_ResourceRegistry_To_v1alpha1_ResourceRegistry

func Convert_search_ResourceRegistry_To_v1alpha1_ResourceRegistry(in *search.ResourceRegistry, out *ResourceRegistry, s conversion.Scope) error

Convert_search_ResourceRegistry_To_v1alpha1_ResourceRegistry is an autogenerated conversion function.

func Convert_search_ResourceSelector_To_v1alpha1_ResourceSelector

func Convert_search_ResourceSelector_To_v1alpha1_ResourceSelector(in *search.ResourceSelector, out *ResourceSelector, s conversion.Scope) error

Convert_search_ResourceSelector_To_v1alpha1_ResourceSelector is an autogenerated conversion function.

func Convert_search_Search_To_v1alpha1_Search(in *search.Search, out *Search, s conversion.Scope) error

Convert_search_Search_To_v1alpha1_Search is an autogenerated conversion function.

func Convert_v1alpha1_BackendStoreConfig_To_search_BackendStoreConfig

func Convert_v1alpha1_BackendStoreConfig_To_search_BackendStoreConfig(in *BackendStoreConfig, out *search.BackendStoreConfig, s conversion.Scope) error

Convert_v1alpha1_BackendStoreConfig_To_search_BackendStoreConfig is an autogenerated conversion function.

func Convert_v1alpha1_OpenSearchConfig_To_search_OpenSearchConfig

func Convert_v1alpha1_OpenSearchConfig_To_search_OpenSearchConfig(in *OpenSearchConfig, out *search.OpenSearchConfig, s conversion.Scope) error

Convert_v1alpha1_OpenSearchConfig_To_search_OpenSearchConfig is an autogenerated conversion function.

func Convert_v1alpha1_ResourceRegistryList_To_search_ResourceRegistryList

func Convert_v1alpha1_ResourceRegistryList_To_search_ResourceRegistryList(in *ResourceRegistryList, out *search.ResourceRegistryList, s conversion.Scope) error

Convert_v1alpha1_ResourceRegistryList_To_search_ResourceRegistryList is an autogenerated conversion function.

func Convert_v1alpha1_ResourceRegistrySpec_To_search_ResourceRegistrySpec

func Convert_v1alpha1_ResourceRegistrySpec_To_search_ResourceRegistrySpec(in *ResourceRegistrySpec, out *search.ResourceRegistrySpec, s conversion.Scope) error

Convert_v1alpha1_ResourceRegistrySpec_To_search_ResourceRegistrySpec is an autogenerated conversion function.

func Convert_v1alpha1_ResourceRegistryStatus_To_search_ResourceRegistryStatus

func Convert_v1alpha1_ResourceRegistryStatus_To_search_ResourceRegistryStatus(in *ResourceRegistryStatus, out *search.ResourceRegistryStatus, s conversion.Scope) error

Convert_v1alpha1_ResourceRegistryStatus_To_search_ResourceRegistryStatus is an autogenerated conversion function.

func Convert_v1alpha1_ResourceRegistry_To_search_ResourceRegistry

func Convert_v1alpha1_ResourceRegistry_To_search_ResourceRegistry(in *ResourceRegistry, out *search.ResourceRegistry, s conversion.Scope) error

Convert_v1alpha1_ResourceRegistry_To_search_ResourceRegistry is an autogenerated conversion function.

func Convert_v1alpha1_ResourceSelector_To_search_ResourceSelector

func Convert_v1alpha1_ResourceSelector_To_search_ResourceSelector(in *ResourceSelector, out *search.ResourceSelector, s conversion.Scope) error

Convert_v1alpha1_ResourceSelector_To_search_ResourceSelector is an autogenerated conversion function.

func Convert_v1alpha1_Search_To_search_Search(in *Search, out *search.Search, s conversion.Scope) error

Convert_v1alpha1_Search_To_search_Search is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec represents the desired behavior of ResourceRegistry.
	Spec ResourceRegistrySpec `json:"spec,omitempty"`

	// Status represents the status of ResourceRegistry.
	// +optional
	Status ResourceRegistryStatus `json:"status,omitempty"`
}

ResourceRegistry represents the configuration of the cache scope, mainly describes which resources in which clusters should 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 `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// Items holds a list of ResourceRegistry.
	Items []ResourceRegistry `json:"items"`
}

ResourceRegistryList if a collection of ResourceRegistry.

func (*ResourceRegistryList) DeepCopy

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

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 `json:"conditions,omitempty"`
}

ResourceRegistryStatus defines the observed state of ResourceRegistry

func (*ResourceRegistryStatus) DeepCopy

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 `json:"apiVersion"`

	// 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 `json:"namespace,omitempty"`
}

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 struct {
	metav1.TypeMeta `json:",inline"`
}

Search define a flag for resource search that do not have actual resources.

func (*Search) DeepCopy

func (in *Search) DeepCopy() *Search

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

func (*Search) DeepCopyInto

func (in *Search) DeepCopyInto(out *Search)

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

func (*Search) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL