Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Allocation ¶
type Allocation struct { // The actual address. IP string `json:"ip"` // Access to the block. Block *model.AllocationBlock `json:"-"` Ordinal int `json:"-"` Handle string `json:"handle,omitempty"` // Metadata for the Allocation. Pod string `json:"pod,omitempty"` Namespace string `json:"namespace,omitempty"` Node string `json:"node,omitempty"` Type string `json:"type,omitempty"` CreationTimestamp string `json:"creationTimestamp,omitempty"` // InUse is true when this Allocation is currently being used by a running // workload / node / etc. It is false if this address is not active and should be cleaned up. InUse bool `json:"inUse"` // Borrowed is true if this IP is from a block that is not affine to the node. Borrowed bool `json:"borrowed,omitempty"` // List of objects which are using this IP. Owners []string `json:"owners"` }
Allocation represents an IP that is allocated in Calico IPAM, augmented with data from cross referencing with WorkloadEndpoints, etc.
func (*Allocation) GetAttrString ¶
func (a *Allocation) GetAttrString() string
type IPAMChecker ¶
type IPAMChecker struct {
// contains filtered or unexported fields
}
func NewIPAMChecker ¶
type Report ¶
type Report struct { // Version of the code that produced the report. Version string `json:"version"` // Important metadata. ClusterGUID string `json:"clusterGUID"` DatastoreLocked bool `json:"datastoreLocked"` ClusterInfoRevision string `json:"clusterInformationRevision"` ClusterType string `json:"clusterType"` // Allocations is a map of IP address to list of allocation data. Allocations map[string][]*Allocation `json:"allocations"` }
Click to show internal directories.
Click to hide internal directories.