burmilla

package
v0.0.0-...-796e579 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSSHKeys

func AddSSHKeys(b *Burmilla, keys []string) error

AddSSHKeys adds SSH key into the OS's configuration.

func ConfigExport

func ConfigExport(b *Burmilla) (*bosinit.Config, error)

ConfigExport exports the Bumilla OS's configuration.

func ConfigGet

func ConfigGet(b *Burmilla, k string) (string, error)

ConfigGet a particular field from the OS's configuration.

func ConfigMerge

func ConfigMerge(b *Burmilla, config *bosinit.Config) error

ConfigMerge merges a configuration into the existing one.

func ConfigMergeBad

func ConfigMergeBad(b *Burmilla, config *bosinit.Config) error

ConfigMergeBad merges the config into the OS's configuration. Not working yet.

func ConfigSet

func ConfigSet(b *Burmilla, k, v string) error

ConfigSet modifies the OS's configuration.

func GroupID

func GroupID(b *Burmilla, name string) (int, error)

GroupID returns the gid of a particular user

func HostIPs

func HostIPs(b *Burmilla, dev string) ([]string, error)

HostIPs returns the ip addresses of the given network device.

func ListOS

func ListOS(b *Burmilla) ([]string, error)

ListOS lists the avaiable OS versions.

func Mkdir

func Mkdir(b *Burmilla, dir, user string) error

Mkdir creates a directory in the console's file system.

func Uptime

func Uptime(b *Burmilla) (time.Duration, error)

Uptime returns the uptime of the system.

func UserID

func UserID(b *Burmilla, name string) (int, error)

UserID returns the uid of a particular user.

Types

type Burmilla

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

Burmilla provides the

func New

func New(d *dock.Client) *Burmilla

New creates a new burmilla stub.

func (*Burmilla) Console

func (b *Burmilla) Console() *dock.Cont

Console returns the console container.

func (*Burmilla) CopyInTarStream

func (b *Burmilla) CopyInTarStream(s *tarutil.Stream, target string) error

CopyInTarStream copies files into the console's filesystem.

func (*Burmilla) ExecOutput

func (b *Burmilla) ExecOutput(args []string) ([]byte, error)

ExecOutput executes a command on the OS's console and returns its output.

func (*Burmilla) ExecRet

func (b *Burmilla) ExecRet(args []string) (int, error)

ExecRet executes a command on the OS's console and returns its return value.

type DiskUsage

type DiskUsage struct {
	Total uint64
	Free  uint64
}

DiskUsage contains disk usage data.

func QueryDiskUsage

func QueryDiskUsage(b *Burmilla) (*DiskUsage, error)

QueryDiskUsage queries the disk's usage of the system.

Jump to

Keyboard shortcuts

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