container

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(client *client.Client) (*Manager, error)

func (*Manager) CreateAndStart

func (mng *Manager) CreateAndStart(ctx context.Context, css entities.ContainerStartSettings) (string, error)

func (*Manager) Exec

func (mng *Manager) Exec(ctx context.Context, conID string, command string, username string) (int, error)

func (*Manager) GetContainer

func (mng *Manager) GetContainer(ctx context.Context, name string) (entities.Container, error)

func (*Manager) GetExporterName added in v0.0.14

func (mng *Manager) GetExporterName(num int) string

func (*Manager) RemoveContainer

func (mng *Manager) RemoveContainer(ctx context.Context, name string) error

func (*Manager) Renew added in v0.0.18

func (mng *Manager) Renew(ctx context.Context) error

func (*Manager) ShellCommand added in v0.0.4

func (mng *Manager) ShellCommand(ctx context.Context, containerName string, username string, workDir string, command []string) error

func (*Manager) StartPrometheusExporter added in v0.0.14

func (mng *Manager) StartPrometheusExporter(ctx context.Context, num int, netID string) error

func (*Manager) StopAll

func (mng *Manager) StopAll(ctx context.Context, remove bool)

Jump to

Keyboard shortcuts

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