Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultNetDir default directory for the cni config DefaultNetDir = "/etc/cni/net.d" // DefaultCNIDir default directory for the cni binary DefaultCNIDir = "/opt/cni/bin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentTuple ¶ added in v0.1.9
AttachmentTuple the attachment tuple for the cni-plugin
type NetworkPlugin ¶
NetworkPlugin object to export
func NewCNIPlugin ¶
func NewCNIPlugin(cniBinPath, cniConfPath, cniVendorName string) (*NetworkPlugin, error)
NewCNIPlugin instantiate a cni plugin object
func (*NetworkPlugin) AddNetwork ¶
func (plugin *NetworkPlugin) AddNetwork(cniParams *Parameters) error
AddNetwork add a network attachment off cniParams
func (*NetworkPlugin) DeleteNetwork ¶
func (plugin *NetworkPlugin) DeleteNetwork(cniParams *Parameters) error
DeleteNetwork delete a network attachment off cniParams
Click to show internal directories.
Click to hide internal directories.