models

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 537

Documentation

Index

Constants

View Source
const (
	// EndpointStatusChangeCodeOk captures enum value "ok"
	EndpointStatusChangeCodeOk string = "ok"
	// EndpointStatusChangeCodeFailed captures enum value "failed"
	EndpointStatusChangeCodeFailed string = "failed"
)
View Source
const (
	// FrontendAddressProtocolTCP captures enum value "tcp"
	FrontendAddressProtocolTCP string = "tcp"
	// FrontendAddressProtocolUDP captures enum value "udp"
	FrontendAddressProtocolUDP string = "udp"
	// FrontendAddressProtocolAny captures enum value "any"
	FrontendAddressProtocolAny string = "any"
)
View Source
const (
	// StatusStateOk captures enum value "Ok"
	StatusStateOk string = "Ok"
	// StatusStateWarning captures enum value "Warning"
	StatusStateWarning string = "Warning"
	// StatusStateFailure captures enum value "Failure"
	StatusStateFailure string = "Failure"
	// StatusStateDisabled captures enum value "Disabled"
	StatusStateDisabled string = "Disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address string

Address IP address swagger:model Address

func (Address) Validate

func (m Address) Validate(formats strfmt.Registry) error

Validate validates this address

type BackendAddress

type BackendAddress struct {

	// Layer 3 address
	// Required: true
	IP *string `json:"ip"`

	// Layer 4 port number
	Port uint16 `json:"port,omitempty"`

	// Weight for Round Robin
	Weight uint16 `json:"weight,omitempty"`
}

BackendAddress Service backend address swagger:model BackendAddress

func (*BackendAddress) Validate

func (m *BackendAddress) Validate(formats strfmt.Registry) error

Validate validates this backend address

type Configuration

type Configuration struct {

	// Immutable configuration (read-only)
	Immutable ConfigurationMap `json:"immutable,omitempty"`

	// Changeable configuration
	Mutable ConfigurationMap `json:"mutable,omitempty"`
}

Configuration General purpose structure to hold configuration of the daemon and endpoints. Split into a mutable and immutable section.

swagger:model Configuration

func (*Configuration) Validate

func (m *Configuration) Validate(formats strfmt.Registry) error

Validate validates this configuration

type ConfigurationMap

type ConfigurationMap map[string]string

ConfigurationMap Map of configuration key/value pairs.

swagger:model ConfigurationMap

func (ConfigurationMap) Validate

func (m ConfigurationMap) Validate(formats strfmt.Registry) error

Validate validates this configuration map

type DaemonConfigurationResponse

type DaemonConfigurationResponse struct {

	// addressing
	Addressing *NodeAddressing `json:"addressing,omitempty"`

	// configuration
	Configuration *Configuration `json:"configuration,omitempty"`
}

DaemonConfigurationResponse Response to a daemon configuration request. Contains the addressing information and configuration settings.

swagger:model DaemonConfigurationResponse

func (*DaemonConfigurationResponse) Validate

func (m *DaemonConfigurationResponse) Validate(formats strfmt.Registry) error

Validate validates this daemon configuration response

type Endpoint

type Endpoint struct {

	// addressing
	Addressing *EndpointAddressing `json:"addressing,omitempty"`

	// ID assigned by container runtime
	ContainerID string `json:"container-id,omitempty"`

	// Docker endpoint ID
	DockerEndpointID string `json:"docker-endpoint-id,omitempty"`

	// Docker network ID
	DockerNetworkID string `json:"docker-network-id,omitempty"`

	// MAC address
	HostMac string `json:"host-mac,omitempty"`

	// Local endpoint ID
	ID int64 `json:"id,omitempty"`

	// Security identity
	Identity *Identity `json:"identity,omitempty"`

	// Index of network device
	InterfaceIndex int64 `json:"interface-index,omitempty"`

	// Name of network device
	InterfaceName string `json:"interface-name,omitempty"`

	// MAC address
	Mac string `json:"mac,omitempty"`

	// Policy information of endpoint
	Policy *EndpointPolicy `json:"policy,omitempty"`

	// Current state of endpoint
	// Required: true
	State EndpointState `json:"state"`

	// Current state of endpoint
	Status []*EndpointStatusChange `json:"status"`
}

Endpoint Endpoint swagger:model Endpoint

func (*Endpoint) Validate

func (m *Endpoint) Validate(formats strfmt.Registry) error

Validate validates this endpoint

type EndpointAddressing

type EndpointAddressing struct {

	// IPv4 address
	IPV4 string `json:"ipv4,omitempty"`

	// IPv6 address
	IPV6 string `json:"ipv6,omitempty"`
}

EndpointAddressing Addressing information of an endpoint swagger:model EndpointAddressing

func (*EndpointAddressing) Validate

func (m *EndpointAddressing) Validate(formats strfmt.Registry) error

Validate validates this endpoint addressing

type EndpointChangeRequest

type EndpointChangeRequest struct {

	// addressing
	Addressing *EndpointAddressing `json:"addressing,omitempty"`

	// ID assigned by container runtime
	ContainerID string `json:"container-id,omitempty"`

	// Docker endpoint ID
	DockerEndpointID string `json:"docker-endpoint-id,omitempty"`

	// Docker network ID
	DockerNetworkID string `json:"docker-network-id,omitempty"`

	// MAC address
	HostMac string `json:"host-mac,omitempty"`

	// Local endpoint ID
	ID int64 `json:"id,omitempty"`

	// Index of network device
	InterfaceIndex int64 `json:"interface-index,omitempty"`

	// Name of network device
	InterfaceName string `json:"interface-name,omitempty"`

	// MAC address
	Mac string `json:"mac,omitempty"`

	// Current state of endpoint
	// Required: true
	State EndpointState `json:"state"`
}

EndpointChangeRequest Structure which contains the mutable elements of an Endpoint.

swagger:model EndpointChangeRequest

func (*EndpointChangeRequest) Validate

func (m *EndpointChangeRequest) Validate(formats strfmt.Registry) error

Validate validates this endpoint change request

type EndpointPolicy

type EndpointPolicy struct {

	// List of identities allowed to communicate to this endpoint
	//
	AllowedConsumers []int64 `json:"allowed-consumers"`

	// Build number of calculated policy in use
	Build int64 `json:"build,omitempty"`

	// Own identity of endpoint
	ID int64 `json:"id,omitempty"`

	// l4
	L4 *L4Policy `json:"l4,omitempty"`
}

EndpointPolicy Policy information of an endpoint swagger:model EndpointPolicy

func (*EndpointPolicy) Validate

func (m *EndpointPolicy) Validate(formats strfmt.Registry) error

Validate validates this endpoint policy

type EndpointState

type EndpointState string

EndpointState State of endpoint swagger:model EndpointState

const (
	// EndpointStateCreating captures enum value "creating"
	EndpointStateCreating EndpointState = "creating"
	// EndpointStateDisconnected captures enum value "disconnected"
	EndpointStateDisconnected EndpointState = "disconnected"
	// EndpointStateWaitingForIdentity captures enum value "waiting-for-identity"
	EndpointStateWaitingForIdentity EndpointState = "waiting-for-identity"
	// EndpointStateNotReady captures enum value "not-ready"
	EndpointStateNotReady EndpointState = "not-ready"
	// EndpointStateReady captures enum value "ready"
	EndpointStateReady EndpointState = "ready"
)

func (EndpointState) Validate

func (m EndpointState) Validate(formats strfmt.Registry) error

Validate validates this endpoint state

type EndpointStatusChange

type EndpointStatusChange struct {

	// Code indicate type of status change
	Code string `json:"code,omitempty"`

	// Status message
	Message string `json:"message,omitempty"`

	// Timestamp when status change occurred
	Timestamp string `json:"timestamp,omitempty"`
}

EndpointStatusChange Indication of a change of status swagger:model EndpointStatusChange

func (*EndpointStatusChange) Validate

func (m *EndpointStatusChange) Validate(formats strfmt.Registry) error

Validate validates this endpoint status change

type Error

type Error string

Error error swagger:model Error

func (Error) Validate

func (m Error) Validate(formats strfmt.Registry) error

Validate validates this error

type FrontendAddress

type FrontendAddress struct {

	// Layer 3 address
	IP string `json:"ip,omitempty"`

	// Layer 4 port number
	Port uint16 `json:"port,omitempty"`

	// Layer 4 protocol
	Protocol string `json:"protocol,omitempty"`
}

FrontendAddress Layer 4 address swagger:model FrontendAddress

func (*FrontendAddress) Validate

func (m *FrontendAddress) Validate(formats strfmt.Registry) error

Validate validates this frontend address

type IPAM

type IPAM struct {

	// endpoint
	// Required: true
	Endpoint *EndpointAddressing `json:"endpoint"`

	// host addressing
	// Required: true
	HostAddressing *NodeAddressing `json:"host-addressing"`
}

IPAM IPAM configuration of an endpoint swagger:model IPAM

func (*IPAM) Validate

func (m *IPAM) Validate(formats strfmt.Registry) error

Validate validates this IP a m

type IPAMStatus

type IPAMStatus struct {

	// ipv4
	IPV4 []string `json:"ipv4"`

	// ipv6
	IPV6 []string `json:"ipv6"`
}

IPAMStatus Status of IP address management swagger:model IPAMStatus

func (*IPAMStatus) Validate

func (m *IPAMStatus) Validate(formats strfmt.Registry) error

Validate validates this IP a m status

type Identity

type Identity struct {

	// Unique identifier
	ID int64 `json:"id,omitempty"`

	// Labels describing the identity
	Labels Labels `json:"labels"`
}

Identity Security identity swagger:model Identity

func (*Identity) Validate

func (m *Identity) Validate(formats strfmt.Registry) error

Validate validates this identity

type IdentityContext

type IdentityContext struct {

	// from
	From Labels `json:"from"`

	// to
	To Labels `json:"to"`
}

IdentityContext Context describing a pair of source and destination identity swagger:model IdentityContext

func (*IdentityContext) Validate

func (m *IdentityContext) Validate(formats strfmt.Registry) error

Validate validates this identity context

type L4Policy

type L4Policy struct {

	// List of L4 egress rules
	Egress []string `json:"egress"`

	// List of L4 ingress rules
	Ingress []string `json:"ingress"`
}

L4Policy L4 endpoint policy swagger:model L4Policy

func (*L4Policy) Validate

func (m *L4Policy) Validate(formats strfmt.Registry) error

Validate validates this l4 policy

type LabelConfiguration

type LabelConfiguration struct {

	// Custom labels in addition to orchestration system labels.
	Custom Labels `json:"custom"`

	// Labels derived from orchestration system which have been disabled.
	Disabled Labels `json:"disabled"`

	// Labels derived from orchestration system
	OrchestrationSystem Labels `json:"orchestration-system"`
}

LabelConfiguration Label configuration of an endpoint swagger:model LabelConfiguration

func (*LabelConfiguration) Validate

func (m *LabelConfiguration) Validate(formats strfmt.Registry) error

Validate validates this label configuration

type LabelConfigurationModifier

type LabelConfigurationModifier struct {

	// List of labels to add and enable. If the label is an orchestration
	// system label which has been disabled before, it will be removed from
	// the disabled list and readded to the orchestration list. Otherwise
	// it will be added to the custom label list.
	//
	Add Labels `json:"add"`

	// List of labels to delete. If the label is an orchestration system
	// label, then it will be deleted from the orchestration list and
	// added to the disabled list. Otherwise it will be removed from the
	// custom list.
	//
	Delete Labels `json:"delete"`
}

LabelConfigurationModifier Structure describing label mutations to be performed on a LabelConfiguration object.

swagger:model LabelConfigurationModifier

func (*LabelConfigurationModifier) Validate

func (m *LabelConfigurationModifier) Validate(formats strfmt.Registry) error

Validate validates this label configuration modifier

type Labels

type Labels []string

Labels Set of labels swagger:model Labels

func (Labels) Validate

func (m Labels) Validate(formats strfmt.Registry) error

Validate validates this labels

type NodeAddressing

type NodeAddressing struct {

	// ipv4
	IPV4 *NodeAddressingElement `json:"ipv4,omitempty"`

	// ipv6
	IPV6 *NodeAddressingElement `json:"ipv6,omitempty"`
}

NodeAddressing Addressing information of a node for all address families swagger:model NodeAddressing

func (*NodeAddressing) Validate

func (m *NodeAddressing) Validate(formats strfmt.Registry) error

Validate validates this node addressing

type NodeAddressingElement

type NodeAddressingElement struct {

	// Address pool to be used for local endpoints
	AllocRange string `json:"alloc-range,omitempty"`

	// True if address family is enabled
	Enabled bool `json:"enabled,omitempty"`

	// IP address of node
	IP string `json:"ip,omitempty"`
}

NodeAddressingElement Addressing information swagger:model NodeAddressingElement

func (*NodeAddressingElement) Validate

func (m *NodeAddressingElement) Validate(formats strfmt.Registry) error

Validate validates this node addressing element

type PolicyTraceResult

type PolicyTraceResult struct {

	// log
	Log string `json:"log,omitempty"`

	// verdict
	Verdict string `json:"verdict,omitempty"`
}

PolicyTraceResult Response to a policy resolution process swagger:model PolicyTraceResult

func (*PolicyTraceResult) Validate

func (m *PolicyTraceResult) Validate(formats strfmt.Registry) error

Validate validates this policy trace result

type PolicyTree

type PolicyTree string

PolicyTree Policy tree or subtree swagger:model PolicyTree

func (PolicyTree) Validate

func (m PolicyTree) Validate(formats strfmt.Registry) error

Validate validates this policy tree

type Service

type Service struct {

	// List of backend addresses
	BackendAddresses []*BackendAddress `json:"backend-addresses"`

	// flags
	Flags *ServiceFlags `json:"flags,omitempty"`

	// Frontend address
	// Required: true
	FrontendAddress *FrontendAddress `json:"frontend-address"`

	// Unique identification
	ID int64 `json:"id,omitempty"`
}

Service Collection of endpoints to be served swagger:model Service

func (*Service) Validate

func (m *Service) Validate(formats strfmt.Registry) error

Validate validates this service

type ServiceFlags

type ServiceFlags struct {

	// Frontend to backend translation activated
	ActiveFrontend bool `json:"active-frontend,omitempty"`

	// Perform direct server return
	DirectServerReturn bool `json:"direct-server-return,omitempty"`
}

ServiceFlags Optional service configuration flags swagger:model ServiceFlags

func (*ServiceFlags) Validate

func (m *ServiceFlags) Validate(formats strfmt.Registry) error

Validate validates this service flags

type Status

type Status struct {

	// Human readable status/error/warning message
	Msg string `json:"msg,omitempty"`

	// State the component is in
	State string `json:"state,omitempty"`
}

Status Status of an individual component swagger:model Status

func (*Status) Validate

func (m *Status) Validate(formats strfmt.Registry) error

Validate validates this status

type StatusResponse

type StatusResponse struct {

	// Status of Cilium daemon
	Cilium *Status `json:"cilium,omitempty"`

	// Status of local container runtime
	ContainerRuntime *Status `json:"container-runtime,omitempty"`

	// Status of IP address management
	IPAM *IPAMStatus `json:"ipam,omitempty"`

	// Status of Kubernetes integration
	Kubernetes *Status `json:"kubernetes,omitempty"`

	// Status of key/value datastore
	Kvstore *Status `json:"kvstore,omitempty"`
}

StatusResponse Health and status information of daemon swagger:model StatusResponse

func (*StatusResponse) Validate

func (m *StatusResponse) Validate(formats strfmt.Registry) error

Validate validates this status response

Jump to

Keyboard shortcuts

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