v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=nmstate.io

Index

Constants

View Source
const (
	InterfaceTypeUnknown     = "unknown"
	InterfaceTypeVlan        = "vlan"
	InterfaceTypeEthernet    = "ethernet"
	InterfaceTypeBond        = "bond"
	InterfaceTypeOVSBridge   = "ovs-bridge"
	InterfaceTypeLinuxBridge = "linux-bridge"
	InterfaceTypeDummy       = "dummy"
)
View Source
const (
	InterfaceStateAbsent  = "absent"
	InterfaceStateUp      = "up"
	InterfaceStateDown    = "down"
	InterfaceStateUnknown = "unknown"
)
View Source
const (
	DuplexTypeFull = "full"
	DuplexTypeHalf = "half"
)

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

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

SchemeGroupVersion is group version used to register these objects

View Source
var SchemeGroupVersionNodeNetConfPolicy = schema.GroupVersionKind{
	Group:   SchemeGroupVersion.Group,
	Version: SchemeGroupVersion.Version,
	Kind:    "NodeNetConfPolicy"}
View Source
var SchemeGroupVersionNodeNetworkState = schema.GroupVersionKind{
	Group:   SchemeGroupVersion.Group,
	Version: SchemeGroupVersion.Version,
	Kind:    "NodeNetworkState",
}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AutoConfigSpec

type AutoConfigSpec struct {
	// AutoBonding indicate whether to do auto bonding on interfaces
	Autobonding *bool `json:"autoBonding"`
	// AutoVlan indicate whether to allocate vlans automatically  to interfaces
	AutoVlan *bool `json:"autoVlan"`
}

AutoConfigSpec defines which autoconfiguration to apply on the interfaces

func (*AutoConfigSpec) DeepCopy

func (in *AutoConfigSpec) DeepCopy() *AutoConfigSpec

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

func (*AutoConfigSpec) DeepCopyInto

func (in *AutoConfigSpec) DeepCopyInto(out *AutoConfigSpec)

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

type BridgeOptions

type BridgeOptions struct {
	Stp BridgeStpOptions `json:"stp,omitempty"`
}

func (*BridgeOptions) DeepCopy

func (in *BridgeOptions) DeepCopy() *BridgeOptions

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

func (*BridgeOptions) DeepCopyInto

func (in *BridgeOptions) DeepCopyInto(out *BridgeOptions)

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

type BridgePort

type BridgePort struct {
	// TODO description
	// TODO: Mandatory?
	Name string `json:"name"`
	// TODO description
	// TODO: Mandatory?
	// TODO: possible values
	Type string `json:"type,omitempty"`
	// TODO description
	// TODO: Mandatory?
	// TODO: possible values?
	VlanMode string `json:"vlanMode,omitempty"`
	// TODO description
	// Mandatory?
	AccessTag string `json:"accessTag,omitempty"`
	// sets the port cost of the port <port> to <cost>.
	// This is a dimensionless metric.
	StpPathCost int `json:"stp-path-cost,omitempty"`
	// The priority value is an unsigned 8-bit quantity
	// (a number between 0 and 255), and has no dimension.
	// This metric is used in the designated port and root
	// port selection algorithms.
	StpPriority int `json:"stp-priority,omitempty"`
	// Controls whether traffic may be send back out of the port on
	// which it was received. By default, this flag is turned off and
	// the bridge will not forward traffic back out of the receiving
	// port.
	// NOTE: We don't add omitempty here, to ensure that this is present for
	//       'false' value too
	StpHairpinMode bool `json:"stp-hairpin-mode"`
}

BridgePort TODO: description

func (*BridgePort) DeepCopy

func (in *BridgePort) DeepCopy() *BridgePort

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

func (*BridgePort) DeepCopyInto

func (in *BridgePort) DeepCopyInto(out *BridgePort)

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

type BridgeSpec

type BridgeSpec struct {
	// Port configuration on the bridge
	Ports   []BridgePort  `json:"port"`
	Options BridgeOptions `json:"options,omitempty"`
}

BridgeSpec holds the configuration of the bridge connected to the interface

func (*BridgeSpec) DeepCopy

func (in *BridgeSpec) DeepCopy() *BridgeSpec

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

