Versions in this module Expand all Collapse all v1 v1.2.8 Feb 22, 2023 v1.2.6 Feb 22, 2023 v1.2.5 Feb 22, 2023 v1.2.4 Feb 22, 2023 Changes in this version + const ContainerNetworkName + type Client interface + ContainerCreate func(container *Container) error + ContainerExec func(id string, command []string) (string, error) + ContainerInspect func(id string) (*Container, error) + ContainerList func() ([]*Container, error) + ContainerLogs func(id string) (string, error) + ContainerRemove func(id string) error + ContainerRestart func(id string) error + ContainerStart func(id string) error + ContainerStop func(id string) error + ImageInspect func(id string) (*Image, error) + ImageList func() ([]*Image, error) + ImagePull func(id string) error + NetworkConnect func(id, container string, aliases ...string) error + NetworkCreate func(network *Network) (*Network, error) + NetworkDisconnect func(id, container string) error + NetworkInspect func(id string) (*Network, error) + NetworkList func() ([]*Network, error) + NetworkRemove func(id string) error + Version func() (*Version, error) + VolumeCreate func(volume *Volume) (*Volume, error) + VolumeInspect func(id string) (*Volume, error) + VolumeList func() ([]*Volume, error) + VolumeRemove func(id string) error + type Container struct + Annotations map[string]string + Command []string + CreatedAt string + EntryPoint []string + Env map[string]string + ExitCode int + ExitedAt string + ID string + Image string + Labels map[string]string + Mounts []Volume + Name string + Networks map[string]ContainerNetworkInfo + Pod string + Ports []Port + RestartCount int + RestartPolicy string + Running bool + StartedAt string + func (c *Container) EnvSlice() []string + func (c *Container) FromEnv(env []string) + func (c *Container) NetworkAliases() map[string][]string + func (c *Container) NetworkNames() []string + type ContainerNetworkInfo struct + Aliases []string + Gateway string + ID string + IPAddress string + IPPrefixLen int + MacAddress string + type Image struct + Created string + Id string + Repository string + type Network struct + CreatedAt string + DNS bool + Driver string + ID string + Internal bool + Labels map[string]string + Name string + Options map[string]string + Subnets []*Subnet + type Port struct + Host string + HostIP string + Protocol string + Target string + type Subnet struct + Gateway string + Subnet string + type Version struct + Client VersionInfo + Server VersionInfo + type VersionInfo struct + APIVersion string + Version string + type Volume struct + Destination string + Labels map[string]string + Mode string + Name string + RW bool + Source string + 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)