Documentation ¶
Index ¶
- Variables
- func MakeRequest(request Request) (body []byte, statusCode int, err error)
- type Conf
- func (clientConf *Conf) CreateInf(template []byte) (infID string, err error)
- func (clientConf *Conf) DestroyInf(infID string) error
- func (clientConf *Conf) GetAccessToken(refreshToken string) (token string, err error)
- func (clientConf Conf) GetConf(path string) Conf
- func (clientConf *Conf) GetInfOutputs(infID string) (outputs map[string]string, err error)
- func (clientConf *Conf) GetInfVMStates(infID string, vm string) (status string, err error)
- func (clientConf Conf) GetNewToken() (updatedConf Conf, err error)
- func (clientConf *Conf) GetRefreshToken() (RefreshToken string, err error)
- func (clientConf *Conf) ListInfIDs() (infIDs []map[string]string, err error)
- func (clientConf *Conf) PrepareAuthHeaders() string
- func (clientConf *Conf) UpdateInf(infID string, template []byte) error
- func (clientConf *Conf) Validate(template []byte) error
- type ConfCloud
- type ConfIM
- type ListIDStruct
- type OutputsStruct
- type RefreshRequest
- type RefreshTokenStruct
- type Request
- type StatusStruct
- type TokenRefreshConf
Constants ¶
This section is empty.
Variables ¶
View Source
var DecodeFields = map[string]string{
"ID": "id",
"Type": "type",
"Username": "username",
"Password": "password",
"Token": "token",
"Host": "host",
"Tenant": "tenant",
"AuthURL": "auth_url",
"AuthVersion": "auth_version",
"Domain": "domain",
"ServiceRegion": "service_region",
}
DecodeFields ..
Functions ¶
Types ¶
type Conf ¶
type Conf struct { Im ConfIM `yaml:"im"` Cloud ConfCloud `yaml:"cloud"` AllowRefresh TokenRefreshConf `yaml:"allowrefresh,omitempty"` }
Conf ..
func (*Conf) DestroyInf ¶
DestroyInf is a wrapper for Infrastructure creation
func (*Conf) GetAccessToken ¶
GetAccessToken ..
func (*Conf) GetInfOutputs ¶
GetInfOutputs get ...
func (*Conf) GetInfVMStates ¶
GetInfVMStates get ...
func (Conf) GetNewToken ¶
GetNewToken ..
func (*Conf) GetRefreshToken ¶
GetRefreshToken ..
func (*Conf) ListInfIDs ¶
ListInfIDs ..
func (*Conf) PrepareAuthHeaders ¶
PrepareAuthHeaders ..
type ConfCloud ¶
type ConfCloud struct { ID string `yaml:"id"` Type string `yaml:"type"` Username string `yaml:"username"` Password string `yaml:"password"` Host string `yaml:"host"` Tenant string `yaml:"tenant"` AuthURL string `yaml:"auth_url,omitempty"` AuthVersion string `yaml:"auth_version"` Domain string `yaml:"domain,omitempty"` ServiceRegion string `yaml:"service_region,omitempty"` }
ConfCloud ...
type ConfIM ¶
type ConfIM struct { ID string `yaml:"id"` Type string `yaml:"type"` Host string `yaml:"host"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` Token string `yaml:"token,omitempty"` }
ConfIM ..
type ListIDStruct ¶
ListIDStruct ..
type OutputsStruct ¶
OutputsStruct ...
type RefreshRequest ¶
type RefreshRequest struct { Endpoint string Audience string ClientID string ClientSecret string RefreshToken string AccessToken string }
RefreshRequest ..
type RefreshTokenStruct ¶
type RefreshTokenStruct struct { RefreshToken string `json:"refresh_token"` AccessToken string `json:"access_token"` }
RefreshTokenStruct ..
Click to show internal directories.
Click to hide internal directories.