deployment

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImages

func BuildImages(m *DeploymentManifest)

func PlatformClient

func PlatformClient(verbose bool) (*resty.Client, error)

func PushImages

func PushImages(m *DeploymentManifest)

func ResponseFormat

func ResponseFormat(i interface{}) ([]byte, error)

Types

type DeploymentManifest

type DeploymentManifest struct {
	Force    bool                `json:"force"`
	Services map[string]*Service `json:"services"`
}

func CreateManifestFromCompose

func CreateManifestFromCompose(filename string, services []string) (*DeploymentManifest, error)

func NewDeploymentManifest

func NewDeploymentManifest() *DeploymentManifest

type PortDefinition

type PortDefinition struct {
	Port   uint16 `json:"port"`
	Public bool   `json:"public"`
}

type Service

type Service struct {
	Image       string            `json:"image"`
	Environment map[string]string `json:"environment,omitempty"`
	Ports       []*PortDefinition `json:"ports,omitempty"`
	Entrypoint  string            `json:"entrypoint,omitempty"`
	Command     string            `json:"command,omitempty"`
	// contains filtered or unexported fields
}

func NewService

func NewService() *Service

Jump to

Keyboard shortcuts

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