Documentation ¶
Index ¶
Constants ¶
View Source
const ( TCP = ServiceProtocol("TCP") UDP = ServiceProtocol("UDP") )
Variables ¶
View Source
var ErrUnsupportedServiceProtocol = errors.New("Unsuported service protocol")
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group store name and list of services
func (Group) GetResources ¶
GetResources returns list of resources in a group
type Service ¶
type Service struct { Name string Image string Command []string Args []string Env []string Resources types.ResourceUnits Count uint32 Expose []ServiceExpose }
Service stores name, image, args, env, unit, count and expose list of service
func (Service) GetResourceUnits ¶
func (s Service) GetResourceUnits() types.ResourceUnits
GetResourcesUnit returns resources unit of service
type ServiceExpose ¶
type ServiceExpose struct { Port uint16 // Port on the container ExternalPort uint16 // Port on the service definition Proto ServiceProtocol Service string Global bool Hosts []string HTTPOptions ServiceExposeHTTPOptions }
ServiceExpose stores exposed ports and hosts details
type ServiceProtocol ¶
type ServiceProtocol string
func ParseServiceProtocol ¶
func ParseServiceProtocol(input string) (ServiceProtocol, error)
func (ServiceProtocol) ToString ¶
func (sp ServiceProtocol) ToString() string
Click to show internal directories.
Click to hide internal directories.