v1

package
v0.0.0-...-e1a04f4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GroupName = "mesh.mk8s.costinm.github.com"

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

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

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

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

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

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Ptr

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

	// Spec defines the state of a destination - it is dynamically determined by
	// different mechanisms.
	//
	Spec PtrSpec `json:"spec"`

	// Status defines the current state of a destination.
	//
	// +kubebuilder:default={conditions: {{type: "Accepted", status: "Unknown", reason:"Pending", message:"Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"},{type: "Programmed", status: "Unknown", reason:"Pending", message:"Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"}}}
	Status PtrStatus `json:"status,omitempty"`
}

Ptr represents a pointer from an IP address to host info.

func (*Ptr) DeepCopy

func (in *Ptr) DeepCopy() *Ptr

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

func (*Ptr) DeepCopyInto

func (in *Ptr) DeepCopyInto(out *Ptr)

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

func (*Ptr) DeepCopyObject

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

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

type PtrList

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

PtrList contains a list of Ptrs.

func (*PtrList) DeepCopy

func (in *PtrList) DeepCopy() *PtrList

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

func (*PtrList) DeepCopyInto

func (in *PtrList) DeepCopyInto(out *PtrList)

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

func (*PtrList) DeepCopyObject

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

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

type PtrSpec

type PtrSpec struct {
	// Support: Core
	Host string `json:"host"`
	IP   string `json:"ip"`
}

PtrSpec defines the desired state of Ptr.

func (*PtrSpec) DeepCopy

func (in *PtrSpec) DeepCopy() *PtrSpec

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

func (*PtrSpec) DeepCopyInto

func (in *PtrSpec) DeepCopyInto(out *PtrSpec)

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

type PtrStatus

type PtrStatus struct {
	Host string `json:"host"`
	IP   string `json:"ip"`
}

func (*PtrStatus) DeepCopy

func (in *PtrStatus) DeepCopy() *PtrStatus

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

func (*PtrStatus) DeepCopyInto

func (in *PtrStatus) DeepCopyInto(out *PtrStatus)

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

type SyncStatus

type SyncStatus struct {
}

SyncStatus tracks the sync status for K8S or other revisioned resource.

This is an alternative to an informer holding the entire data set in memory and loading all data at startup.

A client would load the sync status and list or watch based on last resource that was handled.

Jump to

Keyboard shortcuts

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