v1beta1

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

View Source
const (
	StatusDry      = "dry"
	StatusHungry   = "hungry"
	StatusNormal   = "normal"
	StatusOverflow = "overflow"
)

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: ipamd.GroupName, Version: "v1beta1"}

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 a Group qualified GroupResource

Types

type Ipamd

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

	Spec   IpamdSpec   `json:"spec"`
	Status IpamdStatus `json:"status"`
}

Ipamd is a specification for a Ipamd resource

func (*Ipamd) DeepCopy

func (in *Ipamd) DeepCopy() *Ipamd

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

func (*Ipamd) DeepCopyInto

func (in *Ipamd) DeepCopyInto(out *Ipamd)

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

func (*Ipamd) DeepCopyObject

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

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

type IpamdList

type IpamdList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Ipamd `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object IpamdList is a list of Ipamd resources

func (*IpamdList) DeepCopy

func (in *IpamdList) DeepCopy() *IpamdList

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

func (*IpamdList) DeepCopyInto

func (in *IpamdList) DeepCopyInto(out *IpamdList)

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

func (*IpamdList) DeepCopyObject

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

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

type IpamdSpec

type IpamdSpec struct {
	Node   string `json:"node"`
	Addr   string `json:"addr"`
	Subnet string `json:"subnet"`
}

IpamdSpec is the spec for a Ipamd resource

func (*IpamdSpec) DeepCopy

func (in *IpamdSpec) DeepCopy() *IpamdSpec

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

func (*IpamdSpec) DeepCopyInto

func (in *IpamdSpec) DeepCopyInto(out *IpamdSpec)

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

type IpamdStatus

type IpamdStatus struct {
	Current int `json:"current"`

	High int `json:"high"`
	Low  int `json:"low"`

	Status string `json:"status"`
}

IpamdSpec is the status for Ipamd resource

func (*IpamdStatus) DeepCopy

func (in *IpamdStatus) DeepCopy() *IpamdStatus

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

func (*IpamdStatus) DeepCopyInto

func (in *IpamdStatus) DeepCopyInto(out *IpamdStatus)

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