Documentation ¶
Index ¶
- Constants
- type Address
- type BackendAddress
- type Configuration
- type ConfigurationMap
- type DaemonConfigurationResponse
- type Endpoint
- type EndpointAddressing
- type EndpointChangeRequest
- type EndpointPolicy
- type EndpointState
- type EndpointStatusChange
- type Error
- type FrontendAddress
- type IPAM
- type IPAMStatus
- type Identity
- type IdentityContext
- type L4Policy
- type LabelConfiguration
- type LabelConfigurationModifier
- type Labels
- type NodeAddressing
- type NodeAddressingElement
- type PolicyTraceResult
- type PolicyTree
- type Port
- type Service
- type ServiceFlags
- type Status
- type StatusResponse
Constants ¶
const ( // EndpointStatusChangeCodeOk captures enum value "ok" EndpointStatusChangeCodeOk string = "ok" // EndpointStatusChangeCodeFailed captures enum value "failed" EndpointStatusChangeCodeFailed string = "failed" )
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" )
const ( // PortProtocolTCP captures enum value "tcp" PortProtocolTCP string = "tcp" // PortProtocolUDP captures enum value "udp" PortProtocolUDP string = "udp" // PortProtocolAny captures enum value "any" PortProtocolAny string = "any" )
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 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) MarshalBinary ¶ added in v0.9.0
func (m *BackendAddress) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackendAddress) UnmarshalBinary ¶ added in v0.9.0
func (m *BackendAddress) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *Configuration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Configuration) UnmarshalBinary ¶ added in v0.9.0
func (m *Configuration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ConfigurationMap ¶
ConfigurationMap Map of configuration key/value pairs.
swagger:model ConfigurationMap
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) MarshalBinary ¶ added in v0.9.0
func (m *DaemonConfigurationResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DaemonConfigurationResponse) UnmarshalBinary ¶ added in v0.9.0
func (m *DaemonConfigurationResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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"` // Whether policy enforcement is enabled or not PolicyEnabled bool `json:"policy-enabled,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) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*Endpoint) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *EndpointAddressing) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointAddressing) UnmarshalBinary ¶ added in v0.9.0
func (m *EndpointAddressing) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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"` // Whether policy enforcement is enabled or not PolicyEnabled bool `json:"policy-enabled,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) MarshalBinary ¶ added in v0.9.0
func (m *EndpointChangeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointChangeRequest) UnmarshalBinary ¶ added in v0.9.0
func (m *EndpointChangeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *EndpointPolicy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointPolicy) UnmarshalBinary ¶ added in v0.9.0
func (m *EndpointPolicy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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" // EndpointStateRegenerating captures enum value "regenerating" EndpointStateRegenerating EndpointState = "regenerating" // EndpointStateReady captures enum value "ready" EndpointStateReady EndpointState = "ready" )
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) MarshalBinary ¶ added in v0.9.0
func (m *EndpointStatusChange) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointStatusChange) UnmarshalBinary ¶ added in v0.9.0
func (m *EndpointStatusChange) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *FrontendAddress) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FrontendAddress) UnmarshalBinary ¶ added in v0.9.0
func (m *FrontendAddress) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*IPAM) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
type IPAMStatus ¶
IPAMStatus Status of IP address management swagger:model IPAMStatus
func (*IPAMStatus) MarshalBinary ¶ added in v0.9.0
func (m *IPAMStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IPAMStatus) UnmarshalBinary ¶ added in v0.9.0
func (m *IPAMStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*Identity) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
type IdentityContext ¶
type IdentityContext struct { // List of Layer 4 port and protocol pairs which will be used in communication // from the source identity to the destination identity. // Dports []*Port `json:"dports"` // 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) MarshalBinary ¶ added in v0.9.0
func (m *IdentityContext) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IdentityContext) UnmarshalBinary ¶ added in v0.9.0
func (m *IdentityContext) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*L4Policy) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *LabelConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabelConfiguration) UnmarshalBinary ¶ added in v0.9.0
func (m *LabelConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *LabelConfigurationModifier) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LabelConfigurationModifier) UnmarshalBinary ¶ added in v0.9.0
func (m *LabelConfigurationModifier) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *NodeAddressing) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeAddressing) UnmarshalBinary ¶ added in v0.9.0
func (m *NodeAddressing) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *NodeAddressingElement) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeAddressingElement) UnmarshalBinary ¶ added in v0.9.0
func (m *NodeAddressingElement) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *PolicyTraceResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PolicyTraceResult) UnmarshalBinary ¶ added in v0.9.0
func (m *PolicyTraceResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Port ¶ added in v0.9.0
type Port struct { // Layer 4 port number Port uint16 `json:"port,omitempty"` // Layer 4 protocol Protocol string `json:"protocol,omitempty"` }
Port Layer 4 port / protocol pair swagger:model Port
func (*Port) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*Port) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*Service) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *ServiceFlags) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceFlags) UnmarshalBinary ¶ added in v0.9.0
func (m *ServiceFlags) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶ added in v0.9.0
UnmarshalBinary interface implementation
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) MarshalBinary ¶ added in v0.9.0
func (m *StatusResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StatusResponse) UnmarshalBinary ¶ added in v0.9.0
func (m *StatusResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- address.go
- backend_address.go
- configuration.go
- configuration_map.go
- daemon_configuration_response.go
- endpoint.go
- endpoint_addressing.go
- endpoint_change_request.go
- endpoint_policy.go
- endpoint_state.go
- endpoint_status_change.go
- error.go
- frontend_address.go
- identity.go
- identity_context.go
- ip_a_m.go
- ip_a_m_status.go
- l4_policy.go
- label_configuration.go
- label_configuration_modifier.go
- labels.go
- node_addressing.go
- node_addressing_element.go
- policy_trace_result.go
- policy_tree.go
- port.go
- service.go
- status.go
- status_response.go