v1alpha1

package
v0.0.0-...-2c01861 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dhcp v1alpha1 API group +kubebuilder:object:generate=true +groupName=dhcp.bmcgo.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "dhcp.bmcgo.dev", Version: "v1alpha1"}

	// 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 DHCPHost

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

	Spec   DHCPHostSpec   `json:"spec,omitempty"`
	Status DHCPHostStatus `json:"status,omitempty"`
}

DHCPHost is the Schema for the dhcphosts API

func (*DHCPHost) DeepCopy

func (in *DHCPHost) DeepCopy() *DHCPHost

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

func (*DHCPHost) DeepCopyInto

func (in *DHCPHost) DeepCopyInto(out *DHCPHost)

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

func (*DHCPHost) DeepCopyObject

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

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

func (*DHCPHost) ToDHCPHost

func (s *DHCPHost) ToDHCPHost() dhcp.Host

type DHCPHostList

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

DHCPHostList contains a list of DHCPHost

func (*DHCPHostList) DeepCopy

func (in *DHCPHostList) DeepCopy() *DHCPHostList

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

func (*DHCPHostList) DeepCopyInto

func (in *DHCPHostList) DeepCopyInto(out *DHCPHostList)

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

func (*DHCPHostList) DeepCopyObject

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

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

type DHCPHostSpec

type DHCPHostSpec struct {
	Subnet         string   `json:"subnet"`
	MAC            string   `json:"mac"`
	IP             string   `json:"ip,omitempty"`
	Gateway        string   `json:"gateway,omitempty"`
	HostName       string   `json:"hostname,omitempty"`
	DNS            []string `json:"dns,omitempty"`
	Options        []Option `json:"options,omitempty"`
	ServerHostName string   `json:"serverHostName,omitempty"`
	BootFileName   string   `json:"bootFileName,omitempty"`
	LeaseTime      int      `json:"leaseTime,omitempty"`
}

DHCPHostSpec defines the desired state of DHCPHost

func (*DHCPHostSpec) DeepCopy

func (in *DHCPHostSpec) DeepCopy() *DHCPHostSpec

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

func (*DHCPHostSpec) DeepCopyInto

func (in *DHCPHostSpec) DeepCopyInto(out *DHCPHostSpec)

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

type DHCPHostStatus

type DHCPHostStatus struct {
}

DHCPHostStatus defines the observed state of DHCPHost

func (*DHCPHostStatus) DeepCopy

func (in *DHCPHostStatus) DeepCopy() *DHCPHostStatus

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

func (*DHCPHostStatus) DeepCopyInto

func (in *DHCPHostStatus) DeepCopyInto(out *DHCPHostStatus)

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

type DHCPServer

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

	Spec   DHCPServerSpec   `json:"spec,omitempty"`
	Status DHCPServerStatus `json:"status,omitempty"`
}

DHCPServer is the Schema for the dhcpservers API

func (*DHCPServer) DeepCopy

func (in *DHCPServer) DeepCopy() *DHCPServer

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

func (*DHCPServer) DeepCopyInto

func (in *DHCPServer) DeepCopyInto(out *DHCPServer)

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

func (*DHCPServer) DeepCopyObject

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

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

func (*DHCPServer) ToListen

func (s *DHCPServer) ToListen() dhcp.Listen

type DHCPServerList

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

DHCPServerList contains a list of DHCPServer

func (*DHCPServerList) DeepCopy

func (in *DHCPServerList) DeepCopy() *DHCPServerList

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

func (*DHCPServerList) DeepCopyInto

func (in *DHCPServerList) DeepCopyInto(out *DHCPServerList)

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

func (*DHCPServerList) DeepCopyObject

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

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

type DHCPServerSpec

type DHCPServerSpec struct {
	ListenInterface string `json:"listenInterface,omitempty"`
	ListenAddress   string `json:"listenAddress,omitempty"`
	ReuseAddr       bool   `json:"reuseAddr,omitempty"`
}

DHCPServerSpec defines the desired state of DHCPServer

func (*DHCPServerSpec) DeepCopy

