cli

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DokiCLI

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

func New

func New(socket string) *DokiCLI

func (*DokiCLI) Apply

func (c *DokiCLI) Apply(file string) error

func (*DokiCLI) Attach

func (c *DokiCLI) Attach(containerID string, detachKeys, sigProxy string) error

func (*DokiCLI) AutoUpdate

func (c *DokiCLI) AutoUpdate() error

func (*DokiCLI) Build

func (c *DokiCLI) Build(contextDir, dokifile string, tags []string, buildArgs map[string]string, noCache, pull, quiet, rm bool) error

func (*DokiCLI) Commit

func (c *DokiCLI) Commit(containerID, repo, tag, author, message string, pause bool, changes []string) error

func (*DokiCLI) Cp

func (c *DokiCLI) Cp(containerID, srcPath, destPath string, followLink, copyUIDGID bool) error

func (*DokiCLI) CpToContainer

func (c *DokiCLI) CpToContainer(containerID, srcPath, destPath string, followLink, copyUIDGID bool) error

func (*DokiCLI) Create

func (c *DokiCLI) Create(image string, cmd []string, opts *RunFlags) (string, error)

func (*DokiCLI) Diff

func (c *DokiCLI) Diff(containerID string) error

func (*DokiCLI) Events

func (c *DokiCLI) Events(filter string) error

func (*DokiCLI) Exec

func (c *DokiCLI) Exec(containerID string, cmd []string, tty, detach, interactive bool, env []string, workdir, user string) error

func (*DokiCLI) Export

func (c *DokiCLI) Export(containerID string, output string) error

func (*DokiCLI) GenerateKube

func (c *DokiCLI) GenerateKube(containerID string, service bool) error

func (*DokiCLI) Healthcheck

func (c *DokiCLI) Healthcheck(containerID string) error

func (*DokiCLI) History

func (c *DokiCLI) History(imageName string, noTrunc, quiet bool) error

func (*DokiCLI) Images

func (c *DokiCLI) Images(all, quiet, noTrunc bool, filter string) error

func (*DokiCLI) ImagesPrune

func (c *DokiCLI) ImagesPrune(all bool, filter string) error

func (*DokiCLI) Import

func (c *DokiCLI) Import(source, repo, tag string, changes []string, message string) error

func (*DokiCLI) Inspect

func (c *DokiCLI) Inspect(containerIDs []string, format string) error

func (*DokiCLI) Kill

func (c *DokiCLI) Kill(ids []string, signal string) error

func (*DokiCLI) KubeDown

func (c *DokiCLI) KubeDown(file string) error

func (*DokiCLI) KubeGenerate

func (c *DokiCLI) KubeGenerate(what string) error

func (*DokiCLI) KubePlay

func (c *DokiCLI) KubePlay(file string) error

func (*DokiCLI) Load

func (c *DokiCLI) Load(input string, quiet bool) error

func (*DokiCLI) Login

func (c *DokiCLI) Login(server, username, password string) error

func (*DokiCLI) Logout

func (c *DokiCLI) Logout(server string) error

func (*DokiCLI) Logs

func (c *DokiCLI) Logs(containerID string, follow, timestamps bool, tail int, since string) error

func (*DokiCLI) Mount

func (c *DokiCLI) Mount(containerIDs []string) error

func (*DokiCLI) NetworkConnect

func (c *DokiCLI) NetworkConnect(networkID, containerID string, aliases []string) error

func (*DokiCLI) NetworkCreate

func (c *DokiCLI) NetworkCreate(name, driver string, internal, ipv6 bool, subnet, gateway string, labels map[string]string) error

func (*DokiCLI) NetworkDisconnect

func (c *DokiCLI) NetworkDisconnect(networkID, containerID string, force bool) error

func (*DokiCLI) NetworkInspect

func (c *DokiCLI) NetworkInspect(ids []string) error

func (*DokiCLI) NetworkLs

func (c *DokiCLI) NetworkLs(quiet bool, noTrunc bool, filter, format string) error

func (*DokiCLI) NetworkPrune

func (c *DokiCLI) NetworkPrune(filter string) error

func (*DokiCLI) NetworkRm

func (c *DokiCLI) NetworkRm(ids []string) error

func (*DokiCLI) Pause

func (c *DokiCLI) Pause(ids []string) error

func (*DokiCLI) Ping

func (c *DokiCLI) Ping() error

func (*DokiCLI) PodCreate

func (c *DokiCLI) PodCreate(name string, labels map[string]string) (string, error)

func (*DokiCLI) PodPs

func (c *DokiCLI) PodPs() error

func (*DokiCLI) PodRm

func (c *DokiCLI) PodRm(ids []string, force bool) error

func (*DokiCLI) PodStart

func (c *DokiCLI) PodStart(ids []string) error

func (*DokiCLI) PodStop

func (c *DokiCLI) PodStop(ids []string) error

func (*DokiCLI) Port

func (c *DokiCLI) Port(containerID, privatePort string) error

func (*DokiCLI) Prune

func (c *DokiCLI) Prune(all bool, filter string) error

func (*DokiCLI) Ps

func (c *DokiCLI) Ps(all, quiet, noTrunc bool, filter, format string, lastN int, size bool) error

func (*DokiCLI) Pull

func (c *DokiCLI) Pull(imageName string, allTags, quiet bool) error

func (*DokiCLI) Push

func (c *DokiCLI) Push(imageName string, allTags, quiet bool) error

func (*DokiCLI) Rename

