search

package
v0.3.21-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package search is the internal version of the API.

Index

Constants

View Source
const GroupName = "search.karpor.io"

GroupName is the group name used in this package

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type ClusterResourcesSyncCondition

type ClusterResourcesSyncCondition struct {
	Cluster string

	Status string

	Resources []ResourceSyncCondition
}

func (*ClusterResourcesSyncCondition) DeepCopy

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

func (*ClusterResourcesSyncCondition) DeepCopyInto

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

type FieldSelector

type FieldSelector struct {
	// MatchFields is a map of {field,value} pairs. A single {field,value} in the matchFields
	// map means that the specified field should have an exact match with the specified value.
	// Multiple entries are ANDed.
	MatchFields map[string]string
	// ServerSupported specifies whether the field selection is supported in api server side
	ServerSupported bool
}

FieldSelector is a field filter.

func (*FieldSelector) DeepCopy

func (in *FieldSelector) DeepCopy() *FieldSelector

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

func (*FieldSelector) DeepCopyInto

func (in *FieldSelector) DeepCopyInto(out *FieldSelector)

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

type ResourceSyncCondition

type ResourceSyncCondition struct {
	APIVersion string

	Kind string

	Status string

	Reason string

	Message string

	LastTransitionTime metav1.Time
}

func (*ResourceSyncCondition) DeepCopy

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

func (*ResourceSyncCondition) DeepCopyInto

func (in *ResourceSyncCondition) DeepCopyInto(out *ResourceSyncCondition)

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

type ResourceSyncRule

type ResourceSyncRule struct {
	// APIVersion represents the group version of the target resource.
	APIVersion string

	// Resource is the the target resource.
	Resource string

	// Namespace specifies the namespace in which the ListWatch of the target resources is limited
	// to.
	Namespace string

	// ResynPeriod is the period to resync
	ResyncPeriod *metav1.Duration

	// MaxConcurrent is the maximum number of workers (default: 10)
	MaxConcurrent int

	// Selectors are used to filter the target resources to sync. Multiple selectors are ORed.
	Selectors []Selector

	// Transform is the rule applied to the original resource to transform it to the desired target
	// resource.
	Transform *TransformRuleSpec

	// TransformRefName is the name of the TransformRule
	TransformRefName string
}

ResourceSyncRule is used to specify the way to sync the specified resource

func (*ResourceSyncRule) DeepCopy

func (in *ResourceSyncRule) DeepCopy() *ResourceSyncRule

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

func (*ResourceSyncRule) DeepCopyInto

func (in *ResourceSyncRule) DeepCopyInto(out *ResourceSyncRule)

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

type Selector

type Selector struct {
	// LabelSelector is a filter to select resources by labels.
	// If non-nil and non-empty, only the resource match this filter will be selected.
	LabelSelector *metav1.LabelSelector

	// FieldSelector is a filter to select resources by fields.
	// If non-nil and non-empty, only the resource match this filter will be selected.
	FieldSelector *FieldSelector
}

Selector represents a resource filter

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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

type SyncRegistry

type SyncRegistry struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec   SyncRegistrySpec
	Status SyncRegistryStatus
}

func (*SyncRegistry) DeepCopy

func (in *SyncRegistry) DeepCopy() *SyncRegistry

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

func (*SyncRegistry) DeepCopyInto

func (in *SyncRegistry) DeepCopyInto(out *SyncRegistry)

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

func (*SyncRegistry) DeepCopyObject

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

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

type SyncRegistryList

type SyncRegistryList struct {
	metav1.TypeMeta

	metav1.ListMeta

	Items []SyncRegistry
}

func (*SyncRegistryList) DeepCopy

func (in *SyncRegistryList) DeepCopy() *SyncRegistryList

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

func (*SyncRegistryList) DeepCopyInto

func (in *SyncRegistryList) DeepCopyInto(out *SyncRegistryList)

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

func (*SyncRegistryList) DeepCopyObject

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

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

type SyncRegistrySpec

