juju: github.com/juju/juju/provider/maas Index | Files

package maas

import "github.com/juju/juju/provider/maas"

Index

Package Files

config.go constraints.go credentials.go devices.go environ.go environprovider.go errors.go init.go instance.go instance_information.go interfaces.go maas2instance.go maas2storage.go storage.go userdata.go util.go volumes.go

Variables

var (
    ReleaseNodes         = releaseNodes
    DeploymentStatusCall = deploymentStatusCall
    GetMAAS2Controller   = getMAAS2Controller
)

func IsAuthorisationFailure Uses

func IsAuthorisationFailure(err error) bool

IsAuthorisationFailure determines if the given error has an authorisation failure.

func NewEnviron Uses

func NewEnviron(cloud environs.CloudSpec, cfg *config.Config, getCaps MaasCapabilities) (*maasEnviron, error)

func NewStorage Uses

func NewStorage(env *maasEnviron) storage.Storage

type MAASRenderer Uses

type MAASRenderer struct{}

func (MAASRenderer) Render Uses

func (MAASRenderer) Render(cfg cloudinit.CloudConfig, os jujuos.OSType) ([]byte, error)

type MaasCapabilities Uses

type MaasCapabilities func(client *gomaasapi.MAASObject, serverURL string) (set.Strings, error)

MaasCapabilities represents a function that gets the capabilities of a MAAS installation.

type MaasEnvironProvider Uses

type MaasEnvironProvider struct {

    // GetCapabilities is a function that connects to MAAS to return its set of
    // capabilities.
    GetCapabilities MaasCapabilities
    // contains filtered or unexported fields
}

func (MaasEnvironProvider) CloudSchema Uses

func (p MaasEnvironProvider) CloudSchema() *jsonschema.Schema

CloudSchema returns the schema for adding new clouds of this type.

func (MaasEnvironProvider) ConfigDefaults Uses

func (p MaasEnvironProvider) ConfigDefaults() schema.Defaults

ConfigDefaults returns the default values for the provider specific config attributes.

func (MaasEnvironProvider) ConfigSchema Uses

func (p MaasEnvironProvider) ConfigSchema() schema.Fields

ConfigSchema returns extra config attributes specific to this provider only.

func (MaasEnvironProvider) CredentialSchemas Uses

func (MaasEnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema

CredentialSchemas is part of the environs.ProviderCredentials interface.

func (MaasEnvironProvider) DetectCredentials Uses

func (MaasEnvironProvider) DetectCredentials() (*cloud.CloudCredential, error)

DetectCredentials is part of the environs.ProviderCredentials interface.

func (MaasEnvironProvider) DetectRegions Uses

func (p MaasEnvironProvider) DetectRegions() ([]cloud.Region, error)

DetectRegions is specified in the environs.CloudRegionDetector interface.

func (MaasEnvironProvider) FinalizeCredential Uses

func (MaasEnvironProvider) FinalizeCredential(_ environs.FinalizeCredentialContext, args environs.FinalizeCredentialParams) (*cloud.Credential, error)

FinalizeCredential is part of the environs.ProviderCredentials interface.

func (MaasEnvironProvider) Open Uses

func (MaasEnvironProvider) Open(args environs.OpenParams) (environs.Environ, error)

func (MaasEnvironProvider) Ping Uses

func (p MaasEnvironProvider) Ping(ctx context.ProviderCallContext, endpoint string) error

Ping tests the connection to the cloud, to verify the endpoint is valid.

func (MaasEnvironProvider) PrepareConfig Uses

func (p MaasEnvironProvider) PrepareConfig(args environs.PrepareConfigParams) (*config.Config, error)

PrepareConfig is specified in the EnvironProvider interface.

func (MaasEnvironProvider) Schema Uses

func (MaasEnvironProvider) Schema() environschema.Fields

Schema returns the configuration schema for an environment.

func (MaasEnvironProvider) Validate Uses

func (prov MaasEnvironProvider) Validate(cfg, oldCfg *config.Config) (*config.Config, error)

func (MaasEnvironProvider) Version Uses

func (MaasEnvironProvider) Version() int

Version is part of the EnvironProvider interface.

Package maas imports 53 packages (graph) and is imported by 42 packages. Updated 2019-12-11. Refresh now. Tools for package owners.