Documentation ¶
Index ¶
- Variables
- type Google
- func (l *Google) Bootstrap() bool
- func (l *Google) BootstrapConstraints() map[string]string
- func (l *Google) CloudName() string
- func (l *Google) Credentials() map[string]interface{}
- func (l *Google) GroupName() string
- func (l *Google) ModelDefaults() map[string]string
- func (l *Google) Name() string
- func (l *Google) Prepare() error
- func (l *Google) Restore() error
- type K8s
- func (k *K8s) Bootstrap() bool
- func (m *K8s) BootstrapConstraints() map[string]string
- func (k *K8s) CloudName() string
- func (m K8s) Credentials() map[string]interface{}
- func (k *K8s) GroupName() string
- func (m *K8s) ModelDefaults() map[string]string
- func (k *K8s) Name() string
- func (k *K8s) Prepare() error
- func (k *K8s) Restore() error
- type LXD
- func (l *LXD) Bootstrap() bool
- func (l *LXD) BootstrapConstraints() map[string]string
- func (l *LXD) CloudName() string
- func (l *LXD) Credentials() map[string]interface{}
- func (l *LXD) GroupName() string
- func (l *LXD) ModelDefaults() map[string]string
- func (l *LXD) Name() string
- func (l *LXD) Prepare() error
- func (l *LXD) Restore() error
- type MicroK8s
- func (m *MicroK8s) Bootstrap() bool
- func (m *MicroK8s) BootstrapConstraints() map[string]string
- func (m *MicroK8s) CloudName() string
- func (m MicroK8s) Credentials() map[string]interface{}
- func (m *MicroK8s) GroupName() string
- func (m *MicroK8s) ModelDefaults() map[string]string
- func (m *MicroK8s) Name() string
- func (m *MicroK8s) Prepare() error
- func (m *MicroK8s) Restore() error
- type Provider
Constants ¶
This section is empty.
Variables ¶
var SupportedProviders []string = []string{
"k8s",
"google",
"lxd",
"microk8s",
}
SupportedProviders is a list of stringified names of supported providers.
Functions ¶
This section is empty.
Types ¶
type Google ¶ added in v0.6.0
type Google struct {
// contains filtered or unexported fields
}
Google represents a Google cloud to bootstrap.
func (*Google) Bootstrap ¶ added in v0.6.0
Bootstrap reports whether a Juju controller should be bootstrapped on Google.
func (*Google) BootstrapConstraints ¶ added in v0.9.0
BootstrapConstraints reports the Juju bootstrap-constraints specific to the provider.
func (*Google) CloudName ¶ added in v0.6.0
CloudName reports the name of the provider as Juju sees it.
func (*Google) Credentials ¶ added in v0.6.0
Credentials reports the section of Juju's credentials.yaml for the provider.
func (*Google) GroupName ¶ added in v0.6.0
GroupName reports the name of the POSIX group with permissions over the Google socket.
func (*Google) ModelDefaults ¶ added in v0.9.0
ModelDefaults reports the Juju model-defaults specific to the provider.
func (*Google) Name ¶ added in v0.6.0
Name reports the name of the provider for Concierge's purposes.
type K8s ¶ added in v0.8.0
type K8s struct { Channel string Features map[string]map[string]string // contains filtered or unexported fields }
K8s represents a K8s install on a given machine.
func (*K8s) Bootstrap ¶ added in v0.8.0
Bootstrap reports whether a Juju controller should be bootstrapped onto the provider.
func (*K8s) BootstrapConstraints ¶ added in v0.9.0
BootstrapConstraints reports the Juju bootstrap-constraints specific to the provider.
func (K8s) Credentials ¶ added in v0.8.0
Credentials reports the section of Juju's credentials.yaml for the provider
func (*K8s) GroupName ¶ added in v0.8.0
GroupName reports the name of the POSIX group with permission to use K8s.
func (*K8s) ModelDefaults ¶ added in v0.9.0
ModelDefaults reports the Juju model-defaults specific to the provider.
type LXD ¶
type LXD struct { Channel string // contains filtered or unexported fields }
LXD represents a LXD install on a given machine.
func (*LXD) Bootstrap ¶ added in v0.4.0
Bootstrap reports whether a Juju controller should be bootstrapped on LXD.
func (*LXD) BootstrapConstraints ¶ added in v0.9.0
BootstrapConstraints reports the Juju bootstrap-constraints specific to the provider.
func (*LXD) Credentials ¶ added in v0.6.0
Credentials reports the section of Juju's credentials.yaml for the provider
func (*LXD) GroupName ¶
GroupName reports the name of the POSIX group with permissions over the LXD socket.
func (*LXD) ModelDefaults ¶ added in v0.9.0
ModelDefaults reports the Juju model-defaults specific to the provider.
type MicroK8s ¶
MicroK8s represents a MicroK8s install on a given machine.
func NewMicroK8s ¶
NewMicroK8s constructs a new MicroK8s provider instance.
func (*MicroK8s) Bootstrap ¶ added in v0.4.0
Bootstrap reports whether a Juju controller should be bootstrapped onto the provider.
func (*MicroK8s) BootstrapConstraints ¶ added in v0.9.0
BootstrapConstraints reports the Juju bootstrap-constraints specific to the provider.
func (MicroK8s) Credentials ¶ added in v0.6.0
Credentials reports the section of Juju's credentials.yaml for the provider
func (*MicroK8s) GroupName ¶
GroupName reports the name of the POSIX group with permission to use MicroK8s.
func (*MicroK8s) ModelDefaults ¶ added in v0.9.0
ModelDefaults reports the Juju model-defaults specific to the provider.
type Provider ¶
type Provider interface { // Prepare is used for installing/configuring the provider. Prepare() error // Restore is used for uninstalling the provider. Restore() error // Name reports the name of the provider used internally by concierge. Name() string // Bootstrap reports whether or not a Juju controller should be bootstrapped on the provider. Bootstrap() bool // CloudName reports name of the provider as Juju sees it. CloudName() string // GroupName reports the name of a POSIX user group that can be used // to allow non-root users to interact with the provider (where applicable). GroupName() string // Credentials reports the section of Juju's credentials.yaml for the provider. Credentials() map[string]interface{} // ModelDefaults reports the Juju model-defaults specific to the provider. ModelDefaults() map[string]string // BootstrapConstraints reports the Juju bootstrap-constraints specific to the provider. BootstrapConstraints() map[string]string }
Provider describes the set of methods expected to be available on a provider that concierge can try to bootstrap Juju onto.