native

package
v2.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

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

type ServiceMapping struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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

func (*ServiceMapping) WatchFile added in v2.0.46

func (s *ServiceMapping) WatchFile(logger *log.Logger) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL