net

package
v3.3.8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CALICO  = "calico"
	FLANNEL = "flannel"
)
View Source
const CalicoManifests = `` /* 20362-byte string literal not displayed */
View Source
const FlannelManifests = `` /* 14705-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Calico

type Calico struct {
	// contains filtered or unexported fields
}

func (Calico) Manifests

func (c Calico) Manifests(template string) string

func (Calico) Template

func (c Calico) Template() string

type Flannel

type Flannel struct {
	// contains filtered or unexported fields
}

func (Flannel) Manifests

func (f Flannel) Manifests(template string) string

func (Flannel) Template

func (Flannel) Template() string

type MetaData

type MetaData struct {
	Interface string
	CIDR      string
	// ipip mode for calico.yml
	IPIP bool
	// MTU size
	MTU string
}

type Net

type Net interface {
	// if template is "" using default template
	Manifests(template string) string
	// return cni template file
	Template() string
}

Net is CNI interface

func NewNetwork

func NewNetwork(t string, metadata MetaData) Net

Jump to

Keyboard shortcuts

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