Documentation
¶
Index ¶
- type AllocatePortsParams
- type AllocatedPortRange
- type AllocationErrorKind
- type AllowedPorts
- type PortAllocationError
- 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 AllocationErrorKind ¶
type AllocationErrorKind = string
const NO_ALLOCATABLE_RANGES AllocationErrorKind = "NO_ALLOCATABLE_RANGES"
type AllowedPorts ¶
func (AllowedPorts) IsAllowed ¶
func (a AllowedPorts) IsAllowed(pr AllocatedPortRange) bool
type PortAllocationError ¶
type PortAllocationError struct {
// contains filtered or unexported fields
}
func (*PortAllocationError) Error ¶
func (e *PortAllocationError) Error() string
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.