docker

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package docker simplifies docker operations

Package docker simplifies docker operations

Package docker simplifies docker operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadStackDefinition

func LoadStackDefinition(parentFS fs.FS, filePath string) (*types.Config, error)

LoadStackDefinition parses the specified Docker Compose file and returns its Config and version.

Types

type Client

type Client struct {
	Client *dc.Client
}

func NewClient

func NewClient() (*Client, error)

func (*Client) DeployStack

func (c *Client) DeployStack(ctx context.Context, name string, config *dct.Config) error

func (*Client) ListStacks

func (c *Client) ListStacks(ctx context.Context) ([]Stack, error)

func (*Client) RemoveStacks added in v0.1.1

func (c *Client) RemoveStacks(ctx context.Context, names []string) error

type Stack

type Stack struct {
	Name     string
	Services []swarm.Service
}

Jump to

Keyboard shortcuts

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