models

package
v0.0.0-...-9514e8a Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// BgpRoutePolicyTypeExport captures enum value "export"
	BgpRoutePolicyTypeExport string = "export"

	// BgpRoutePolicyTypeImport captures enum value "import"
	BgpRoutePolicyTypeImport string = "import"
)
View Source
const (

	// BgpRoutePolicyStatementRouteActionNone captures enum value "none"
	BgpRoutePolicyStatementRouteActionNone string = "none"

	// BgpRoutePolicyStatementRouteActionAccept captures enum value "accept"
	BgpRoutePolicyStatementRouteActionAccept string = "accept"

	// BgpRoutePolicyStatementRouteActionReject captures enum value "reject"
	BgpRoutePolicyStatementRouteActionReject string = "reject"
)
View Source
const (

	// DaemonConfigurationSpecPolicyEnforcementDefault captures enum value "default"
	DaemonConfigurationSpecPolicyEnforcementDefault string = "default"

	// DaemonConfigurationSpecPolicyEnforcementAlways captures enum value "always"
	DaemonConfigurationSpecPolicyEnforcementAlways string = "always"

	// DaemonConfigurationSpecPolicyEnforcementNever captures enum value "never"
	DaemonConfigurationSpecPolicyEnforcementNever string = "never"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BgpFamily

type BgpFamily struct {

	// Address Family Indicator (AFI) of the path
	Afi string `json:"afi,omitempty"`

	// Subsequent Address Family Indicator (SAFI) of the path
	Safi string `json:"safi,omitempty"`
}

BgpFamily Address Family Indicator (AFI) and Subsequent Address Family Indicator (SAFI) of the path

swagger:model BgpFamily

func (*BgpFamily) ContextValidate

func (m *BgpFamily) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bgp family based on context it is used

func (*BgpFamily) MarshalBinary

func (m *BgpFamily) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpFamily) UnmarshalBinary

func (m *BgpFamily) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpFamily) Validate

func (m *BgpFamily) Validate(formats strfmt.Registry) error

Validate validates this bgp family

type BgpGracefulRestart

type BgpGracefulRestart struct {

	// When set, graceful restart capability is negotiated for all AFI/SAFIs of
	// this peer.
	Enabled bool `json:"enabled,omitempty"`

	// This is the time advertised to peer for the BGP session to be re-established
	// after a restart. After this period, peer will remove stale routes.
	// (RFC 4724 section 4.2)
	RestartTimeSeconds int64 `json:"restart-time-seconds,omitempty"`
}

BgpGracefulRestart BGP graceful restart parameters negotiated with the peer.

+k8s:deepcopy-gen=true

swagger:model BgpGracefulRestart

func (*BgpGracefulRestart) ContextValidate

func (m *BgpGracefulRestart) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bgp graceful restart based on context it is used

func (*BgpGracefulRestart) MarshalBinary

func (m *BgpGracefulRestart) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpGracefulRestart) UnmarshalBinary

func (m *BgpGracefulRestart) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpGracefulRestart) Validate

func (m *BgpGracefulRestart) Validate(formats strfmt.Registry) error

Validate validates this bgp graceful restart

type BgpNlri

type BgpNlri struct {

	// Base64-encoded NLRI in the BGP UPDATE message format
	Base64 string `json:"base64,omitempty"`
}

BgpNlri Network Layer Reachability Information (NLRI) of the path

swagger:model BgpNlri

func (*BgpNlri) ContextValidate

func (m *BgpNlri) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bgp nlri based on context it is used

func (*BgpNlri) MarshalBinary

func (m *BgpNlri) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpNlri) UnmarshalBinary

func (m *BgpNlri) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpNlri) Validate

func (m *BgpNlri) Validate(formats strfmt.Registry) error

Validate validates this bgp nlri

type BgpPath

type BgpPath struct {

	// Age of the path (time since its creation) in nanoseconds
	AgeNanoseconds int64 `json:"age-nanoseconds,omitempty"`

	// True value flags the best path towards the destination prefix
	Best bool `json:"best,omitempty"`

	// Address Family Indicator (AFI) and Subsequent Address Family Indicator (SAFI) of the path
	Family *BgpFamily `json:"family,omitempty"`

	// Network Layer Reachability Information of the path
	Nlri *BgpNlri `json:"nlri,omitempty"`

	// List of BGP path attributes specific for the path
	PathAttributes []*BgpPathAttribute `json:"path-attributes"`

	// True value marks the path as stale
	Stale bool `json:"stale,omitempty"`
}

