swarm

package
v0.0.0-...-034a1d5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(stackName string) error

Remove provides removing of service

Types

type Compose

type Compose struct {
	Version  string             `yaml:"version"`
	Networks map[string]Network `yaml:"networks"`
	Services map[string]Service `yaml:"services"`
}

Compose defines file for saving data

type Network

type Network struct {
}

Network provides definition of configuration

type Service

type Service struct {
	Image    string   `yaml:"image"`
	Networks []string `yaml:"networks"`
	Ports    []string `yaml:"ports"`
}

Service provides definition of service configurarion

type Swarm

type Swarm struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.Deploy) *Swarm

func (*Swarm) Run

func (s *Swarm) Run(cfg config.Deploy, imageURL, imageName string, ports []string) error

Run defines execute of swarm stage

Jump to

Keyboard shortcuts

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