Documentation
¶
Index ¶
Constants ¶
View Source
const LogName = "lazygate.provider"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocation ¶
type Allocation interface { Stop() error // Stop stops the allocation. Start() error // Start starts the allocation. State() AllocationState // State returns current allocation state. Config() (*allocation.Config, error) // Config of allocation. }
Allocation represents physical allocation.
type AllocationState ¶
type AllocationState uint8
AllocationState represents allocation state.
const ( AllocationStateUnknown AllocationState = iota // Allocation is in unknown state. AllocationStateStarted // Allocation is in started state. AllocationStateStopped // Allocation is in stopped state. )
type InitOptions ¶
InitOptions represents options to pass to provider initializer.
type Provider ¶
type Provider interface { Init(opts *InitOptions) error // Init initializes the provider. AllocationGet(srv proxy.RegisteredServer) (Allocation, error) // AllocationGet returns matching Allocation. AllocationList() ([]Allocation, error) // AllocationList returns all matching Allocation's. }
Provider manipulates with registered servers.
Click to show internal directories.
Click to hide internal directories.