modelconfig

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	common.BlockGetter
	ControllerTag() names.ControllerTag
	ModelTag() names.ModelTag
	ModelConfigValues() (config.ConfigValues, error)
	UpdateModelConfig(map[string]interface{}, []string, state.ValidateConfigFunc) error
}

Backend contains the state.State methods used in this package, allowing stubs to be created for testing.

func NewStateBackend

func NewStateBackend(st *state.State) Backend

NewStateBackend creates a backend for the facade to use.

type ModelConfigAPI

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

ModelConfigAPI is the endpoint which implements the model config facade.

func NewModelConfigAPI

func NewModelConfigAPI(backend Backend, authorizer facade.Authorizer) (*ModelConfigAPI, error)

NewModelConfigAPI creates a new instance of the ModelConfig Facade.

func (*ModelConfigAPI) ModelGet

func (c *ModelConfigAPI) ModelGet() (params.ModelConfigResults, error)

ModelGet implements the server-side part of the get-model-config CLI command.

func (*ModelConfigAPI) ModelSet

func (c *ModelConfigAPI) ModelSet(args params.ModelSet) error

ModelSet implements the server-side part of the set-model-config CLI command.

func (*ModelConfigAPI) ModelUnset

func (c *ModelConfigAPI) ModelUnset(args params.ModelUnset) error

ModelUnset implements the server-side part of the set-model-config CLI command.

Jump to

Keyboard shortcuts

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