Documentation ¶
Index ¶
- Constants
- type PortAllocator
- type ServiceMapping
- func (s *ServiceMapping) Close()
- func (s *ServiceMapping) DeleteServicePorts(serviceName string) error
- func (s *ServiceMapping) GetServiceNextPort(serviceName string) (int, error)
- func (s *ServiceMapping) SetServicePorts(serviceName string, ports []int) error
- func (s *ServiceMapping) WatchFile(logger *log.Logger) error
Constants ¶
View Source
const (
ServiceMappingFile = "var/lib/baetyl/run/services.yml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortAllocator ¶ added in v2.0.46
type PortAllocator struct {
// contains filtered or unexported fields
}
func NewPortAllocator ¶ added in v2.0.46
func NewPortAllocator(start, end int) (*PortAllocator, error)
func (*PortAllocator) Allocate ¶ added in v2.0.46
func (p *PortAllocator) Allocate() (int, error)
type ServiceMapping ¶
func NewServiceMapping ¶
func NewServiceMapping() (*ServiceMapping, error)
func (*ServiceMapping) Close ¶ added in v2.0.46
func (s *ServiceMapping) Close()
func (*ServiceMapping) DeleteServicePorts ¶ added in v2.0.46
func (s *ServiceMapping) DeleteServicePorts(serviceName string) error
func (*ServiceMapping) GetServiceNextPort ¶ added in v2.0.46
func (s *ServiceMapping) GetServiceNextPort(serviceName string) (int, error)
func (*ServiceMapping) SetServicePorts ¶ added in v2.0.46
func (s *ServiceMapping) SetServicePorts(serviceName string, ports []int) error
Click to show internal directories.
Click to hide internal directories.