cloud

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RequestStatusOK is the stauts of a successful request
	RequestStatusOK = "ok"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Add a key pair to connect to hosts through ssh
	AddKeyPair(keyPairFilePath string) error
	// Get an OpenStack token
	GetToken() string
	// Get Application credentials
	GetCreds() (string, string)
}

Client is the client interface to the Cloud infrastructure

func GetClient

func GetClient(authURL string, getCredentialsFunc GetApplicationCredentialsFunc) (Client, error)

GetClient returns a DDI client for a given location

type GetApplicationCredentialsFunc

type GetApplicationCredentialsFunc func() (credsID, credsSecret string, err error)

GetApplicationCredentialsFunc is a type of function provided by the caller to get application credentials

Jump to

Keyboard shortcuts

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