type SyncRegistrySpec struct {
	// ClusterLabelSelector is used to filter the target clusters that need to be synced from.
	ClusterLabelSelector *metav1.LabelSelector

	// Clusters is the list of the target clusters to be be synced from.
	Clusters []string

	SyncResources []ResourceSyncRule

	SyncResourcesRefName string
}

func (*SyncRegistrySpec) DeepCopy

func (in *SyncRegistrySpec) DeepCopy() *SyncRegistrySpec

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

func (*SyncRegistrySpec) DeepCopyInto

func (in *SyncRegistrySpec) DeepCopyInto(out *SyncRegistrySpec)

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

type SyncRegistryStatus

type SyncRegistryStatus struct {
	Clusters []ClusterResourcesSyncCondition

	LastTransitionTime metav1.Time
}

func (*SyncRegistryStatus) DeepCopy

func (in *SyncRegistryStatus) DeepCopy() *SyncRegistryStatus

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

func (*SyncRegistryStatus) DeepCopyInto

func (in *SyncRegistryStatus) DeepCopyInto(out *SyncRegistryStatus)

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

type SyncResources

type SyncResources struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec SyncResourcesSpec
}

func (*SyncResources) DeepCopy

func (in *SyncResources) DeepCopy() *SyncResources

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

func (*SyncResources) DeepCopyInto

func (in *SyncResources) DeepCopyInto(out *SyncResources)

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

func (*SyncResources) DeepCopyObject

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

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

type SyncResourcesList

type SyncResourcesList struct {
	metav1.TypeMeta

	metav1.ListMeta

	Items []SyncResources
}

func (*SyncResourcesList) DeepCopy

func (in *SyncResourcesList) DeepCopy() *SyncResourcesList

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

func (*SyncResourcesList) DeepCopyInto

func (in *SyncResourcesList) DeepCopyInto(out *SyncResourcesList)

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

func (*SyncResourcesList) DeepCopyObject

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

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

type SyncResourcesSpec

type SyncResourcesSpec struct {
	SyncResources []ResourceSyncRule
}

func (*SyncResourcesSpec) DeepCopy

func (in *SyncResourcesSpec) DeepCopy() *SyncResourcesSpec

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

func (*SyncResourcesSpec) DeepCopyInto

func (in *SyncResourcesSpec) DeepCopyInto(out *SyncResourcesSpec)

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

type TransformRule

type TransformRule struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec TransformRuleSpec
}

TransformRule is used to define the rule to transform the original resource into the desired target resource.

func (*TransformRule) DeepCopy

func (in *TransformRule) DeepCopy() *TransformRule

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

func (*TransformRule) DeepCopyInto

func (in *TransformRule) DeepCopyInto(out *TransformRule)

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

func (*TransformRule) DeepCopyObject

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

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

type TransformRuleList

type TransformRuleList struct {
	metav1.TypeMeta

	metav1.ListMeta

	Items []TransformRule
}

func (*TransformRuleList) DeepCopy

func (in *TransformRuleList) DeepCopy() *TransformRuleList

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

func (*TransformRuleList) DeepCopyInto

func (in *TransformRuleList) DeepCopyInto(out *TransformRuleList)

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

func (*TransformRuleList) DeepCopyObject

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

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

type TransformRuleSpec

type TransformRuleSpec struct {
	// Type is the type of transformer.
	Type string

	// ValueTemplate is the template of the input data to be paased to the transformer
	ValueTemplate string
}

func (*TransformRuleSpec) DeepCopy

func (in *TransformRuleSpec) DeepCopy() *TransformRuleSpec

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

func (*TransformRuleSpec) DeepCopyInto

func (in *TransformRuleSpec) DeepCopyInto(out *TransformRuleSpec)

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

Directories

Path Synopsis
Package v1beta1 Package v1beta1 is the v1beta1 version of the API.
Package v1beta1 Package v1beta1 is the v1beta1 version of the API.

Jump to

Keyboard shortcuts

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