func (*BridgeSpec) DeepCopyInto

func (in *BridgeSpec) DeepCopyInto(out *BridgeSpec)

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

type BridgeStpOptions

type BridgeStpOptions struct {
	Enabled bool `json:"enabled"`
}

func (*BridgeStpOptions) DeepCopy

func (in *BridgeStpOptions) DeepCopy() *BridgeStpOptions

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

func (*BridgeStpOptions) DeepCopyInto

func (in *BridgeStpOptions) DeepCopyInto(out *BridgeStpOptions)

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

type CIDR

type CIDR struct {
	IP           string `json:"ip"`
	PrefixLength uint8  `json:"prefix-length"`
}

CIDR has IP and prefix length

func (*CIDR) DeepCopy

func (in *CIDR) DeepCopy() *CIDR

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

func (*CIDR) DeepCopyInto

func (in *CIDR) DeepCopyInto(out *CIDR)

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

type ConfAndOperationalState

type ConfAndOperationalState struct {
	Capabilities []string `json:"capabilities"`
	// Current configuration as well as operational state of the interfaces
	Interfaces []InterfaceInfo `json:"interfaces"`
}

ConfAndOperationalState is the operational state of a node. This includes both configuration and state

func (*ConfAndOperationalState) DeepCopy

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

func (*ConfAndOperationalState) DeepCopyInto

func (in *ConfAndOperationalState) DeepCopyInto(out *ConfAndOperationalState)

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

type ConfigurationState

type ConfigurationState struct {
	Interfaces []InterfaceSpec `json:"interfaces"`
}

ConfigurationState holding a list of interfaces and their configuration. Used both as desired configuration and actual configuration.

func (*ConfigurationState) DeepCopy

func (in *ConfigurationState) DeepCopy() *ConfigurationState

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

func (*ConfigurationState) DeepCopyInto

func (in *ConfigurationState) DeepCopyInto(out *ConfigurationState)

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

type DuplexType

type DuplexType string

DuplexType is either "full" or "half"

type EthernetSpec

type EthernetSpec struct {
	// auto-negotiation setting of the interface
	AutoNegotiation bool `json:"auto-negotiation"`
	// duplex settings of the interface
	Duplex DuplexType `json:"duplex"`
	// Link speed in TODO: which units
	Speed uint `json:"speed"`
}

EthernetSpec configuration of interface of type ethernet

func (*EthernetSpec) DeepCopy

func (in *EthernetSpec) DeepCopy() *EthernetSpec

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

func (*EthernetSpec) DeepCopyInto

func (in *EthernetSpec) DeepCopyInto(out *EthernetSpec)

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

type IPv4Spec

type IPv4Spec struct {
	// Indication whether IPv4 is enabled
	Enabled bool `json:"enabled"`
	// Whether IPv4 addresses are dynamically configured
	DHCP *bool `json:"dhcp,omitempty"`
	// List of IPv4 addresses
	Address []CIDR `json:"address,omitempty"`
	// TODO: description
	Neighbors []Neighbor `json:"neighbors,omitempty"`
	// TODO: description
	Forwarding *bool `json:"forwarding,omitempty"`
}

IPv4Spec hold the IPv4 configuration of the interface

func (*IPv4Spec) DeepCopy

func (in *IPv4Spec) DeepCopy() *IPv4Spec

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

func (*IPv4Spec) DeepCopyInto

func (in *IPv4Spec) DeepCopyInto(out *IPv4Spec)

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

type IPv6Spec

type IPv6Spec struct {
	// Indication whether IPv4 is enabled
	Enabled bool `json:"enabled"`
	// Whether IPv4 addresses are dynamically configured
	DHCP *bool `json:"dhcp,omitempty"`
	// IPv6 autoconf
	AutoConf *bool `json:"autoConf,omitempty"`
	// List of IPv4 addresses
	Address []CIDR `json:"address,omitempty"`
	// TODO: description
	Neighbors []CIDR `json:"neighbors,omitempty"`
	// TODO: description
	Forwarding *bool `json:"forwarding,omitempty"`
	// TODO: description?
	DupAddrDetectTransmit *int `json:"dupAddressDetectTransmit,omitempty"`
}

