utils

package
v0.0.0-...-8af18bd Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSaltshakerImage

func BuildSaltshakerImage() error

func CopyToContainer

func CopyToContainer(containerID string, localPath string) error

func CreateTar

func CreateTar(src string) string

func Exec

func Exec(ctx context.Context, containerID string, command []string) (types.IDResponse, error)

func GetRunningContainers

func GetRunningContainers() []types.Container

func RootDir

func RootDir() string

func RunSaltshakerContainer

func RunSaltshakerContainer() error

Types

type ExecResult

type ExecResult struct {
	StdOut   string
	StdErr   string
	ExitCode int
}

func ApplyState

func ApplyState(containerID string, state string) (ExecResult, error)

func InspectExecResp

func InspectExecResp(ctx context.Context, id string) (ExecResult, error)

func RunCommand

func RunCommand(containerID string, cmd []string) (ExecResult, error)

Jump to

Keyboard shortcuts

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