systemimage

package
v0.0.0-...-2fed64a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package systemimage is a mimimal wrapper for the system-image dbus API.

Index

Constants

This section is empty.

Variables

View Source
var BusAddress bus.Address = bus.Address{
	Interface: "com.canonical.SystemImage",
	Path:      "/Service",
	Name:      "com.canonical.SystemImage",
}

system-image service lives on a well-known bus.Address

Functions

This section is empty.

Types

type InfoResult

type InfoResult struct {
	BuildNumber int32
	Device      string
	Channel     string
	// xxx channel_target missing
	LastUpdate    string
	VersionDetail map[string]string
	Raw           map[string]string
}

InfoResult holds the result of the system-image service Info method.

type SystemImage

type SystemImage interface {
	Information() (*InfoResult, error)
}

A SystemImage exposes the a subset of system-image service.

func New

func New(endp bus.Endpoint, log logger.Logger) SystemImage

New builds a new system-image service wrapper that uses the provided bus.Endpoint

Jump to

Keyboard shortcuts

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