manifest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidSignature represents new error with message "invalid signature"
	ErrInvalidSignature = errors.New("invalid signature")
	// ErrInvalidKey represents new error with message "key is not deployment owner"
	ErrInvalidKey = errors.New("key is not deployment owner")
)
View Source
var ErrDifferentHashes = errors.New("manifest hash does not match the expected hash")

ErrDifferentHashes represent new error for "manifest hash not matched with expected hash"

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.Resource

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

type Request struct {
	Manifest Manifest
}

Request is the struct that includes manifest details

type Service added in v0.6.0

type Service struct {
	Name   string
	Image  string
	Args   []string
	Env    []string
	Unit   types.Unit
	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) GetUnit added in v0.6.0

func (s Service) GetUnit() types.Unit

GetUnit returns unit of service

type ServiceExpose added in v0.6.0

type ServiceExpose struct {
	Port         uint32
	ExternalPort uint32
	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