IPv6Spec hold the IPv6 configuration of the interface

func (*IPv6Spec) DeepCopy

func (in *IPv6Spec) DeepCopy() *IPv6Spec

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

func (*IPv6Spec) DeepCopyInto

func (in *IPv6Spec) DeepCopyInto(out *IPv6Spec)

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

type InterfaceInfo

type InterfaceInfo struct {
	// Current configuration of the interface
	InterfaceSpec `json:",inline"`
	// Interface index
	IFIndex uint `json:"ifIndex"`
	// TODO: list of possible values
	AdminStatus string `json:"adminStatus,omitempty"`
	// TODO: list of possible values
	LinkStatus string `json:"linkStatus,omitempty"`
	// Physical address
	// TODO: do we need that on top of the MAC address from InterfaceSpec?
	PhysAddress string `json:"physAddress,omitempty"`
	// Name of the higher layer interface
	HigherLayerIF string `json:"higherLayerInterface,omitempty"`
	// Name of the lower layer interface
	LowerLayerIF string `json:"lowerLayerInterface,omitempty"`
	// Statistics of the interface
	Statistics *InterfaceStatistics `json:"statistics,omitempty"`
}

InterfaceInfo holds the operational status of an interface

func (*InterfaceInfo) DeepCopy

func (in *InterfaceInfo) DeepCopy() *InterfaceInfo

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

func (*InterfaceInfo) DeepCopyInto

func (in *InterfaceInfo) DeepCopyInto(out *InterfaceInfo)

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

type InterfaceMatchRule

type InterfaceMatchRule struct {
	// Name of the interface to match
	Name string `json:"name,omitempty"`
	// Type of the interface to match
	Type InterfaceType `json:"type,omitempty"`
	// VLAN ID on the interface to match
	VlanID *uint `json:"vlanID"`
	// Information retrieved from LLDP on neighbors
	LLDP *LLDPInfo `json:"lldp"`
}

InterfaceMatchRule is a rule describing a match on a specifc interface. If multiple parameters are provided, all must match the interface, for it to be included in the list of matched interfaces.

func (*InterfaceMatchRule) DeepCopy

func (in *InterfaceMatchRule) DeepCopy() *InterfaceMatchRule

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

func (*InterfaceMatchRule) DeepCopyInto

func (in *InterfaceMatchRule) DeepCopyInto(out *InterfaceMatchRule)

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

type InterfaceSpec

type InterfaceSpec struct {
	// Name of the interface
	Name string `json:"name"`
	// Description of the interface
	Description string `json:"description,omitempty"`
	// Type of interface
	Type InterfaceType `json:"type,omitempty"`
	// State of interface
	State InterfaceState `json:"state,omitempty"`
	// MAC address set on the interface
	MACAddress string `json:"macAddress,omitempty"`
	// MTU size in bytes set on the interface
	MTU *uint `json:"mtu,omitempty"`
	// Ethernet holds configuration of interface of type ethernet
	Ethernet *EthernetSpec `json:"ethernet,omitempty"`
	// Flow control setting of the interface
	FlowControl *bool `json:"flowControl,omitempty"`
	// VLAN ID set on the interface
	VlanID *uint `json:"vlanID,omitempty"`
	// The interface on which the VLAN was created
	VlanBase string `json:"vlanbase,omitempty"`
	// Link aggregation (bond) spec of the interface
	LinkAggregation *LinkAggregationSpec `json:"linkaggregation,omitempty"`
	// Configuration of a bridge connected to the interface
	Bridge *BridgeSpec `json:"bridge,omitempty"`
	// IPv4 configuration of the interface
	IPv4 *IPv4Spec `json:"ipv4,omitempty"`
	// IPv6 configuration of the interface
	IPv6 *IPv6Spec `json:"ipv6,omitempty"`
}

InterfaceSpec configuration of an interface

func (*InterfaceSpec) DeepCopy

func (in *InterfaceSpec) DeepCopy() *InterfaceSpec

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

func (*InterfaceSpec) DeepCopyInto

func (in *InterfaceSpec) DeepCopyInto(out *InterfaceSpec)

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

type InterfaceState

