podman

package
v0.0.0-...-743f219 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXTERNAL_NET = `` /* 1032-byte string literal not displayed */
View Source
var INTERNAL_NET = `` /* 636-byte string literal not displayed */

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultImage string `koanf:"default_image" validate:"required"`
	URI          string `koanf:"uri" validate:"uri,required"`
}

type Machine

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

func (*Machine) Attach

func (m *Machine) Attach(opts *driver.AttachOptions) (err error)

func (*Machine) CopyInFiles

func (m *Machine) CopyInFiles(hostlab string) error

func (*Machine) Exec

func (m *Machine) Exec(command string,
	opts *driver.ExecOptions) (err error)

func (*Machine) Exists

func (m *Machine) Exists() (bool, error)

func (*Machine) Id

func (m *Machine) Id() string

func (*Machine) Info

func (m *Machine) Info() (info driver.MachineInfo, err error)

func (*Machine) Logs

func (m *Machine) Logs(opts *driver.LogOptions) (err error)

func (*Machine) Name

func (m *Machine) Name() string

func (*Machine) Networks

func (m *Machine) Networks() ([]driver.Network, error)

func (*Machine) Remove

func (m *Machine) Remove() error

func (*Machine) Running

func (m *Machine) Running() bool

func (*Machine) Shell

func (m *Machine) Shell(opts *driver.ShellOptions) (err error)

func (*Machine) Start

func (m *Machine) Start(opts *driver.MachineConfig) (err error)

func (*Machine) State

func (m *Machine) State() (state driver.MachineState, err error)

func (*Machine) Stop

func (m *Machine) Stop(force bool) error

func (*Machine) WaitUntil

func (m *Machine) WaitUntil(timeout time.Duration,
	target, failOn *driver.MachineState) error

type Network

type Network struct {
	Namespace string
	// contains filtered or unexported fields
}

func (*Network) Create

func (n *Network) Create(opts *driver.NetConfig) (err error)

func (*Network) Exists

func (n *Network) Exists() (bool, error)

func (*Network) Id

func (n *Network) Id() string

func (*Network) Info

func (n *Network) Info() (nInfo driver.NetInfo, err error)

func (*Network) Name

func (n *Network) Name() string

func (*Network) Remove

func (n *Network) Remove() (err error)

func (*Network) Running

func (n *Network) Running() (running bool, err error)

func (*Network) Start

func (n *Network) Start() (err error)

func (*Network) Stop

func (n *Network) Stop() (err error)

type PodmanDriver

type PodmanDriver struct {
	Conn       context.Context
	Name       string // friendly name
	DriverName string
	Config     Config
}

func (*PodmanDriver) GetCLICommand

func (pd *PodmanDriver) GetCLICommand() (command *cobra.Command, err error)

func (*PodmanDriver) ListAllNamespaces

func (pd *PodmanDriver) ListAllNamespaces() (namespaces []string, err error)

func (*PodmanDriver) ListMachines

func (pd *PodmanDriver) ListMachines(namespace string, all bool) ([]driver.MachineInfo, error)

func (*PodmanDriver) ListNetworks

func (pd *PodmanDriver) ListNetworks(namespace string, all bool) (networks []driver.NetInfo, err error)

func (*PodmanDriver) Machine

func (pd *PodmanDriver) Machine(name, namespace string) (m driver.Machine,
	err error)

func (*PodmanDriver) Network

func (pd *PodmanDriver) Network(name, namespace string) (n driver.Network,
	err error)

func (*PodmanDriver) SetupDriver

func (pd *PodmanDriver) SetupDriver(conf map[string]interface{}) (err error)

Jump to

Keyboard shortcuts

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