BgpPath Single BGP routing Path containing BGP Network Layer Reachability Information (NLRI) and path attributes

swagger:model BgpPath

func (*BgpPath) ContextValidate

func (m *BgpPath) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bgp path based on the context it is used

func (*BgpPath) MarshalBinary

func (m *BgpPath) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpPath) UnmarshalBinary

func (m *BgpPath) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpPath) Validate

func (m *BgpPath) Validate(formats strfmt.Registry) error

Validate validates this bgp path

type BgpPathAttribute

type BgpPathAttribute struct {

	// Base64-encoded BGP path attribute in the BGP UPDATE message format
	Base64 string `json:"base64,omitempty"`
}

BgpPathAttribute Single BGP path attribute specific for the path

swagger:model BgpPathAttribute

func (*BgpPathAttribute) ContextValidate

func (m *BgpPathAttribute) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bgp path attribute based on context it is used

func (*BgpPathAttribute) MarshalBinary

func (m *BgpPathAttribute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpPathAttribute) UnmarshalBinary

func (m *BgpPathAttribute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpPathAttribute) Validate

func (m *BgpPathAttribute) Validate(formats strfmt.Registry) error

Validate validates this bgp path attribute

type BgpPeer

type BgpPeer struct {

	// Applied initial value for the BGP HoldTimer (RFC 4271, Section 4.2) in seconds.
	// The applied value holds the value that is in effect on the current BGP session.
	//
	AppliedHoldTimeSeconds int64 `json:"applied-hold-time-seconds,omitempty"`

	// Applied initial value for the BGP KeepaliveTimer (RFC 4271, Section 8) in seconds.
	// The applied value holds the value that is in effect on the current BGP session.
	//
	AppliedKeepAliveTimeSeconds int64 `json:"applied-keep-alive-time-seconds,omitempty"`

	// Configured initial value for the BGP HoldTimer (RFC 4271, Section 4.2) in seconds.
	// The configured value will be used for negotiation with the peer during the BGP session establishment.
	//
	ConfiguredHoldTimeSeconds int64 `json:"configured-hold-time-seconds,omitempty"`

	// Configured initial value for the BGP KeepaliveTimer (RFC 4271, Section 8) in seconds.
	// The applied value may be different than the configured value, as it depends on the negotiated hold time interval.
	//
	ConfiguredKeepAliveTimeSeconds int64 `json:"configured-keep-alive-time-seconds,omitempty"`

	// Initial value for the BGP ConnectRetryTimer (RFC 4271, Section 8) in seconds
	ConnectRetryTimeSeconds int64 `json:"connect-retry-time-seconds,omitempty"`

	// Time To Live (TTL) value used in BGP packets sent to the eBGP neighbor.
	// 1 implies that eBGP multi-hop feature is disabled (only a single hop is allowed).
	//
	EbgpMultihopTTL int64 `json:"ebgp-multihop-ttl,omitempty"`

	// BGP peer address family state
	Families []*BgpPeerFamilies `json:"families"`

	// Graceful restart capability
	GracefulRestart *BgpGracefulRestart `json:"graceful-restart,omitempty"`

	// Local AS Number
	LocalAsn int64 `json:"local-asn,omitempty"`

	// IP Address of peer
	PeerAddress string `json:"peer-address,omitempty"`

	// Peer AS Number
	PeerAsn int64 `json:"peer-asn,omitempty"`

	// TCP port number of peer
	// Maximum: 65535
	// Minimum: 1
	PeerPort int64 `json:"peer-port,omitempty"`

	// BGP peer operational state as described here
	// https://www.rfc-editor.org/rfc/rfc4271#section-8.2.2
	//
	SessionState string `json:"session-state,omitempty"`

	// Set when a TCP password is configured for communications with this peer
	TCPPasswordEnabled bool `json:"tcp-password-enabled,omitempty"`

	// BGP peer connection uptime in nano seconds.
	UptimeNanoseconds int64 `json:"uptime-nanoseconds,omitempty"`
}

BgpPeer State of a BGP Peer

+k8s:deepcopy-gen=true

