native

package
v2.0.44 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 7 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 PortsInfo

type PortsInfo struct {
	Items []int `yaml:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PortsInfo) Next

func (i *PortsInfo) Next() (int, error)

type ServiceMapping

type ServiceMapping struct {
	Services map[string]ServiceMappingInfo `yaml:"services,omitempty"`
	sync.RWMutex
}

func NewServiceMapping

func NewServiceMapping() *ServiceMapping

func (*ServiceMapping) Load

func (s *ServiceMapping) Load() error

func (*ServiceMapping) Save

func (s *ServiceMapping) Save() error

type ServiceMappingInfo

type ServiceMappingInfo struct {
	Ports PortsInfo `yaml:"ports,omitempty"`
}

Jump to

Keyboard shortcuts

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