modelconfig

package
v0.0.0-...-c01a90e Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

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

View Source
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.

Jump to

Keyboard shortcuts

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