func (c *DokiCLI) Rename(containerID, newName string) error

func (*DokiCLI) Restart

func (c *DokiCLI) Restart(ids []string, timeout int) error

func (*DokiCLI) Rm

func (c *DokiCLI) Rm(ids []string, force, volumes, link bool) error

func (*DokiCLI) Rmi

func (c *DokiCLI) Rmi(ids []string, force, noPrune bool) error

func (*DokiCLI) Run

func (c *DokiCLI) Run(args []string) error

func (*DokiCLI) Save

func (c *DokiCLI) Save(imageNames []string, output string) error

func (*DokiCLI) Scout

func (c *DokiCLI) Scout(target string) error

func (*DokiCLI) Search

func (c *DokiCLI) Search(term string, limit int, noTrunc bool, filterStars int) error

func (*DokiCLI) Start

func (c *DokiCLI) Start(ids []string) error

func (*DokiCLI) Stats

func (c *DokiCLI) Stats(containerIDs []string, noStream bool) error

func (*DokiCLI) Stop

func (c *DokiCLI) Stop(ids []string, timeout int) error

func (*DokiCLI) SystemDf

func (c *DokiCLI) SystemDf(verbose bool) error

func (*DokiCLI) SystemDialStdio

func (c *DokiCLI) SystemDialStdio() error

func (*DokiCLI) SystemEvents

func (c *DokiCLI) SystemEvents(since, until, filter string) error

func (*DokiCLI) SystemInfo

func (c *DokiCLI) SystemInfo() error

func (*DokiCLI) SystemPrune

func (c *DokiCLI) SystemPrune(all, volumes bool, filter string) error

func (*DokiCLI) SystemVersion

func (c *DokiCLI) SystemVersion() error

func (*DokiCLI) Tag

func (c *DokiCLI) Tag(source, target string) error

func (*DokiCLI) Top

func (c *DokiCLI) Top(containerID string, psArgs string) error

func (*DokiCLI) Unmount

func (c *DokiCLI) Unmount(containerIDs []string) error

func (*DokiCLI) Unpause

func (c *DokiCLI) Unpause(ids []string) error

func (*DokiCLI) Unshare

func (c *DokiCLI) Unshare(cmd []string) error

func (*DokiCLI) Untag

func (c *DokiCLI) Untag(imageName string) error

func (*DokiCLI) Update

func (c *DokiCLI) Update(containerID string, flags *RunFlags) error

func (*DokiCLI) VerifyImageSignature

func (c *DokiCLI) VerifyImageSignature(imageName string) error

func (*DokiCLI) VolumeCreate

func (c *DokiCLI) VolumeCreate(name, driver string, opts, labels map[string]string) error

func (*DokiCLI) VolumeInspect

func (c *DokiCLI) VolumeInspect(ids []string) error

func (*DokiCLI) VolumeLs

func (c *DokiCLI) VolumeLs(quiet bool, filter string) error

func (*DokiCLI) VolumePrune

func (c *DokiCLI) VolumePrune(filter string) error

func (*DokiCLI) VolumeRm

func (c *DokiCLI) VolumeRm(ids []string, force bool) error

func (*DokiCLI) Wait

func (c *DokiCLI) Wait(containerID string) (int, error)

type MountOpt

type MountOpt struct {
	Type        string
	Source      string
	Target      string
	ReadOnly    bool
	Consistency string
}

type RunFlags

type RunFlags struct {
	Name              string
	Detach            bool
	Interactive       bool
	TTY               bool
	RM                bool
	Privileged        bool
	ReadOnly          bool
	Network           string
	RestartPolicy     string
	CPUShares         int64
	Memory            int64
	MemorySwap        int64
	NanoCPUs          int64
	CPUSetCPUs        string
	CPUSetMems        string
	CPUPeriod         int64
	CPUQuota          int64
	PidsLimit         int64
	OOMKillDisable    bool
	ShmSize           int64
	DNS               []string
	DNSSearch         []string
	DNSOptions        []string
	ExtraHosts        []string
	Env               []string
	EnvFile           []string
	Workdir           string
	User              string
	Entrypoint        string
	StopSignal        string
	StopTimeout       int
	Init              bool
	Pull              string
	Platform          string
	CapAdd            []string
	CapDrop           []string
	SecurityOpt       []string
	Sysctls           map[string]string
	Ulimits           []string
	LogDriver         string
	LogOpts           map[string]string
	Ports             []string
	PublishAll        bool
	Volumes           []string
	Mounts            []MountOpt
	Devices           []string
	DeviceCgroupRules []string
	GroupAdd          []string
	Hostname          string
	Domainname        string
	IP                string
	IP6               string
	Link              []string
	LinkLocalIP       string
	MACAddress        string
	BlkioWeight       uint16
	CgroupParent      string
	CgroupNS          string
	IPCMode           string
	PIDMode           string
	UTSMode           string
	UsernsMode        string
	Isolation         string
	Runtime_RT        string
	StorageOpt        map[string]string
	VolumeDriver      string
	VolumesFrom       []string
	Expose            []string
	Labels            map[string]string
	LabelFile         []string
	Annotations       map[string]string
	HealthCmd         string
	HealthInterval    string
	HealthTimeout     string
	HealthRetries     int
	HealthStartPeriod string
	GPUs              string
}

func ParseRunFlags

func ParseRunFlags(args []string) (image string, cmd []string, flags *RunFlags)

Jump to

Keyboard shortcuts

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