restapi

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// RESTPrefix is versioned prefix for REST urls.
	RESTPrefix = "/contiv/v1/"

	// RestURLNodeIPAllocations is versioned URL for the node IPAM allocations REST endpoint.
	RestURLNodeIPAllocations = RESTPrefix + "ipam/allocations"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeIPAllocations

type NodeIPAllocations struct {
	Pods []PodIPAllocation
}

NodeIPAllocations represents runtime IP allocation info about the current node.

type PodIPAllocation

type PodIPAllocation struct {
	PodID       pod.ID
	MainIP      net.IP
	CustomIfIPs map[string]net.IP
}

PodIPAllocation represents IP allocation info about a pod.

Jump to

Keyboard shortcuts

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