type InterfaceState string

InterfaceState is the state of the interface. One of: absent, up, down, unknown

type InterfaceStatistics

type InterfaceStatistics struct {
	InBroadcastPackets  uint64 `json:"inBroadcastPackets"`
	InDiscards          uint64 `json:"inDiscards"`
	InErrors            uint64 `json:"inErrors"`
	InMulticastPackets  uint64 `json:"inMulticastPackets"`
	InOctets            uint64 `json:"inOctets"`
	InUnicastPackets    uint64 `json:"inUnicastPackets"`
	OutBroadcastPackets uint64 `json:"outBroadcastPackets"`
	OutDiscards         uint64 `json:"outDiscards"`
	OutErrors           uint64 `json:"outErrors"`
	OutMulticastPackets uint64 `json:"outMulticastPackets"`
	OutOctets           uint64 `json:"outOctets"`
	OutUnicastPackets   uint64 `json:"outUnicastPackets"`
}

InterfaceStatistics holds the counters on the interface

func (*InterfaceStatistics) DeepCopy

func (in *InterfaceStatistics) DeepCopy() *InterfaceStatistics

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

func (*InterfaceStatistics) DeepCopyInto

func (in *InterfaceStatistics) DeepCopyInto(out *InterfaceStatistics)

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

type InterfaceType

type InterfaceType string

InterfaceType is the type of the interface. One of: unknown, vlan, ethernet, bond, ovs-bridge

type LLDPInfo

type LLDPInfo struct {
	VlanIDList []uint `json:"vlanIDList,omitempty"`
}

LLDPInfo holds information retrieved via LLDP protocol from neighboring interfaces

func (*LLDPInfo) DeepCopy

func (in *LLDPInfo) DeepCopy() *LLDPInfo

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

func (*LLDPInfo) DeepCopyInto

func (in *LLDPInfo) DeepCopyInto(out *LLDPInfo)

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

type LinkAggregationMode

type LinkAggregationMode string

LinkAggregationMode one of the following modes:

type LinkAggregationOptions

type LinkAggregationOptions struct {
	// TODO: description
	Stp *bool `json:"stp,omitempty"`
	// TODO: description
	Rstp *bool `json:"rstp,omitempty"`
	// TODO: description
	FailMode string `json:"failMode,omitempty"`
	// TODO: description
	McastSnoopingEnabled *bool `json:"mcastSnoopingEnabled,omitempty"`
}

LinkAggregationOptions TODO: description

func (*LinkAggregationOptions) DeepCopy

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

func (*LinkAggregationOptions) DeepCopyInto

func (in *LinkAggregationOptions) DeepCopyInto(out *LinkAggregationOptions)

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

type LinkAggregationSpec

type LinkAggregationSpec struct {
	// Link aggregation mode
	Mode LinkAggregationMode `json:"mode"`
	// List of slave interfaces aggregated by the interface
	Slaves []string `json:"slaves,omitempty"`
	// TODO: description
	Options *LinkAggregationOptions `json:"options,omitempty"`
}

LinkAggregationSpec aggregation spec of an interface

func (*LinkAggregationSpec) DeepCopy

func (in *LinkAggregationSpec) DeepCopy() *LinkAggregationSpec

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

func (*LinkAggregationSpec) DeepCopyInto

func (in *LinkAggregationSpec) DeepCopyInto(out *LinkAggregationSpec)

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

type Neighbor

type Neighbor struct {
	IP               string `json:"ip"`
	LinkLayerAddress string `json:"linkLayerAddress"`
}

Neighbor TODO: add description

func (*Neighbor) DeepCopy

func (in *Neighbor) DeepCopy() *Neighbor

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

func (*Neighbor) DeepCopyInto

func (in *Neighbor) DeepCopyInto(out *Neighbor)

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

type NodeNetConfPolicy

type NodeNetConfPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodeNetConfPolicySpec `json:"spec"`
}

NodeNetConfPolicy network configuration policy in the cluster

func (*NodeNetConfPolicy) DeepCopy

func (in *NodeNetConfPolicy) DeepCopy() *NodeNetConfPolicy

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

func (*NodeNetConfPolicy) DeepCopyInto

