podman

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerName

func ContainerName(vmName string) string

ContainerName returns the Podman container name for a given VM name.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) (*Client, error)

func (*Client) Context

func (c *Client) Context() context.Context

func (*Client) CreateVM

func (c *Client) CreateVM(vmName, launcherImage string, result *converter.VMIResult) (string, error)

func (*Client) EnsureImage

func (c *Client) EnsureImage(image string) error

func (*Client) ExistsVM

func (c *Client) ExistsVM(vmName string) (bool, error)

func (*Client) InspectVM

func (c *Client) InspectVM(vmName string) (*VMInfo, error)

func (*Client) ListVMs

func (c *Client) ListVMs() ([]VMInfo, error)

func (*Client) PullImage

func (c *Client) PullImage(image string) error

func (*Client) RemoveVM

func (c *Client) RemoveVM(vmName string, force bool) error

func (*Client) RunOneShotContainer

func (c *Client) RunOneShotContainer(image string, mounts []spec.Mount, entrypoint []string, command []string) (string, string, error)

func (*Client) StartVM

func (c *Client) StartVM(vmName string) error

func (*Client) StopVM

func (c *Client) StopVM(vmName string, timeoutSecs uint) error

type VMInfo

type VMInfo struct {
	Name              string
	ContainerID       string
	State             string
	Image             string
	SSHUser           string
	SSHKeysConfigured bool
	PortMappings      []nettypes.PortMapping
}

Jump to

Keyboard shortcuts

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