Documentation ¶
Index ¶
- type Address
- type DesiredState
- type DnsConfig
- type DnsResolver
- type Duplex
- type Ethernet
- type Identifier
- type Interfaces
- type IntfType
- type IpAddress
- type LinkAggregation
- type Metadata
- type Mode
- type NNCP
- type Options
- type RouteEntry
- type RouteState
- type Routes
- type Spec
- type SrIov
- type State
- type Vf
- type Vlan
- type VlanProto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DesiredState ¶
type DesiredState struct { DnsResolver DnsResolver `yaml:"dns-resolver,omitempty"` Interfaces []Interfaces `yaml:"interfaces"` Routes Routes `yaml:"routes,omitempty"` }
type DnsResolver ¶
type DnsResolver struct {
Config DnsConfig `yaml:"config"`
}
type Identifier ¶
type Identifier string
const ( Name Identifier = "name" MacAddress Identifier = "mac-address" )
type Interfaces ¶
type Interfaces struct { Name string `yaml:"name"` IntfType IntfType `yaml:"type"` State State `yaml:"state"` Description string `yaml:"description"` ProfileName string `yaml:"profile-name,omitempty"` Identifier Identifier `yaml:"identifier,omitempty"` MacAddress string `yaml:"mac-address,omitempty"` Mtu int `yaml:"mtu,omitempty"` MinMtu int `yaml:"min-mtu,omitempty"` MaxMtu int `yaml:"max-mtu,omitempty"` Ipv4 *IpAddress `yaml:"ipv4,omitempty"` Ipv6 *IpAddress `yaml:"ipv6,omitempty"` Ethernet *Ethernet `yaml:"ethernet,omitempty"` SrIov *SrIov `yaml:"sr-iov,omitempty"` LinkAggregation *LinkAggregation `yaml:"link-aggregation,omitempty"` Vlan *Vlan `yaml:"vlan,omitempty"` }
type IpAddress ¶
type IpAddress struct { Enabled bool `yaml:"enabled"` Dhcp bool `yaml:"dhcp"` Address []Address `yaml:"address,omitempty"` AutoConf bool `yaml:"autoconf,omitempty"` AutoDns bool `yaml:"auto-dns,omitempty"` AutoGateway bool `yaml:"auto-gateway,omitempty"` AutoRoutes bool `yaml:"auto-routes,omitempty"` AutoRouteTabledId int `yaml:"auto-route-table-id,omitempty"` AutoRouteMetrics int `yaml:"auto-route-metrics,omitempty"` }
type LinkAggregation ¶
type NNCP ¶
type NNCP struct { metav1.TypeMeta `yaml:",inline"` metav1.ObjectMeta `yaml:"metadata,omitempty"` Spec Spec `yaml:"spec"` }
NNCP represents a neural network control protocol.
type Options ¶
type Options struct { AllSlavesActive string `yaml:"all-slaves-active,omitempty"` ArpAllTargets bool `yaml:"arp-all-targets,omitempty"` ArpInterval int `yaml:"arp-interval,omitempty"` ArpValidate bool `yaml:"arp-validate,omitempty"` DownDelay int `yaml:"down-delay,omitempty"` LpInterval int `yaml:"lp-interval,omitempty"` Miimon int `yaml:"miimon,omitempty"` MinLinks int `yaml:"min-links,omitempty"` PacketsPerSlave int `yaml:"packets-per-slave,omitempty"` PrimaryReselect bool `yaml:"primary-reselect,omitempty"` ResendIGMP int `yaml:"resend-igmp,omitempty"` UpDelay int `yaml:"up-delay,omitempty"` UseCarrier bool `yaml:"use-carrier,omitempty"` }
type RouteEntry ¶
type RouteEntry struct { State RouteState `yaml:"state,omitempty"` Destination string `yaml:"destination"` NextHopInterface string `yaml:"next-hop-interface"` NextHopAddress string `yaml:"next-hop-address,omitempty"` Metric int `yaml:"metric,omitempty"` TableId int `yaml:"table-id,omitempty"` Cwnd int `yaml:"cwnd,omitempty"` }
type Routes ¶
type Routes struct {
Config []RouteEntry `yaml:"config,omitempty"`
}
type Spec ¶
type Spec struct { DesiredState DesiredState `yaml:"desiredState"` NodeSelector map[string]string `yaml:"nodeSelector"` }
type Vf ¶
type Vf struct { MacAddress string `yaml:"mac-address,omitempty"` SpoofCheck bool `yaml:"spoof-check,omitempty"` Trust bool `yaml:"trust,omitempty"` MinTxRate int `yaml:"min-tx-rate,omitempty"` MaxTxRate int `yaml:"max-tx-rate,omitempty"` VlandId int `yaml:"vlan-id,omitempty"` Qos int `yaml:"qos,omitempty"` VlanProto VlanProto `yaml:"vlan-protocol,omitempty"` }
Click to show internal directories.
Click to hide internal directories.