Documentation ¶
Index ¶
- Constants
- func FromCreatedToVolume(created *volumes.VolumeCreateLibpodCreated) *container.Volume
- func FromInspectContainer(c containers.ContainerInspectLibpodOKBody) *container.Container
- func FromInspectToVolume(vi *volumes.VolumeInspectLibpodOK) *container.Volume
- func FromListContainer(c models.ListContainer) *container.Container
- func FromListToVolume(vi *volumes.VolumeListLibpodOK) []*container.Volume
- func ToNetworkInfo(network *models.Network) *container.Network
- func ToNetworkInfoList(networks []*models.Network) []*container.Network
- func ToPortmappings(c *container.Container) []*models.PortMapping
- func ToSpecGenerator(c *container.Container) *models.SpecGenerator
- func ToVolumeCreateOptions(v *container.Volume) *models.VolumeCreateOptions
- func VolumesToMounts(c *container.Container) []*models.Mount
- func VolumesToNamedVolumes(c *container.Container) []*models.NamedVolume
- type PodmanRestClient
- func (p *PodmanRestClient) ContainerCreate(container *container.Container) error
- func (p *PodmanRestClient) ContainerExec(id string, command []string) (string, error)
- func (p *PodmanRestClient) ContainerInspect(id string) (*container.Container, error)
- func (p *PodmanRestClient) ContainerList() ([]*container.Container, error)
- func (p *PodmanRestClient) ContainerLogs(id string) (string, error)
- func (p *PodmanRestClient) ContainerRemove(name string) error
- func (p *PodmanRestClient) ContainerRestart(name string) error
- func (p *PodmanRestClient) ContainerStart(name string) error
- func (p *PodmanRestClient) ContainerStop(name string) error
- func (p *PodmanRestClient) ImageInspect(id string) (*container.Image, error)
- func (p *PodmanRestClient) ImageList() ([]*container.Image, error)
- func (p *PodmanRestClient) ImagePull(id string) error
- func (p *PodmanRestClient) NetworkConnect(id, container string, aliases ...string) error
- func (p *PodmanRestClient) NetworkCreate(network *container.Network) (*container.Network, error)
- func (p *PodmanRestClient) NetworkDisconnect(id, container string) error
- func (p *PodmanRestClient) NetworkInspect(id string) (*container.Network, error)
- func (p *PodmanRestClient) NetworkList() ([]*container.Network, error)
- func (p *PodmanRestClient) NetworkRemove(id string) error
- func (p *PodmanRestClient) ResponseIDReader(httpClient *runtime2.ClientOperation)
- func (p *PodmanRestClient) Version() (*container.Version, error)
- func (p *PodmanRestClient) VolumeCreate(volume *container.Volume) (*container.Volume, error)
- func (p *PodmanRestClient) VolumeInspect(id string) (*container.Volume, error)
- func (p *PodmanRestClient) VolumeList() ([]*container.Volume, error)
- func (p *PodmanRestClient) VolumeRemove(id string) error
Constants ¶
View Source
const ( DEFAULT_BASE_PATH = "/v4.0.0" DefaultNetworkDriver = "bridge" )
Variables ¶
This section is empty.
Functions ¶
func FromCreatedToVolume ¶
func FromCreatedToVolume(created *volumes.VolumeCreateLibpodCreated) *container.Volume
func FromInspectContainer ¶
func FromInspectContainer(c containers.ContainerInspectLibpodOKBody) *container.Container
func FromInspectToVolume ¶
func FromInspectToVolume(vi *volumes.VolumeInspectLibpodOK) *container.Volume
func FromListContainer ¶
func FromListContainer(c models.ListContainer) *container.Container
func FromListToVolume ¶
func FromListToVolume(vi *volumes.VolumeListLibpodOK) []*container.Volume
func ToPortmappings ¶
func ToPortmappings(c *container.Container) []*models.PortMapping
func ToSpecGenerator ¶
func ToSpecGenerator(c *container.Container) *models.SpecGenerator
func ToVolumeCreateOptions ¶
func ToVolumeCreateOptions(v *container.Volume) *models.VolumeCreateOptions
func VolumesToNamedVolumes ¶
func VolumesToNamedVolumes(c *container.Container) []*models.NamedVolume
Types ¶
type PodmanRestClient ¶
func NewPodmanClient ¶
func NewPodmanClient(endpoint, basePath string) (*PodmanRestClient, error)
func (*PodmanRestClient) ContainerCreate ¶
func (p *PodmanRestClient) ContainerCreate(container *container.Container) error
func (*PodmanRestClient) ContainerExec ¶
func (p *PodmanRestClient) ContainerExec(id string, command []string) (string, error)
func (*PodmanRestClient) ContainerInspect ¶
func (p *PodmanRestClient) ContainerInspect(id string) (*container.Container, error)
func (*PodmanRestClient) ContainerList ¶
func (p *PodmanRestClient) ContainerList() ([]*container.Container, error)
func (*PodmanRestClient) ContainerLogs ¶
func (p *PodmanRestClient) ContainerLogs(id string) (string, error)
func (*PodmanRestClient) ContainerRemove ¶
func (p *PodmanRestClient) ContainerRemove(name string) error
func (*PodmanRestClient) ContainerRestart ¶
func (p *PodmanRestClient) ContainerRestart(name string) error
func (*PodmanRestClient) ContainerStart ¶
func (p *PodmanRestClient) ContainerStart(name string) error
func (*PodmanRestClient) ContainerStop ¶
func (p *PodmanRestClient) ContainerStop(name string) error
func (*PodmanRestClient) ImageInspect ¶
func (p *PodmanRestClient) ImageInspect(id string) (*container.Image, error)
func (*PodmanRestClient) ImageList ¶
func (p *PodmanRestClient) ImageList() ([]*container.Image, error)
func (*PodmanRestClient) ImagePull ¶
func (p *PodmanRestClient) ImagePull(id string) error
func (*PodmanRestClient) NetworkConnect ¶
func (p *PodmanRestClient) NetworkConnect(id, container string, aliases ...string) error
func (*PodmanRestClient) NetworkCreate ¶
func (*PodmanRestClient) NetworkDisconnect ¶
func (p *PodmanRestClient) NetworkDisconnect(id, container string) error
func (*PodmanRestClient) NetworkInspect ¶
func (p *PodmanRestClient) NetworkInspect(id string) (*container.Network, error)
func (*PodmanRestClient) NetworkList ¶
func (p *PodmanRestClient) NetworkList() ([]*container.Network, error)
func (*PodmanRestClient) NetworkRemove ¶
func (p *PodmanRestClient) NetworkRemove(id string) error
func (*PodmanRestClient) ResponseIDReader ¶
func (p *PodmanRestClient) ResponseIDReader(httpClient *runtime2.ClientOperation)
func (*PodmanRestClient) VolumeCreate ¶
func (*PodmanRestClient) VolumeInspect ¶
func (p *PodmanRestClient) VolumeInspect(id string) (*container.Volume, error)
func (*PodmanRestClient) VolumeList ¶
func (p *PodmanRestClient) VolumeList() ([]*container.Volume, error)
func (*PodmanRestClient) VolumeRemove ¶
func (p *PodmanRestClient) VolumeRemove(id string) error
Click to show internal directories.
Click to hide internal directories.