swagger:model BgpPeer

func (*BgpPeer) ContextValidate

func (m *BgpPeer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bgp peer based on the context it is used

func (*BgpPeer) MarshalBinary

func (m *BgpPeer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpPeer) UnmarshalBinary

func (m *BgpPeer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpPeer) Validate

func (m *BgpPeer) Validate(formats strfmt.Registry) error

Validate validates this bgp peer

type BgpPeerFamilies

type BgpPeerFamilies struct {

	// Number of routes accepted from the peer of this address family
	Accepted int64 `json:"accepted,omitempty"`

	// Number of routes advertised of this address family to the peer
	Advertised int64 `json:"advertised,omitempty"`

	// BGP address family indicator
	Afi string `json:"afi,omitempty"`

	// Number of routes received from the peer of this address family
	Received int64 `json:"received,omitempty"`

	// BGP subsequent address family indicator
	Safi string `json:"safi,omitempty"`
}

BgpPeerFamilies BGP AFI SAFI state of the peer

+k8s:deepcopy-gen=true

swagger:model BgpPeerFamilies

func (*BgpPeerFamilies) ContextValidate

func (m *BgpPeerFamilies) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bgp peer families based on context it is used

func (*BgpPeerFamilies) MarshalBinary

func (m *BgpPeerFamilies) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpPeerFamilies) UnmarshalBinary

func (m *BgpPeerFamilies) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpPeerFamilies) Validate

func (m *BgpPeerFamilies) Validate(formats strfmt.Registry) error

Validate validates this bgp peer families

type BgpRoute

type BgpRoute struct {

	// IP address specifying a BGP neighbor if the source table type is adj-rib-in or adj-rib-out
	Neighbor string `json:"neighbor,omitempty"`

	// List of routing paths leading towards the prefix
	Paths []*BgpPath `json:"paths"`

	// IP prefix of the route
	Prefix string `json:"prefix,omitempty"`

	// Autonomous System Number (ASN) identifying a BGP virtual router instance
	RouterAsn int64 `json:"router-asn,omitempty"`
}

BgpRoute Single BGP route retrieved from the RIB of underlying router

swagger:model BgpRoute

func (*BgpRoute) ContextValidate

func (m *BgpRoute) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bgp route based on the context it is used

func (*BgpRoute) MarshalBinary

func (m *BgpRoute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpRoute) UnmarshalBinary

func (m *BgpRoute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpRoute) Validate

func (m *BgpRoute) Validate(formats strfmt.Registry) error

Validate validates this bgp route

type BgpRoutePolicy

type BgpRoutePolicy struct {

	// Name of the route policy
	Name string `json:"name,omitempty"`

	// Autonomous System Number (ASN) identifying a BGP virtual router instance
	RouterAsn int64 `json:"router-asn,omitempty"`

	// List of the route policy statements
	Statements []*BgpRoutePolicyStatement `json:"statements"`

	// Type of the route policy
	// Enum: [export import]
	Type string `json:"type,omitempty"`
}

BgpRoutePolicy Single BGP route policy retrieved from the underlying router

swagger:model BgpRoutePolicy

func (*BgpRoutePolicy) ContextValidate