func (in *NodeNetConfPolicy) DeepCopyInto(out *NodeNetConfPolicy)

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

func (*NodeNetConfPolicy) DeepCopyObject

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

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

type NodeNetConfPolicyList

type NodeNetConfPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []NodeNetConfPolicy `json:"items"`
}

NodeNetConfPolicyList is a list of NodeNetConfPolicy

func (*NodeNetConfPolicyList) DeepCopy

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

func (*NodeNetConfPolicyList) DeepCopyInto

func (in *NodeNetConfPolicyList) DeepCopyInto(out *NodeNetConfPolicyList)

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

func (*NodeNetConfPolicyList) DeepCopyObject

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

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

type NodeNetConfPolicySpec

type NodeNetConfPolicySpec struct {
	// Node affinity may be used to select on which nodes the state should be applied
	// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
	Affinity *k8sv1.Affinity `json:"affinity,omitempty"`
	// Node tolerations may be used to select on which nodes the state should NOT be applied
	// More info: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
	Tolerations []k8sv1.Toleration `json:"tolerations,omitempty"`
	// List of interfaces on which the configuration should be applied.
	// List must include at least one interface matching rule.
	MatchRules []InterfaceMatchRule `json:"matchRules"`
	// Specification for auto configuration of the matched interfaces.
	// Mutually exclusive with DesiredState.
	AutoConfig *AutoConfigSpec `json:"autoconfig"`
	// Specification of the desired state of the matched interfaces.
	// Mutually exclusive with AutoConfig.
	DesiredState *ConfigurationState `json:"desiredState"`
}

NodeNetConfPolicySpec is a description of a NodeNetConfPolicy

func (*NodeNetConfPolicySpec) DeepCopy

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

func (*NodeNetConfPolicySpec) DeepCopyInto

func (in *NodeNetConfPolicySpec) DeepCopyInto(out *NodeNetConfPolicySpec)

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

type NodeNetworkState

type NodeNetworkState struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodeNetworkStateSpec   `json:"spec"`
	Status            NodeNetworkStateStatus `json:"status"`
}

NodeNetworkState contains the networking state of the node. This would be used as the desired state as well as the current state.

func (*NodeNetworkState) DeepCopy

func (in *NodeNetworkState) DeepCopy() *NodeNetworkState

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

func (*NodeNetworkState) DeepCopyInto

func (in *NodeNetworkState) DeepCopyInto(out *NodeNetworkState)

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

func (*NodeNetworkState) DeepCopyObject

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

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

type NodeNetworkStateList

type NodeNetworkStateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []NodeNetworkState `json:"items"`
}

NodeNetworkStateList is a list of NodeNetworkState.

func (*NodeNetworkStateList) DeepCopy

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

func (*NodeNetworkStateList) DeepCopyInto

func (in *NodeNetworkStateList) DeepCopyInto(out *NodeNetworkStateList)

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

func (*NodeNetworkStateList) DeepCopyObject

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

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

type NodeNetworkStateSpec

type NodeNetworkStateSpec struct {
	Managed bool `json:"managed"`
	// Name of the node reporting this state
	NodeName string `json:"nodeName"`
	// The desired configuration for the node derived from the NodeNetConfPolicy
	DesiredState ConfigurationState `json:"desiredState"`
}

NodeNetworkStateSpec is a description of a NodeNetworkState An admin can mark the object as non-managed, signalling the implementation that it should compute the desired state of the node, but that it should not to attempt to change the operational network state.

func (*NodeNetworkStateSpec) DeepCopy

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

func (*NodeNetworkStateSpec) DeepCopyInto

func (in *NodeNetworkStateSpec) DeepCopyInto(out *NodeNetworkStateSpec)

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

type NodeNetworkStateStatus

type NodeNetworkStateStatus struct {
	CurrentState ConfAndOperationalState `json:"currentState"`
}

NodeNetworkStateStatus is the status of the NodeNetworkState of a specific node

func (*NodeNetworkStateStatus) DeepCopy

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

func (*NodeNetworkStateStatus) DeepCopyInto

func (in *NodeNetworkStateStatus) DeepCopyInto(out *NodeNetworkStateStatus)

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