Documentation
¶
Index ¶
- type AllocatePortsParams
- type AllocatedPortRange
- type AllowedPorts
- type PortAllocator
- func (p *PortAllocator) AllocatePortRange(ctx restate.ObjectContext, params AllocatePortsParams) (*AllocatedPortRange, error)
- func (p *PortAllocator) FreePortsForNetwork(ctx restate.ObjectContext, network string) error
- func (p *PortAllocator) Initialize(ctx restate.ObjectContext, allowedPorts AllowedPorts) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocatePortsParams ¶
type AllocatedPortRange ¶
type AllowedPorts ¶
func (AllowedPorts) IsAllowed ¶
func (a AllowedPorts) IsAllowed(pr AllocatedPortRange) bool
type PortAllocator ¶
type PortAllocator struct{}
func (*PortAllocator) AllocatePortRange ¶
func (p *PortAllocator) AllocatePortRange(ctx restate.ObjectContext, params AllocatePortsParams) (*AllocatedPortRange, error)
func (*PortAllocator) FreePortsForNetwork ¶
func (p *PortAllocator) FreePortsForNetwork(ctx restate.ObjectContext, network string) error
func (*PortAllocator) Initialize ¶
func (p *PortAllocator) Initialize(ctx restate.ObjectContext, allowedPorts AllowedPorts) error
Click to show internal directories.
Click to hide internal directories.