func (m *BgpRoutePolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bgp route policy based on the context it is used

func (*BgpRoutePolicy) MarshalBinary

func (m *BgpRoutePolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpRoutePolicy) UnmarshalBinary

func (m *BgpRoutePolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpRoutePolicy) Validate

func (m *BgpRoutePolicy) Validate(formats strfmt.Registry) error

Validate validates this bgp route policy

type BgpRoutePolicyPrefixMatch

type BgpRoutePolicyPrefixMatch struct {

	// CIDR prefix to match with
	Cidr string `json:"cidr,omitempty"`

	// Maximal prefix length that will match if it falls under CIDR
	PrefixLenMax int64 `json:"prefix-len-max,omitempty"`

	// Minimal prefix length that will match if it falls under CIDR
	PrefixLenMin int64 `json:"prefix-len-min,omitempty"`
}

BgpRoutePolicyPrefixMatch Matches a CIDR prefix in a BGP route policy

swagger:model BgpRoutePolicyPrefixMatch

func (*BgpRoutePolicyPrefixMatch) ContextValidate

func (m *BgpRoutePolicyPrefixMatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bgp route policy prefix match based on context it is used

func (*BgpRoutePolicyPrefixMatch) MarshalBinary

func (m *BgpRoutePolicyPrefixMatch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpRoutePolicyPrefixMatch) UnmarshalBinary

func (m *BgpRoutePolicyPrefixMatch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpRoutePolicyPrefixMatch) Validate

func (m *BgpRoutePolicyPrefixMatch) Validate(formats strfmt.Registry) error

Validate validates this bgp route policy prefix match

type BgpRoutePolicyStatement

type BgpRoutePolicyStatement struct {

	// List of BGP standard community values to be added to the matched route
	AddCommunities []string `json:"add-communities"`

	// List of BGP large community values to be added to the matched route
	AddLargeCommunities []string `json:"add-large-communities"`

	// Matches any of the provided BGP neighbor IP addresses. If empty matches all neighbors.
	MatchNeighbors []string `json:"match-neighbors"`

	// Matches any of the provided prefixes. If empty matches all prefixes.
	MatchPrefixes []*BgpRoutePolicyPrefixMatch `json:"match-prefixes"`

	// RIB processing action taken on the matched route
	// Enum: [none accept reject]
	RouteAction string `json:"route-action,omitempty"`

	// BGP local preference value to be set on the matched route
	SetLocalPreference int64 `json:"set-local-preference,omitempty"`
}

BgpRoutePolicyStatement Single BGP route policy statement

swagger:model BgpRoutePolicyStatement

func (*BgpRoutePolicyStatement) ContextValidate

func (m *BgpRoutePolicyStatement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bgp route policy statement based on the context it is used

func (*BgpRoutePolicyStatement) MarshalBinary

func (m *BgpRoutePolicyStatement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BgpRoutePolicyStatement) UnmarshalBinary

func (m *BgpRoutePolicyStatement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BgpRoutePolicyStatement) Validate

func (m *BgpRoutePolicyStatement) Validate(formats strfmt.Registry) error

Validate validates this bgp route policy statement

type ConfigurationMap

type ConfigurationMap map[string]string

ConfigurationMap Map of configuration key/value pairs.

swagger:model ConfigurationMap

func (ConfigurationMap) ContextValidate

func (m ConfigurationMap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this configuration map based on context it is used

func (ConfigurationMap) Validate

func (m ConfigurationMap) Validate(formats strfmt.Registry) error

Validate validates this configuration map

type DaemonConfiguration

type DaemonConfiguration struct {

	// Changeable configuration
	Spec *DaemonConfigurationSpec `json:"spec,omitempty"`

	// Current daemon configuration related status.Contains the addressing
	// information, k8s, node monitor and immutable and mutable
	// configuration settings.
	//
	Status *DaemonConfigurationStatus `json:"status,omitempty"`
}

DaemonConfiguration Response to a daemon configuration request.

swagger:model DaemonConfiguration

func (*DaemonConfiguration) ContextValidate

func (m *DaemonConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this daemon configuration based on the context it is used

func (*DaemonConfiguration) MarshalBinary

func (m *DaemonConfiguration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DaemonConfiguration) UnmarshalBinary

func (m *DaemonConfiguration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DaemonConfiguration) Validate

func (m *DaemonConfiguration) Validate(formats strfmt.Registry) error

Validate validates this daemon configuration

type DaemonConfigurationSpec

type DaemonConfigurationSpec struct {

	// Changeable configuration
	Options ConfigurationMap `json:"options,omitempty"`

	// The policy-enforcement mode
	// Enum: [default always never]
	PolicyEnforcement string `json:"policy-enforcement,omitempty"`
}

DaemonConfigurationSpec The controllable configuration of the daemon.

swagger:model DaemonConfigurationSpec

func (*DaemonConfigurationSpec) ContextValidate

func (m *DaemonConfigurationSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this daemon configuration spec based on the context it is used

func (*DaemonConfigurationSpec) MarshalBinary

func (m *DaemonConfigurationSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DaemonConfigurationSpec) UnmarshalBinary

func (m *DaemonConfigurationSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DaemonConfigurationSpec) Validate

func (m *DaemonConfigurationSpec) Validate(formats strfmt.Registry) error

Validate validates this daemon configuration spec

type DaemonConfigurationStatus

type DaemonConfigurationStatus struct {

	// Maximum IPv4 GRO size on workload facing devices
	GROIPV4MaxSize int64 `json:"GROIPv4MaxSize,omitempty"`

	// Maximum IPv6 GRO size on workload facing devices
	GROMaxSize int64 `json:"GROMaxSize,omitempty"`

	// Maximum IPv4 GSO size on workload facing devices
	GSOIPV4MaxSize int64 `json:"GSOIPv4MaxSize,omitempty"`

	// Maximum IPv6 GSO size on workload facing devices
	GSOMaxSize int64 `json:"GSOMaxSize,omitempty"`

	// addressing
	Addressing *NodeAddressing `json:"addressing,omitempty"`

	// Config map which contains all the active daemon configurations
	DaemonConfigurationMap map[string]interface{} `json:"daemonConfigurationMap,omitempty"`

	// datapath mode
	DatapathMode DatapathMode `json:"datapathMode,omitempty"`

	// MTU on workload facing devices
	DeviceMTU int64 `json:"deviceMTU,omitempty"`

	// Configured compatibility mode for --egress-multi-home-ip-rule-compat
	EgressMultiHomeIPRuleCompat bool `json:"egress-multi-home-ip-rule-compat,omitempty"`

	// Immutable configuration (read-only)
	Immutable ConfigurationMap `json:"immutable,omitempty"`

	// Comma-separated list of IP ports should be reserved in the workload network namespace
	IPLocalReservedPorts string `json:"ipLocalReservedPorts,omitempty"`

	// Configured IPAM mode
	IpamMode string `json:"ipam-mode,omitempty"`

	// k8s configuration
	K8sConfiguration string `json:"k8s-configuration,omitempty"`

	// k8s endpoint
	K8sEndpoint string `json:"k8s-endpoint,omitempty"`

	// kvstore configuration
	KvstoreConfiguration *KVstoreConfiguration `json:"kvstoreConfiguration,omitempty"`

	// masquerade
	Masquerade bool `json:"masquerade,omitempty"`

	// masquerade protocols
	MasqueradeProtocols *DaemonConfigurationStatusMasqueradeProtocols `json:"masqueradeProtocols,omitempty"`

	// Status of the node monitor
	NodeMonitor *MonitorStatus `json:"nodeMonitor,omitempty"`

	// Currently applied configuration
	Realized *DaemonConfigurationSpec `json:"realized,omitempty"`

	// MTU for network facing routes
	RouteMTU int64 `json:"routeMTU,omitempty"`
}

DaemonConfigurationStatus Response to a daemon configuration request. Contains the addressing information, k8s, node monitor and immutable and mutable configuration settings.

swagger:model DaemonConfigurationStatus

func (*DaemonConfigurationStatus) ContextValidate

func (m *DaemonConfigurationStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this daemon configuration status based on the context it is used

func (*DaemonConfigurationStatus) MarshalBinary

func (m *DaemonConfigurationStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DaemonConfigurationStatus) UnmarshalBinary

func (m *DaemonConfigurationStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DaemonConfigurationStatus) Validate

func (m *DaemonConfigurationStatus) Validate(formats strfmt.Registry) error

Validate validates this daemon configuration status

type DaemonConfigurationStatusMasqueradeProtocols

type DaemonConfigurationStatusMasqueradeProtocols struct {

	// Status of masquerading for IPv4 traffic
	IPV4 bool `json:"ipv4,omitempty"`

	// Status of masquerading for IPv6 traffic
	IPV6 bool `json:"ipv6,omitempty"`
}

DaemonConfigurationStatusMasqueradeProtocols Status of masquerading feature

swagger:model DaemonConfigurationStatusMasqueradeProtocols

func (*DaemonConfigurationStatusMasqueradeProtocols) ContextValidate

ContextValidate validates this daemon configuration status masquerade protocols based on context it is used

func (*DaemonConfigurationStatusMasqueradeProtocols) MarshalBinary

MarshalBinary interface implementation

func (*DaemonConfigurationStatusMasqueradeProtocols) UnmarshalBinary

UnmarshalBinary interface implementation

func (*DaemonConfigurationStatusMasqueradeProtocols) Validate

Validate validates this daemon configuration status masquerade protocols

type DatapathMode

type DatapathMode string

DatapathMode Datapath mode

swagger:model DatapathMode

const (

	// DatapathModeVeth captures enum value "veth"
	DatapathModeVeth DatapathMode = "veth"
)

func NewDatapathMode

func NewDatapathMode(value DatapathMode) *DatapathMode

func (DatapathMode) ContextValidate

func (m DatapathMode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datapath mode based on context it is used

func (DatapathMode) Pointer

func (m DatapathMode) Pointer() *DatapathMode

Pointer returns a pointer to a freshly-allocated DatapathMode.

func (DatapathMode) Validate

func (m DatapathMode) Validate(formats strfmt.Registry) error

Validate validates this datapath mode

type Error

type Error string

Error error

swagger:model Error

func (Error) ContextValidate

func (m Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (Error) Validate

func (m Error) Validate(formats strfmt.Registry) error

Validate validates this error

type KVstoreConfiguration

type KVstoreConfiguration struct {

	// Configuration options
	Options map[string]string `json:"options,omitempty"`

	// Type of kvstore
	Type string `json:"type,omitempty"`
}

KVstoreConfiguration Configuration used for the kvstore

swagger:model KVstoreConfiguration

func (*KVstoreConfiguration) ContextValidate

func (m *KVstoreConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this k vstore configuration based on context it is used

func (*KVstoreConfiguration) MarshalBinary

func (m *KVstoreConfiguration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KVstoreConfiguration) UnmarshalBinary

func (m *KVstoreConfiguration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KVstoreConfiguration) Validate

func (m *KVstoreConfiguration) Validate(formats strfmt.Registry) error

Validate validates this k vstore configuration

type MonitorStatus

type MonitorStatus struct {

	// Number of CPUs to listen on for events.
	Cpus int64 `json:"cpus,omitempty"`

	// Number of samples lost by perf.
	Lost int64 `json:"lost,omitempty"`

	// Number of pages used for the perf ring buffer.
	Npages int64 `json:"npages,omitempty"`

	// Pages size used for the perf ring buffer.
	Pagesize int64 `json:"pagesize,omitempty"`

	// Number of unknown samples.
	Unknown int64 `json:"unknown,omitempty"`
}

MonitorStatus Status of the node monitor

swagger:model MonitorStatus

func (*MonitorStatus) ContextValidate

func (m *MonitorStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this monitor status based on context it is used

func (*MonitorStatus) MarshalBinary

func (m *MonitorStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MonitorStatus) UnmarshalBinary

func (m *MonitorStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MonitorStatus) Validate

func (m *MonitorStatus) Validate(formats strfmt.Registry) error

Validate validates this monitor status

type NodeAddressing

type NodeAddressing struct {

	// ipv4
	IPV4 *NodeAddressingElement `json:"ipv4,omitempty"`

	// ipv6
	IPV6 *NodeAddressingElement `json:"ipv6,omitempty"`
}

NodeAddressing Addressing information of a node for all address families

+k8s:deepcopy-gen=true

swagger:model NodeAddressing

func (*NodeAddressing) ContextValidate

func (m *NodeAddressing) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this node addressing based on the context it is used

func (*NodeAddressing) MarshalBinary

func (m *NodeAddressing) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeAddressing) UnmarshalBinary

func (m *NodeAddressing) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeAddressing) Validate

func (m *NodeAddressing) Validate(formats strfmt.Registry) error

Validate validates this node addressing

type NodeAddressingElement

type NodeAddressingElement struct {

	// Node address type, one of HostName, ExternalIP or InternalIP
	AddressType string `json:"address-type,omitempty"`

	// Address pool to be used for local endpoints
	AllocRange string `json:"alloc-range,omitempty"`

	// True if address family is enabled
	Enabled bool `json:"enabled,omitempty"`

	// IP address of node
	IP string `json:"ip,omitempty"`
}

NodeAddressingElement Addressing information

swagger:model NodeAddressingElement

func (*NodeAddressingElement) ContextValidate

func (m *NodeAddressingElement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node addressing element based on context it is used

func (*NodeAddressingElement) MarshalBinary

func (m *NodeAddressingElement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodeAddressingElement) UnmarshalBinary

func (m *NodeAddressingElement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodeAddressingElement) Validate

func (m *NodeAddressingElement) Validate(formats strfmt.Registry) error

Validate validates this node addressing element

Jump to

Keyboard shortcuts

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