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 ¶
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.
Click to show internal directories.
Click to hide internal directories.