Documentation
¶
Overview ¶
Package binding is the actual package binding part that requires the libveinmind library through pkg-config, and and attempt to reconstruct the API interface from it.
Index ¶
- Constants
- type ErrorType
- type Handle
- func ContainerdMakeNewOptionList() Handle
- func ContainerdNew(opts Handle) (Handle, error)
- func ContainerdWithConfigPath(path string) Handle
- func ContainerdWithRootDir(path string) Handle
- func ContainerdWithUniqueDesc(desc string) Handle
- func DockerMakeNewOptionList() Handle
- func DockerNew(opts Handle) (Handle, error)
- func DockerWithConfigPath(path string) Handle
- func DockerWithDataRootDir(path string) Handle
- func DockerWithUniqueDesc(desc string) Handle
- func NewBytes(b []byte) Handle
- func NewString(str string) Handle
- func RemoteNew(root string) (Handle, error)
- func TarballNew(root string) (Handle, error)
- func (h Handle) Append(item Handle)
- func (h Handle) Bytes() []byte
- func (h Handle) BytesToString() Handle
- func (h Handle) Close() error
- func (h Handle) ContainerID() string
- func (h Handle) ContainerImageID() string
- func (h Handle) ContainerName() string
- func (h Handle) ContainerOCISpecMarshalJSON() ([]byte, error)
- func (h Handle) ContainerOCIStateMarshalJSON() ([]byte, error)
- func (h Handle) ContainerdUniqueDesc() string
- func (h Handle) Crop(begin, end int) Handle
- func (h Handle) DockerContainerConfig() ([]byte, error)
- func (h Handle) DockerImageGetLayerDiffID(i int) (string, error)
- func (h Handle) DockerImageNumLayers() int
- func (h Handle) DockerImageOpenLayer(i int) (Handle, error)
- func (h Handle) DockerLayerID() string
- func (h Handle) DockerLayerOpaques() ([]string, error)
- func (h Handle) DockerLayerWhiteouts() ([]string, error)
- func (h Handle) DockerUniqueDesc() string
- func (h Handle) Error() error
- func (h Handle) ErrorMessage() string
- func (h Handle) ErrorString() string
- func (h Handle) ErrorUnwrap() Handle
- func (h Handle) EvalSymlink(path string) (string, error)
- func (h Handle) FileInfoModTime() int64
- func (h Handle) FileInfoMode() uint32
- func (h Handle) FileInfoName() string
- func (h Handle) FileInfoSize() SizeType
- func (h Handle) FileInfoSys() Handle
- func (h Handle) FileStat() (Handle, error)
- func (h *Handle) Free()
- func (h Handle) ID() IDType
- func (h Handle) ImageID() string
- func (h Handle) ImageOCISpecV1MarshalJSON() ([]byte, error)
- func (h Handle) ImageRepoRefs() ([]string, error)
- func (h Handle) ImageRepos() ([]string, error)
- func (h Handle) Index(i int) Handle
- func (h Handle) Int32() int32
- func (h Handle) Int32Array() []int32
- func (h Handle) IsEOFError() bool
- func (h Handle) IsEOK() bool
- func (h Handle) IsNil() bool
- func (h Handle) IsOSPathError() bool
- func (h Handle) IsSyscallError() bool
- func (h Handle) IsWrapError() bool
- func (h Handle) Length() int
- func (h Handle) Lstat(path string) (Handle, error)
- func (h Handle) OSPathError() *os.PathError
- func (h Handle) OSPathErrorGetOp() string
- func (h Handle) OSPathErrorGetPath() string
- func (h Handle) Open(path string) (Handle, error)
- func (h Handle) ProcessChildren() (Handle, error)
- func (h Handle) ProcessCmdline() (string, error)
- func (h Handle) ProcessCreateTime() (int64, error)
- func (h Handle) ProcessCwd() (string, error)
- func (h Handle) ProcessEnviron() ([]string, error)
- func (h Handle) ProcessExe() (string, error)
- func (h Handle) ProcessGids() ([]int32, error)
- func (h Handle) ProcessHostPid() (int32, error)
- func (h Handle) ProcessName() (string, error)
- func (h Handle) ProcessParent() (Handle, error)
- func (h Handle) ProcessPid() (int32, error)
- func (h Handle) ProcessPpid() (int32, error)
- func (h Handle) ProcessStatus() (string, error)
- func (h Handle) ProcessUids() ([]int32, error)
- func (h Handle) PsutilNewProcess(pid int32) (Handle, error)
- func (h Handle) PsutilPidExists(pid int32) (bool, error)
- func (h Handle) PsutilPids() ([]int32, error)
- func (h *Handle) Ptr() *IDType
- func (h Handle) RawPointer() unsafe.Pointer
- func (h Handle) Read(bytes Handle) (SizeType, error)
- func (h Handle) ReadAt(bytes Handle, off int64) (SizeType, error)
- func (h Handle) Readdir(path string) (Handle, error)
- func (h Handle) Readlink(path string) (string, error)
- func (h Handle) RemoteImageGetLayerDiffID(i int) (string, error)
- func (h Handle) RemoteImageNumLayers() int
- func (h Handle) RemoteImageOpenLayer(i int) (Handle, error)
- func (h Handle) RemoteLayerId() string
- func (h Handle) RemoteLayerOpaques() ([]string, error)
- func (h Handle) RemoteLayerWhiteouts() ([]string, error)
- func (h Handle) RemoteLoad(imageRef, username, password string, insecure bool) ([]string, error)
- func (h Handle) RuntimeFindContainerIDs(pattern string) ([]string, error)
- func (h Handle) RuntimeFindImageIDs(pattern string) ([]string, error)
- func (h Handle) RuntimeListContainerIDs() ([]string, error)
- func (h Handle) RuntimeListImageIDs() ([]string, error)
- func (h Handle) RuntimeOpenContainerByID(id string) (Handle, error)
- func (h Handle) RuntimeOpenImageByID(id string) (Handle, error)
- func (h Handle) Seek(offset int64, whence int) (int64, error)
- func (h Handle) Stat(path string) (Handle, error)
- func (h Handle) String() string
- func (h Handle) StringArray() []string
- func (h Handle) StringToBytes() Handle
- func (h Handle) SyscallError() syscall.Errno
- func (h Handle) SyscallErrorGetErrno() SizeType
- func (h Handle) TarballImageNumLayers() int
- func (h Handle) TarballImageOpenLayer(i int) (Handle, error)
- func (h Handle) TarballLayerId() string
- func (h Handle) TarballLayerOpaques() ([]string, error)
- func (h Handle) TarballLayerWhiteouts() ([]string, error)
- func (h Handle) TarballLoad(tarPath string) ([]string, error)
- func (h Handle) TarballRemoveImageByID(id string) error
- func (h Handle) Walk(path string, f WalkFunc) error
- func (h Handle) WrapError() *WrapError
- func (h Handle) Write(bytes Handle) (SizeType, error)
- func (h Handle) WriteAt(bytes Handle, off int64) (SizeType, error)
- type IDType
- type RuntimeError
- type SizeType
- type WalkFunc
- type WrapError
Constants ¶
View Source
const ( ENOMEM = RuntimeError(C.veinmind_ENOMEM) ENULLPTR = RuntimeError(C.veinmind_ENULLPTR) ENULLID = RuntimeError(C.veinmind_ENULLID) ENOCAP = RuntimeError(C.veinmind_ENOCAP) EPANIC = RuntimeError(C.veinmind_EPANIC) ERANGE = RuntimeError(C.veinmind_ERANGE) ERACE = RuntimeError(C.veinmind_ERACE) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorType ¶
type ErrorType = C.veinmind_err_t
type Handle ¶
type Handle IDType
Handle to the resource managed by the API binding.
func ContainerdMakeNewOptionList ¶ added in v1.1.0
func ContainerdMakeNewOptionList() Handle
func ContainerdNew ¶
func ContainerdWithConfigPath ¶ added in v1.1.0
func ContainerdWithRootDir ¶ added in v1.1.0
func ContainerdWithUniqueDesc ¶ added in v1.1.0
func DockerMakeNewOptionList ¶ added in v1.1.0
func DockerMakeNewOptionList() Handle
func DockerWithConfigPath ¶ added in v1.1.0
func DockerWithDataRootDir ¶ added in v1.1.0
func DockerWithUniqueDesc ¶ added in v1.1.0
func TarballNew ¶ added in v1.3.0
func (Handle) BytesToString ¶
BytesToString creates a string from bytes.
func (Handle) ContainerID ¶ added in v1.2.0
func (Handle) ContainerImageID ¶ added in v1.2.0
func (Handle) ContainerName ¶ added in v1.2.1
func (Handle) ContainerOCISpecMarshalJSON ¶ added in v1.2.0
func (Handle) ContainerOCIStateMarshalJSON ¶ added in v1.2.1
func (Handle) ContainerdUniqueDesc ¶ added in v1.1.0
func (Handle) DockerContainerConfig ¶ added in v1.2.1
func (Handle) DockerImageGetLayerDiffID ¶
func (Handle) DockerImageNumLayers ¶
func (Handle) DockerLayerID ¶
func (Handle) DockerLayerOpaques ¶ added in v1.5.0
func (Handle) DockerLayerWhiteouts ¶ added in v1.5.0
func (Handle) DockerUniqueDesc ¶ added in v1.1.0
func (Handle) ErrorMessage ¶
func (Handle) ErrorString ¶
func (Handle) ErrorUnwrap ¶
func (Handle) FileInfoModTime ¶
func (Handle) FileInfoMode ¶
func (Handle) FileInfoName ¶
func (Handle) FileInfoSize ¶
func (Handle) FileInfoSys ¶
func (Handle) ImageOCISpecV1MarshalJSON ¶
func (Handle) ImageRepoRefs ¶
func (Handle) ImageRepos ¶
func (Handle) Int32Array ¶ added in v1.2.0
Int32Array return the parsed array of int32 object.
func (Handle) IsEOFError ¶
func (Handle) IsOSPathError ¶
func (Handle) IsSyscallError ¶
func (Handle) IsWrapError ¶
func (Handle) OSPathError ¶
func (Handle) OSPathErrorGetOp ¶
func (Handle) OSPathErrorGetPath ¶
func (Handle) ProcessChildren ¶ added in v1.2.0
func (Handle) ProcessCmdline ¶ added in v1.2.0
func (Handle) ProcessCreateTime ¶ added in v1.2.1
func (Handle) ProcessCwd ¶ added in v1.2.0
func (Handle) ProcessEnviron ¶ added in v1.2.0
func (Handle) ProcessExe ¶ added in v1.2.0
func (Handle) ProcessGids ¶ added in v1.2.0
func (Handle) ProcessHostPid ¶ added in v1.2.1
func (Handle) ProcessName ¶ added in v1.2.0
func (Handle) ProcessParent ¶ added in v1.2.0
func (Handle) ProcessPid ¶ added in v1.2.0
func (Handle) ProcessPpid ¶ added in v1.2.0
func (Handle) ProcessStatus ¶ added in v1.2.1
func (Handle) ProcessUids ¶ added in v1.2.0
func (Handle) PsutilNewProcess ¶ added in v1.2.0
func (Handle) PsutilPidExists ¶ added in v1.2.0
func (Handle) PsutilPids ¶ added in v1.2.0
func (Handle) RawPointer ¶
RawPointer returns the raw pointer of the object.
func (Handle) RemoteImageGetLayerDiffID ¶ added in v1.5.1
func (Handle) RemoteImageNumLayers ¶ added in v1.4.0
func (Handle) RemoteImageOpenLayer ¶ added in v1.4.0
func (Handle) RemoteLayerId ¶ added in v1.4.0
func (Handle) RemoteLayerOpaques ¶ added in v1.5.0
func (Handle) RemoteLayerWhiteouts ¶ added in v1.5.0
func (Handle) RemoteLoad ¶ added in v1.4.0
func (Handle) RuntimeFindContainerIDs ¶ added in v1.2.0
func (Handle) RuntimeFindImageIDs ¶
func (Handle) RuntimeListContainerIDs ¶ added in v1.2.0
func (Handle) RuntimeListImageIDs ¶
func (Handle) RuntimeOpenContainerByID ¶ added in v1.2.0
func (Handle) RuntimeOpenImageByID ¶
func (Handle) StringArray ¶
StringArray returns the parsed array of string object.
func (Handle) StringToBytes ¶
StringToBytes creates a bytes from strin.
func (Handle) SyscallError ¶
Errno formats the error by converting it into syscall.Errno.
func (Handle) SyscallErrorGetErrno ¶
func (Handle) TarballImageNumLayers ¶ added in v1.3.6
func (Handle) TarballImageOpenLayer ¶ added in v1.3.6
func (Handle) TarballLayerId ¶ added in v1.3.6
func (Handle) TarballLayerOpaques ¶ added in v1.5.0
func (Handle) TarballLayerWhiteouts ¶ added in v1.5.0
func (Handle) TarballLoad ¶ added in v1.3.0
func (Handle) TarballRemoveImageByID ¶ added in v1.3.0
type IDType ¶
type IDType = C.veinmind_id_t
type RuntimeError ¶
type RuntimeError ErrorType
RuntimeError is the error that must be thrown out.
func (RuntimeError) Error ¶
func (r RuntimeError) Error() string
Click to show internal directories.
Click to hide internal directories.