api

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	Added    EventType = "ADDED"
	Deleted  EventType = "DELETED"
	Modified EventType = "MODIFIED"
)

type FilteringEndpointsConfigHandler

type FilteringEndpointsConfigHandler interface {
	pconfig.EndpointsConfigHandler
	SetBaseEndpointsHandler(base pconfig.EndpointsConfigHandler)
}

type NamespaceEvent

type NamespaceEvent struct {
	Type EventType
	Name string
}

type NetNamespace

type NetNamespace struct {
	Name  string
	NetID uint
}

type NetNamespaceEvent

type NetNamespaceEvent struct {
	Type  EventType
	Name  string
	NetID uint
}

type Node

type Node struct {
	Name string
	IP   string
}

type NodeEvent

type NodeEvent struct {
	Type EventType
	Node Node
}

type OsdnPlugin

type OsdnPlugin interface {
	knetwork.NetworkPlugin

	StartMaster(clusterNetworkCIDR string, clusterBitsPerSubnet uint, serviceNetworkCIDR string) error
	StartNode(mtu uint) error
}

type Pod

type Pod struct {
	Name        string
	Namespace   string
	ContainerID string
	Annotations map[string]string
}

type Service

type Service struct {
	Name      string
	Namespace string
	UID       string
	IP        string
	Ports     []ServicePort
}

type ServiceEvent

type ServiceEvent struct {
	Type    EventType
	Service Service
}

type ServicePort

type ServicePort struct {
	Protocol ServiceProtocol
	Port     uint
}

type ServiceProtocol

type ServiceProtocol string
const (
	TCP ServiceProtocol = "TCP"
	UDP ServiceProtocol = "UDP"
)

type Subnet

type Subnet struct {
	NodeIP     string
	SubnetCIDR string
}

type SubnetEvent

type SubnetEvent struct {
	Type     EventType
	NodeName string
	Subnet   Subnet
}

Jump to

Keyboard shortcuts

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