Documentation ¶
Index ¶
- Variables
- func CreateAWSCredsYaml(username string, accessKey string, secretKey string) (string, error)
- func CreateMAASCloudYaml(name string, endpoint string) (string, error)
- func CreateMAASCredsYaml(cloudName string, username string, maasOauth string) (string, error)
- type AWSCloud
- type AWSCredentials
- type CloudKind
- type Juju
- func (j *Juju) ClusterReady() (bool, error)
- func (j *Juju) ControllerReady() (bool, error)
- func (j *Juju) DestroyCluster() error
- func (j *Juju) DestroyComplete() (bool, error)
- func (j *Juju) GetKubeConfig() ([]byte, error)
- func (j *Juju) GetStatus() (string, error)
- func (j *Juju) SetAWSCreds() error
- func (j *Juju) SetMAASCloud() error
- func (j *Juju) SetMAASCreds() error
- func (j *Juju) Spinup() error
- type MaasCloud
- type MaasCredentials
- type Parallel
Constants ¶
This section is empty.
Variables ¶
var JujuDataPrefix = "/tmp/"
JujuDataPrefix is the path prefix used for the JUJU_DATA environment variable this path will store required juju state and should be persistent
Functions ¶
func CreateAWSCredsYaml ¶
CreateAWSCredsYaml is used to create the yaml string to pass to "juju add-credential"
func CreateMAASCloudYaml ¶
CreateMAASCloudYaml is used to create the yaml string to pass to "juju add-cloud"
Types ¶
type AWSCloud ¶
type AWSCloud struct {
Region string
}
AWSCloud information to be used with AWS Creds
type AWSCredentials ¶
AWSCredentials information
type Juju ¶
type Juju struct { Kind CloudKind // should be gogo.Aws or gogo.Maas - will be used to figure out which creds and cloud to set Name string Bundle string // ex "cs:bundle/canonical-kubernetes-193" MaasCl MaasCloud MaasCr MaasCredentials AwsCl AWSCloud AwsCr AWSCredentials }
Juju defines the cluster name, which bundle to use, and the manifest for credentials and cloud
func (*Juju) ClusterReady ¶
ClusterReady will check status and return true if cluster is running
func (*Juju) ControllerReady ¶
ControllerReady checks model status and returns bool
func (*Juju) DestroyCluster ¶
DestroyCluster will kill off one cluster
func (*Juju) DestroyComplete ¶
DestroyComplete checks juju for controllers to make sure none are left
func (*Juju) GetKubeConfig ¶
GetKubeConfig returns the kubeconfig file contents
func (*Juju) SetAWSCreds ¶
SetAWSCreds will grab and credential information and set it
func (*Juju) SetMAASCloud ¶
SetMAASCloud will run juju add-cloud with maasCloud yaml created above
func (*Juju) SetMAASCreds ¶
SetMAASCreds will pass in maas credentials to juju add-credential
type MaasCredentials ¶
MaasCredentials to be used with MaasCloud