Documentation ¶
Index ¶
- Constants
- func PostHandle(Success *bool, Out *string, out string, err error, ec *errno.ErrorCode) error
- type BlockId
- type Cat
- type Command
- type ContainerExec
- type ContainerLogs
- type CopyFile
- type CopyFromContainer
- type CopyIntoContainer
- type CreateAndUploadDir
- type CreateContainer
- type CreateDirectory
- type CreateFilesystem
- type Curl
- type Date
- type DownloadFile
- type Dpkg
- type EngineInfo
- type Filter
- type Fuser
- type Hostname
- type InspectContainer
- type InstallFile
- type Lambda
- type LambdaType
- type List
- type ListBlockDevice
- type ListContainers
- type ModInfo
- type ModProbe
- type MountFilesystem
- type Mutate
- type Ping
- type PullImage
- type ReadFile
- type RemoveContainer
- type RemoveFile
- type RestartContainer
- type Rpm
- type Scp
- type Sed
- type ShowDiskFree
- type SocketStatistics
- type StartContainer
- type Stat
- type StopContainer
- type SyncFile
- type SyncFileDirectly
- type Tar
- type TrySyncFile
- type Tune2FS
- type UmountFilesystem
- type UnixName
- type Volume
- type WaitContainer
- type Whoami
Constants ¶
View Source
const ( TEMP_DIR = "/tmp" REGEX_KV_SPLIT = "^(([^%s]+)%s\\s*)([^\\s#]*)" // key: mu[2] value: mu[3] )
View Source
const ( ERR_NOT_MOUNTED = "not mounted" ERR_MOUNTPOINT_NOT_FOUND = "mountpoint not found" ERROR_DEVICE_BUSY = "Device or resource busy" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockId ¶ added in v0.3.0
type Cat ¶ added in v0.1.0
type Cat struct { Files []string Success *bool Out *string module.ExecOptions }
type Command ¶ added in v0.1.0
type Command struct { Command string Success *bool Out *string module.ExecOptions }
type ContainerExec ¶
type ContainerLogs ¶ added in v0.1.0
type ContainerLogs struct { ContainerId string Out *string Success *bool module.ExecOptions }
type CopyFile ¶ added in v0.1.0
type CopyFromContainer ¶
type CopyIntoContainer ¶
type CreateAndUploadDir ¶ added in v0.3.0
type CreateAndUploadDir struct { HostDirName string ContainerDestId *string ContainerDestPath string module.ExecOptions }
type CreateContainer ¶
type CreateContainer struct { Image string Command string AddHost []string Devices []string Entrypoint string Envs []string Hostname string Init bool LinuxCapabilities []string Mount string Name string Network string User string Pid string Publish string Privileged bool Remove bool // automatically remove the container when it exits Restart string SecurityOptions []string Ulimits []string Volumes []Volume Out *string module.ExecOptions }
type CreateDirectory ¶
type CreateDirectory struct { Paths []string Success *bool Out *string module.ExecOptions }
type CreateFilesystem ¶
type CreateFilesystem struct { Device string Out *string module.ExecOptions }
type Curl ¶ added in v0.1.0
type DownloadFile ¶ added in v0.1.0
type DownloadFile struct { RemotePath string LocalPath string module.ExecOptions }
type EngineInfo ¶ added in v0.3.0
type EngineInfo struct { Success *bool Out *string module.ExecOptions }
type Hostname ¶ added in v0.1.0
type Hostname struct { Success *bool Out *string module.ExecOptions }
other
type InspectContainer ¶
type InstallFile ¶
type Lambda ¶ added in v0.1.0
type Lambda struct {
Lambda LambdaType
}
type LambdaType ¶ added in v0.1.0
type List ¶ added in v0.1.0
type List struct { Files []string Out *string module.ExecOptions }
storage (filesystem/block)
type ListBlockDevice ¶ added in v0.1.0
type ListContainers ¶
type ModInfo ¶ added in v0.1.0
type ModInfo struct { Name string Success *bool Out *string module.ExecOptions }
type MountFilesystem ¶
type MountFilesystem struct { Source string Directory string Out *string module.ExecOptions }
type Ping ¶ added in v0.1.0
type ReadFile ¶
type RemoveContainer ¶
type RemoveContainer struct { ContainerId string Success *bool Out *string module.ExecOptions }
type RemoveFile ¶
type RemoveFile struct { Files []string Out *string module.ExecOptions }
type RestartContainer ¶
type RestartContainer struct { ContainerId string Out *string module.ExecOptions }
type Rpm ¶ added in v0.1.0
type Scp ¶ added in v0.2.0
type Scp struct { Content *string Mode int RemotePath string module.ExecOptions }
type ShowDiskFree ¶
type ShowDiskFree struct { Files []string Format string Out *string module.ExecOptions }
see also: https://linuxize.com/post/how-to-check-disk-space-in-linux-using-the-df-command/#output-format
type SocketStatistics ¶ added in v0.1.0
type SocketStatistics struct { Filter string Listening bool // display listening sockets NoHeader bool // Suppress header line Success *bool Out *string module.ExecOptions }
network
type StartContainer ¶
type StartContainer struct { ContainerId *string Success *bool Out *string module.ExecOptions }
type Stat ¶ added in v0.1.0
type Stat struct { Files []string Format string Out *string module.ExecOptions }
type StopContainer ¶
type StopContainer struct { ContainerId string Time int Out *string module.ExecOptions }
type SyncFile ¶
type SyncFileDirectly ¶ added in v0.3.0
type Tar ¶ added in v0.1.0
type TrySyncFile ¶ added in v0.3.0
type Tune2FS ¶ added in v0.3.0
type UmountFilesystem ¶
type UnixName ¶ added in v0.1.0
type UnixName struct { KernelRelease bool Out *string module.ExecOptions }
type WaitContainer ¶
type WaitContainer struct { ContainerId string Out *string module.ExecOptions }
Click to show internal directories.
Click to hide internal directories.