Documentation
¶
Index ¶
- func ContainsDefaultRoute(prefixes []string) bool
- type EvpnIface
- type Network
- func (n *Network) AllocationNetworks() []*apiv2.MachineNetwork
- func (n *Network) EVPNIfaces() (ifaces []EvpnIface, err error)
- func (n *Network) FirewallRules() *apiv2.FirewallRules
- func (n *Network) GetDefaultRouteNetwork() (*apiv2.MachineNetwork, error)
- func (n *Network) GetDefaultRouteNetworkVrfName() (string, error)
- func (n *Network) GetExternalNetworkVrfNames() (vrfNames []string)
- func (n *Network) GetNetworks(networkType apiv2.NetworkType) []*apiv2.MachineNetwork
- func (n *Network) GetTenantNetworkVrfName() (string, error)
- func (n *Network) HasVpn() bool
- func (n *Network) Hostname() string
- func (n *Network) IsMachine() bool
- func (n *Network) LoopbackCIDRs() (cidrs []string, err error)
- func (n *Network) MTU() int
- func (n *Network) NTPServers() (ntpServers []string)
- func (n *Network) PrivatePrimaryIPs() ([]string, error)
- func (n *Network) PrivatePrimaryNetwork() (*apiv2.MachineNetwork, error)
- func (n *Network) PrivatePrimaryNetworksPrefixes() ([]string, error)
- func (n *Network) PrivateSecondarySharedNetworks() (nws []*apiv2.MachineNetwork)
- func (n *Network) UnderlayNetwork() (*apiv2.MachineNetwork, error)
- func (n *Network) Vpn() *apiv2.MachineVPN
- func (n *Network) VxlanIDs() (ids []uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsDefaultRoute ¶ added in v0.3.0
Types ¶
type Network ¶ added in v0.3.0
type Network struct {
// contains filtered or unexported fields
}
func New ¶
func New(allocation *apiv2.MachineAllocation) *Network
func (*Network) AllocationNetworks ¶ added in v0.3.0
func (n *Network) AllocationNetworks() []*apiv2.MachineNetwork
func (*Network) EVPNIfaces ¶ added in v0.3.0
func (*Network) FirewallRules ¶ added in v0.3.0
func (n *Network) FirewallRules() *apiv2.FirewallRules
func (*Network) GetDefaultRouteNetwork ¶ added in v0.3.0
func (n *Network) GetDefaultRouteNetwork() (*apiv2.MachineNetwork, error)
func (*Network) GetDefaultRouteNetworkVrfName ¶ added in v0.3.0
func (*Network) GetExternalNetworkVrfNames ¶ added in v0.3.0
func (*Network) GetNetworks ¶ added in v0.3.0
func (n *Network) GetNetworks(networkType apiv2.NetworkType) []*apiv2.MachineNetwork
func (*Network) GetTenantNetworkVrfName ¶ added in v0.3.0
func (*Network) LoopbackCIDRs ¶ added in v0.3.0
func (*Network) NTPServers ¶ added in v0.3.0
func (*Network) PrivatePrimaryIPs ¶ added in v0.3.0
func (*Network) PrivatePrimaryNetwork ¶ added in v0.3.0
func (n *Network) PrivatePrimaryNetwork() (*apiv2.MachineNetwork, error)
func (*Network) PrivatePrimaryNetworksPrefixes ¶ added in v0.3.0
func (*Network) PrivateSecondarySharedNetworks ¶ added in v0.3.0
func (n *Network) PrivateSecondarySharedNetworks() (nws []*apiv2.MachineNetwork)
func (*Network) UnderlayNetwork ¶ added in v0.3.0
func (n *Network) UnderlayNetwork() (*apiv2.MachineNetwork, error)
func (*Network) Vpn ¶ added in v0.3.0
func (n *Network) Vpn() *apiv2.MachineVPN
Click to show internal directories.
Click to hide internal directories.