Documentation ¶
Index ¶
- Constants
- func CheckMetadata(datadir, network string) (int64, error)
- func ClearMetadata(datadir, network, id string) error
- func GetIfaceNames(hostVethName string) (string, string)
- func LoadMetadata(datadir string, network string, ...) error
- func RecordMetadata(datadir, network string, data *ContainerMetadata) error
- type ContainerId
- type ContainerIfaceIP
- type ContainerIfaceMd
- type ContainerMetadata
- type ContainerNetworkMetadata
- type NetIps
- type OpflexGroup
- type ServiceEndpoint
Constants ¶
const AciPodAnnotation = "opflex.cisco.com/aci-pod"
const CompEgAnnotation = "opflex.cisco.com/computed-endpoint-group"
Computed endpoint group for pod
const CompSgAnnotation = "opflex.cisco.com/computed-security-group"
Computed security groups for pod
const EgAnnotation = "opflex.cisco.com/endpoint-group"
Annotation for endpoint group designation for pod, deployment, etc.
const LbIpAnnotation = "opflex.cisco.com/lb-ipam-ips"
Static lb ip annotations
const MultusNetAnnotation = "v1.multus-cni.io/default-network"
Network attachment definition annotation for pod requesting multus-cni
const NetAttDefAnnotation = "k8s.v1.cni.cncf.io/networks"
Network attachment definition annotation for pod
const NodeAciPodAnnotation = "opflex.cisco.com/node-aci-pod"
const PodNetworkRangeAnnotation = "opflex.cisco.com/pod-network-ranges"
List of IP address ranges for use by the pod network
const QpAnnotation = "opflex.cisco.com/qospolicy"
Annotation for qospolicy group designation for pod,deployment, etc.
const ServiceContractScopeAnnotation = "opflex.cisco.com/ext_service_contract_scope"
Annotation to set service contract scope values. If unset or "", defaults to "context"(VRF). Other valid values: "context", "tenant", and "global"
const ServiceEpAnnotation = "opflex.cisco.com/service-endpoint"
Service endpoint annotation
const ServiceGraphNameAnnotation = "opflex.cisco.com/service-graph-name"
Custom service graph annotation
const SgAnnotation = "opflex.cisco.com/security-group"
Annotation for security group designation for pod, deployment, etc.
Variables ¶
This section is empty.
Functions ¶
func CheckMetadata ¶
func ClearMetadata ¶
func GetIfaceNames ¶
func LoadMetadata ¶
func RecordMetadata ¶
func RecordMetadata(datadir, network string, data *ContainerMetadata) error
Types ¶
type ContainerId ¶
type ContainerIfaceIP ¶
type ContainerIfaceMd ¶
type ContainerMetadata ¶
type ContainerMetadata struct { Id ContainerId `json:"id,omitempty"` Ifaces []*ContainerIfaceMd `json:"interfaces,omitempty"` Network ContainerNetworkMetadata `json:"network,omitempty"` }
func GetMetadata ¶
func GetMetadata(datadir, network, id string) (*ContainerMetadata, error)
type NetIps ¶
type NetIps struct { V4 []ipam.IpRange `json:"V4,omitempty"` V6 []ipam.IpRange `json:"V6,omitempty"` }
annotation type for IPs allocation chunks
type OpflexGroup ¶
type OpflexGroup struct { Tenant string `json:"tenant,omitempty"` PolicySpace string `json:"policy-space,omitempty"` AppProfile string `json:"app-profile,omitempty"` Name string `json:"name,omitempty"` }
An opflex security or endpoint group Tenant is an alias for policy space and will override policyspace If AppProfile is not set the Name is interpreted as AppProfile|Name