azure-container-networking/cni/cni.go

28 строки
570 B
Go
Исходник Обычный вид История

// Copyright 2017 Microsoft. All rights reserved.
// MIT License
2016-12-01 05:00:08 +03:00
package cni
import (
cniSkel "github.com/containernetworking/cni/pkg/skel"
)
const (
// CNI commands.
Cmd = "CNI_COMMAND"
CmdAdd = "ADD"
CmdDel = "DEL"
// DefaultVersion is the CNI version used when no version is specified in a network config file.
defaultVersion = "0.2.0"
2016-12-01 05:00:08 +03:00
)
// Supported CNI versions.
var supportedVersions = []string{"0.1.0", "0.2.0", "0.3.0", "0.3.1"}
// CNI contract.
type PluginApi interface {
Add(args *cniSkel.CmdArgs) error
Delete(args *cniSkel.CmdArgs) error
}