podman

package
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 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 ToNetworkInfo

func ToNetworkInfo(network *models.Network) *container.Network

func ToNetworkInfoList

func ToNetworkInfoList(networks []*models.Network) []*container.Network

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 VolumesToMounts

func VolumesToMounts(c *container.Container) []*models.Mount

func VolumesToNamedVolumes

func VolumesToNamedVolumes(c *container.Container) []*models.NamedVolume

Types

type PodmanRestClient

type PodmanRestClient struct {
	RestClient *runtime.Runtime
}

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 (p *PodmanRestClient) NetworkCreate(network *container.Network) (*container.Network, error)

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) Version

func (p *PodmanRestClient) Version() (*container.Version, error)

func (*PodmanRestClient) VolumeCreate

func (p *PodmanRestClient) VolumeCreate(volume *container.Volume) (*container.Volume, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL