Documentation ¶
Overview ¶
Package modelconfig provides core types that can be used for interacting with model config. It is expected that over time a lot of the keys and types defined in github.com/juju/juju/environs/config will be moved into this package.
Index ¶
Constants ¶
const ( // ContainerNetworkingMethodLocal sets and indicates that the operator of // the model has deemed that the local method be used for all container // networking within the model. ContainerNetworkingMethodLocal = ContainerNetworkingMethod("local") // ContainerNetworkingMethodProvider sets and indicates that the operator of // the model has deemed that the provider method be used for all // container networking within the model. ContainerNetworkingMethodProvider = ContainerNetworkingMethod("provider") // ContainerNetworkingMethodAuto set and indicates that the operator of // the model has deemed that the Juju controller should determine the best // container networking method for the model based on the cloud // that is in use. ContainerNetworkingMethodAuto = ContainerNetworkingMethod("") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerNetworkingMethod ¶
type ContainerNetworkingMethod string
ContainerNetworkingMethod defined a strong type for setting and reading the model config value for container networking method.
func (ContainerNetworkingMethod) String ¶
func (c ContainerNetworkingMethod) String() string
String implements the stringer interface returning a human readable string representation of the container networking method.
func (ContainerNetworkingMethod) Validate ¶
func (c ContainerNetworkingMethod) Validate() error
Validate checks that the value of ContainerNetworkingMethod is an understood value by the system. If the value is not valid an error satisfying errors.NotValid will be returned.