helpers

package
v0.6.74 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogs

func GetLogs(ctx context.Context, c *client.Client, composeFilePath, tail string, follow bool, logConsumer api.LogConsumer) error

func NewComposeClientFromDocker

func NewComposeClientFromDocker(c *dockerClient.APIClient) *client.Client

func Ps

func Ps(ctx context.Context, c *client.Client, all, quiet bool, formatOpt string) error

func Pull

func Pull(ctx context.Context, c *client.Client, composeFilePath string) error

func Rm

func Rm(ctx context.Context, c client.Client, composeFilePath string, force bool) error

func Stop

func Stop(ctx context.Context, c client.Client, composeFilePath string, force bool) error

func Up

func Up(ctx context.Context, c client.Client, composeFilePath string, detach bool) error

Types

type ContainerView

type ContainerView struct {
	ID      string
	Image   string
	Status  string
	Command string
	Ports   []string
}

func ListContainers

func ListContainers(ctx context.Context, c *client.Client, all bool) ([]ContainerView, error)

Jump to

Keyboard shortcuts

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