v1

package
v0.0.0-...-dae06fc Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the jibutech.com v1 API group +kubebuilder:object:generate=true +groupName=jibutech.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "jibutech.com", 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 GroupVersionResource

type GroupVersionResource struct {
	Group    string `json:"group,omitempty"`
	Version  string `json:"version,omitempty"`
	Resource string `json:"resource,omitempty"`
}

func (*GroupVersionResource) DeepCopy

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

func (*GroupVersionResource) DeepCopyInto

func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource)

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

type KsState

type KsState string
const (
	Ready    KsState = "Ready"
	NotReady KsState = "NotReady"
	Paused   KsState = "Paused"
	Deleting KsState = "Deleting"
)

type KubeSync

type KubeSync struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KubeSyncSpec   `json:"spec,omitempty"`
	Status KubeSyncStatus `json:"status,omitempty"`
}

KubeSync is the Schema for the kubesyncs API

func (*KubeSync) DeepCopy

func (in *KubeSync) DeepCopy() *KubeSync

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

func (*KubeSync) DeepCopyInto

func (in *KubeSync) DeepCopyInto(out *KubeSync)

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

func (*KubeSync) DeepCopyObject

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

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

func (*KubeSync) IsDeleting

func (s *KubeSync) IsDeleting() bool

func (*KubeSync) IsNotReady

func (s *KubeSync) IsNotReady() bool

func (*KubeSync) IsPaused

func (s *KubeSync) IsPaused() bool

func (*KubeSync) IsReady

func (s *KubeSync) IsReady() bool

func (*KubeSync) SetDeleting

func (s *KubeSync) SetDeleting()

func (*KubeSync) SetNotReady

func (s *KubeSync) SetNotReady()

func (*KubeSync) SetPaused

func (s *KubeSync) SetPaused()

func (*KubeSync) SetReady

func (s *KubeSync) SetReady()

func (*KubeSync) SetState

func (s *KubeSync) SetState(state KsState)

type KubeSyncList

type KubeSyncList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeSync `json:"items"`
}

KubeSyncList contains a list of KubeSync

func (*KubeSyncList) DeepCopy

func (in *KubeSyncList) DeepCopy() *KubeSyncList

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

func (*KubeSyncList) DeepCopyInto

func (in *KubeSyncList) DeepCopyInto(out *KubeSyncList)

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

func (*KubeSyncList) DeepCopyObject

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

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

type KubeSyncSpec

type KubeSyncSpec struct {
	SrcClusterSecret string            `json:"srcClusterSecret"`
	DstClusterSecret string            `json:"dstClusterSecret"`
	SyncResources    []SyncResource    `json:"syncResources"`
	NsMap            map[string]string `json:"nsMap,omitempty"`
	Pause            bool              `json:"pause,omitempty"`
}

KubeSyncSpec defines the desired state of KubeSync

func (*KubeSyncSpec) DeepCopy

func (in *KubeSyncSpec) DeepCopy() *KubeSyncSpec

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

func (*KubeSyncSpec) DeepCopyInto

func (in *KubeSyncSpec) DeepCopyInto(out *KubeSyncSpec)

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

type KubeSyncStatus

type KubeSyncStatus struct {
	State KsState `json:"state"`
}

KubeSyncStatus defines the observed state of KubeSync

func (*KubeSyncStatus) DeepCopy

func (in *KubeSyncStatus) DeepCopy() *KubeSyncStatus

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

func (*KubeSyncStatus) DeepCopyInto

func (in *KubeSyncStatus) DeepCopyInto(out *KubeSyncStatus)

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

type SyncResource

type SyncResource struct {
	Names      []string             `json:"names,omitempty"`
	Namespaces []string             `json:"namespaces,omitempty"`
	GVR        GroupVersionResource `json:"gvr"`
}

func (*SyncResource) DeepCopy

func (in *SyncResource) DeepCopy() *SyncResource

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

func (*SyncResource) DeepCopyInto

func (in *SyncResource) DeepCopyInto(out *SyncResource)

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

Jump to

Keyboard shortcuts

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