Documentation
¶
Index ¶
- Constants
- type Client
- type Container
- type ContainerNetworkInfo
- type Image
- type Network
- type Port
- type Subnet
- type Version
- type VersionInfo
- type Volume
- func (v *Volume) CreateDataFiles(fileData map[string][]byte, overwrite bool) ([]*os.File, error)
- func (v *Volume) CreateFile(name string, data []byte, overwrite bool) (*os.File, error)
- func (v *Volume) CreateFiles(fileData map[string]string, overwrite bool) ([]*os.File, error)
- func (v *Volume) DeleteFile(name string, recursive bool) error
- func (v *Volume) GetLabels() map[string]string
- func (v *Volume) ListFiles() ([]os.DirEntry, error)
- func (v *Volume) ReadFile(name string) (string, error)
Constants ¶
View Source
const (
ContainerNetworkName = "skupper"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Version() (*Version, error)
ContainerList() ([]*Container, error)
ContainerInspect(id string) (*Container, error)
ContainerCreate(container *Container) error
ContainerRemove(id string) error
ContainerExec(id string, command []string) (string, error)
ContainerLogs(id string) (string, error)
ContainerStart(id string) error
ContainerStop(id string) error
ContainerRestart(id string) error
ImageList() ([]*Image, error)
ImageInspect(id string) (*Image, error)
ImagePull(id string) error
NetworkList() ([]*Network, error)
NetworkInspect(id string) (*Network, error)
NetworkCreate(network *Network) (*Network, error)
NetworkRemove(id string) error
NetworkConnect(id, container string, aliases ...string) error
NetworkDisconnect(id, container string) error
VolumeCreate(volume *Volume) (*Volume, error)
VolumeInspect(id string) (*Volume, error)
VolumeRemove(id string) error
VolumeList() ([]*Volume, error)
}
type Container ¶
type Container struct {
ID string
Name string
Pod string
Image string
Env map[string]string
Labels map[string]string
Annotations map[string]string
Networks map[string]ContainerNetworkInfo
Mounts []Volume
Ports []Port
EntryPoint []string
Command []string
RestartPolicy string
RestartCount int
Running bool
CreatedAt string
StartedAt string
ExitedAt string
ExitCode int
}
func (*Container) NetworkAliases ¶
func (*Container) NetworkNames ¶
type ContainerNetworkInfo ¶
type Version ¶
type Version struct {
Client VersionInfo
Server VersionInfo
}
type VersionInfo ¶
type Volume ¶
type Volume struct {
Name string
Source string
Destination string
Mode string
RW bool
Labels map[string]string
}
func (*Volume) CreateDataFiles ¶
func (*Volume) CreateFile ¶
func (*Volume) CreateFiles ¶
Click to show internal directories.
Click to hide internal directories.