coreconfig

package
v0.0.0-...-0579a83 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: GPL-3.0 Imports: 13 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 string, err error)

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

func Set

func Set(rawConfig string) (newRawConfig string, 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