Documentation
¶
Index ¶
- type Allocator
- func (a *Allocator) AddServiceRoute(ret *current.Result, serviceClusterIPRange string, nodeIPs []string) (*current.Result, error)
- func (a *Allocator) Allocate(id string) (*current.IPConfig, error)
- func (a *Allocator) CustomizeDNS(ret *current.Result) (*current.Result, error)
- func (a *Allocator) CustomizeGateway(ret *current.Result) (*current.Result, error)
- func (a *Allocator) CustomizeRoutes(ret *current.Result) (*current.Result, error)
- type Cleaner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Allocator is the allocator for anchor.
func NewAllocator ¶
func NewAllocator(store store.Store, pod, namespace string, customized map[string]string) (*Allocator, error)
NewAllocator news a allocator
func (*Allocator) AddServiceRoute ¶
func (a *Allocator) AddServiceRoute(ret *current.Result, serviceClusterIPRange string, nodeIPs []string) (*current.Result, error)
AddServiceRoute adds route for serice cluster ip range.
func (*Allocator) CustomizeDNS ¶
CustomizeDNS configs the DNS for pod, but not implemented now.
func (*Allocator) CustomizeGateway ¶
CustomizeGateway adds default route for pod if customizeGatewayKey is set.
func (*Allocator) CustomizeRoutes ¶
CustomizeRoutes adds routes if customizeRouteKey is set. The format of input should as: 10.0.1.0/24,10.0.1.1;10.0.5.0/24,10.0.5.1 The outer delimiter is semicolon(;) and the inner delimiter is comma(,)
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner is the cleaner for anchor.
func NewCleaner ¶
NewCleaner news a cleaner for anchor.
Click to show internal directories.
Click to hide internal directories.