coreconfig

package
v0.0.0-...-677ed08 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidUnitStatus signals that a unit is not returning a status
	// of "enabled" or "disabled".
	ErrInvalidUnitStatus = errors.New("invalid unit status")

	// ErrInvalidConfig is returned from Set when the value
	// provided is not a valid configuration string.
	ErrInvalidConfig = errors.New("invalid ubuntu-core configuration")
)

Functions

func Get

func Get() (rawConfig []byte, err error)

Get is a special configuration case for the system, for which there is no such entry in a snap.yaml to satisfy the snappy config interface. This implements getting the current configuration for ubuntu-core.

func Set

func Set(rawConfig []byte) (newRawConfig []byte, err error)

Set is used to configure settings for the system, this is meant to be used as an interface for snappy config to satisfy the ubuntu-core hook.

Types

This section is empty.

Jump to

Keyboard shortcuts

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