Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CNI ¶
type CNI interface { AddNetwork(net *NetworkConfig, rt *RuntimeConf) (*types.Result, error) DelNetwork(net *NetworkConfig, rt *RuntimeConf) error }
type CNIConfig ¶
type CNIConfig struct {
Path []string
}
func (*CNIConfig) AddNetwork ¶
func (c *CNIConfig) AddNetwork(net *NetworkConfig, rt *RuntimeConf) (*types.Result, error)
func (*CNIConfig) DelNetwork ¶
func (c *CNIConfig) DelNetwork(net *NetworkConfig, rt *RuntimeConf) error
type NetworkConfig ¶
func ConfFromBytes ¶
func ConfFromBytes(bytes []byte) (*NetworkConfig, error)
func ConfFromFile ¶
func ConfFromFile(filename string) (*NetworkConfig, error)
func LoadConf ¶
func LoadConf(dir, name string) (*NetworkConfig, error)
Click to show internal directories.
Click to hide internal directories.