func (in *DHCPServerSpec) DeepCopy() *DHCPServerSpec

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

func (*DHCPServerSpec) DeepCopyInto

func (in *DHCPServerSpec) DeepCopyInto(out *DHCPServerSpec)

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

type DHCPServerStatus

type DHCPServerStatus struct {
	ErrorMessage string      `json:"errorMessage"`
	LastUpdate   metav1.Time `json:"lastUpdate"`
}

DHCPServerStatus defines the observed state of DHCPServer

func (*DHCPServerStatus) DeepCopy

func (in *DHCPServerStatus) DeepCopy() *DHCPServerStatus

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

func (*DHCPServerStatus) DeepCopyInto

func (in *DHCPServerStatus) DeepCopyInto(out *DHCPServerStatus)

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

type DHCPSubnet

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

	Spec   DHCPSubnetSpec   `json:"spec,omitempty"`
	Status DHCPSubnetStatus `json:"status,omitempty"`
}

DHCPSubnet is the Schema for the dhcpsubnets API

func (*DHCPSubnet) DeepCopy

func (in *DHCPSubnet) DeepCopy() *DHCPSubnet

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

func (*DHCPSubnet) DeepCopyInto

func (in *DHCPSubnet) DeepCopyInto(out *DHCPSubnet)

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

func (*DHCPSubnet) DeepCopyObject

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

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

func (*DHCPSubnet) ToSubnet

func (s *DHCPSubnet) ToSubnet() dhcp.Subnet

type DHCPSubnetList

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

DHCPSubnetList contains a list of DHCPSubnet

func (*DHCPSubnetList) DeepCopy

func (in *DHCPSubnetList) DeepCopy() *DHCPSubnetList

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

func (*DHCPSubnetList) DeepCopyInto

func (in *DHCPSubnetList) DeepCopyInto(out *DHCPSubnetList)

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

func (*DHCPSubnetList) DeepCopyObject

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

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

type DHCPSubnetSpec

type DHCPSubnetSpec struct {
	Subnet         string   `json:"subnet"`
	RangeFrom      string   `json:"rangeFrom"`
	RangeTo        string   `json:"rangeTo"`
	Gateway        string   `json:"gateway,omitempty"`
	DNS            []string `json:"dns,omitempty"`
	Options        []Option `json:"options,omitempty"`
	ServerHostName string   `json:"serverHostName,omitempty"`
	BootFileName   string   `json:"bootFileName,omitempty"`
	LeaseTime      int      `json:"leaseTime,omitempty"`

	Server metav1.OwnerReference `json:"server,omitempty"`
}

DHCPSubnetSpec defines the desired state of DHCPSubnet

func (*DHCPSubnetSpec) DeepCopy

func (in *DHCPSubnetSpec) DeepCopy() *DHCPSubnetSpec

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

func (*DHCPSubnetSpec) DeepCopyInto

func (in *DHCPSubnetSpec) DeepCopyInto(out *DHCPSubnetSpec)

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

type DHCPSubnetStatus

type DHCPSubnetStatus struct {
	ErrorMessage string           `json:"errorMessage"`
	Leases       map[string]Lease `json:"leases"`
}

DHCPSubnetStatus defines the observed state of DHCPSubnet

func (*DHCPSubnetStatus) DeepCopy

func (in *DHCPSubnetStatus) DeepCopy() *DHCPSubnetStatus

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

func (*DHCPSubnetStatus) DeepCopyInto

func (in *DHCPSubnetStatus) DeepCopyInto(out *DHCPSubnetStatus)

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

type Lease

type Lease struct {
	IP        string      `json:"ip"`
	UpdatedAt metav1.Time `json:"updatedAt"`
}

func (*Lease) DeepCopy

func (in *Lease) DeepCopy() *Lease

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

func (*Lease) DeepCopyInto

func (in *Lease) DeepCopyInto(out *Lease)

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

type Option

type Option struct {
	ID    uint8  `json:"id"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

func (*Option) DeepCopy

func (in *Option) DeepCopy() *Option

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

func (*Option) DeepCopyInto

func (in *Option) DeepCopyInto(out *Option)

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