syscmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SUPPORT_CONTAINER_CLIENT = []string{
	"podman", "docker",
}

Functions

func GetOutput

func GetOutput(command string, args ...string) (string, error)

Types

type ContainerCli

type ContainerCli interface {
	Pull(image string) error
	Push(image string) error
	Tag(image string, tag string) error
	GetImageRepo(repo string, image string) string
	GetCmd() string
}

func GetDefaultContainerCli

func GetDefaultContainerCli() (ContainerCli, error)

type Impl

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

func NewDocker

func NewDocker() *Impl

func NewPodman

func NewPodman() *Impl

func (Impl) GetCmd

func (ctl Impl) GetCmd() string

func (Impl) GetImageRepo

func (ctl Impl) GetImageRepo(repo string, image string) string

func (Impl) Pull

func (ctl Impl) Pull(image string) error

func (Impl) Push

func (ctl Impl) Push(image string) error

func (Impl) Tag

func (ctl Impl) Tag(image string, tag string) error

Jump to

Keyboard shortcuts

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