machine1

package
v0.0.0-...-f8634c0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Integration with the systemd machined API. See http://www.freedesktop.org/wiki/Software/systemd/machined/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Object dbus.BusObject
	// contains filtered or unexported fields
}

Conn is a connection to systemds dbus endpoint.

func New

func New() (*Conn, error)

New() establishes a connection to the system bus and authenticates.

func (*Conn) GetImage

func (c *Conn) GetImage(name string) (dbus.BusObject, error)

func (*Conn) GetMachine

func (c *Conn) GetMachine(name string) (dbus.BusObject, error)

func (*Conn) ListImages

func (c *Conn) ListImages() ([]ImageInfo, error)

func (*Conn) RegisterMachine

func (c *Conn) RegisterMachine(name string, id []byte, service string, class string, pid int, root_directory string) error

RegisterMachine registers the container with the systemd-machined

type ImageInfo

type ImageInfo struct {
	Name, Type                                      string
	ReadOnly                                        bool
	CreationTimestamp, ModificationTimestamp, Usage uint64
	Object                                          dbus.BusObject
}

Jump to

Keyboard shortcuts

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