Documentation
¶
Index ¶
- Variables
- func Definition(subnetCIDR string) *v1.NetworkDefinition
- func LookupExtInterface(iface *net.Interface, netMode int) (*backend.ExternalInterface, error)
- func ReadCIDRFromSubnetFile(path string, CIDRKey string) ip.IP4Net
- func ReadCIDRsFromSubnetFile(path string, CIDRKey string) []ip.IP4Net
- func ReadIP6CIDRFromSubnetFile(path string, CIDRKey string) ip.IP6Net
- func ReadIP6CIDRsFromSubnetFile(path string, CIDRKey string) []ip.IP6Net
- func Run(ctx context.Context, cancel context.CancelFunc, c *client.Client, ...) error
- func Setup(ctx context.Context, client *clientv3.Client, network string, backend string) error
- func WriteSubnetFile(path string, nw ip.IP4Net, nwv6 ip.IP6Net, ipMasq bool, bn backend.Network, ...) error
- type Flannel
- func (f *Flannel) Clear() error
- func (f *Flannel) EnableIPv4(enable bool) error
- func (f *Flannel) EnableIPv6(enable bool) error
- func (f *Flannel) MaskIPv6(enabled bool)
- func (f *Flannel) SetBackend(backend string) error
- func (f *Flannel) SetCIDR(cidr string) error
- func (f *Flannel) SetInterface(name string) error
- type Subnet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlannelBaseAnnotation = "flannel.alpha.coreos.com" FlannelExternalIPv4Annotation = FlannelBaseAnnotation + "/public-ip-overwrite" FlannelExternalIPv6Annotation = FlannelBaseAnnotation + "/public-ipv6-overwrite" )
Functions ¶
func Definition ¶ added in v0.1.56
func Definition(subnetCIDR string) *v1.NetworkDefinition
func LookupExtInterface ¶ added in v0.1.56
func ReadCIDRFromSubnetFile ¶ added in v0.1.56
ReadCIDRFromSubnetFile reads the flannel subnet file and extracts the value of IPv4 network CIDRKey
func ReadCIDRsFromSubnetFile ¶ added in v0.1.56
func ReadIP6CIDRFromSubnetFile ¶ added in v0.1.56
ReadIP6CIDRFromSubnetFile reads the flannel subnet file and extracts the value of IPv6 network CIDRKey
func ReadIP6CIDRsFromSubnetFile ¶ added in v0.1.56
func Run ¶ added in v0.1.56
func Run(ctx context.Context, cancel context.CancelFunc, c *client.Client, config *configuration.Configuration) error
Types ¶
type Flannel ¶ added in v0.1.56
type Flannel struct {
Backend string
FlannelConfigPath string
Interface *backend.ExternalInterface
InterfaceSpecified *net.Interface
CIDR []*net.IPNet
NetMode int
Network ip.IP4Net
V6Network ip.IP6Net
IPv4Enabled bool
IPv6Enabled bool
IPv6Masq bool
}
func (*Flannel) EnableIPv4 ¶ added in v0.1.56
func (*Flannel) EnableIPv6 ¶ added in v0.1.56
func (*Flannel) SetBackend ¶ added in v0.1.56
func (*Flannel) SetInterface ¶ added in v0.1.56
Click to show internal directories.
Click to hide internal directories.