manifest

package
v0.7.9-rc13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group added in v0.6.0

type Group struct {
	Name     string
	Services []Service
}

Group store name and list of services

func (Group) GetName added in v0.6.0

func (g Group) GetName() string

GetName returns the name of group

func (Group) GetResources added in v0.6.0

func (g Group) GetResources() []types.Resources

GetResources returns list of resources in a group

type Manifest added in v0.6.0

type Manifest []Group

Manifest store list of groups

func (Manifest) GetGroups added in v0.6.0

func (m Manifest) GetGroups() []Group

GetGroups returns a manifest with groups list

type Service added in v0.6.0

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) GetCount added in v0.6.0

func (s Service) GetCount() uint32

GetCount returns count of service

func (Service) GetResourceUnits added in v0.9.1

func (s Service) GetResourceUnits() types.ResourceUnits

GetResourcesUnit returns resources unit of service

type ServiceExpose added in v0.6.0

type ServiceExpose struct {
	Port         uint16
	ExternalPort uint16
	Proto        string
	Service      string
	Global       bool
	Hosts        []string
}

ServiceExpose stores exposed ports and hosts details

Jump to

Keyboard shortcuts

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