Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHeaders ¶
FormatHeaders processes a headers object plus a deliminator, returning a string
func RedactHeaders ¶
RedactHeaders processes a headers object, returning a redacted list
Types ¶
type CloudCredentials ¶
type CloudCredentials struct { Global struct { AccessKey string `gcfg:"access-key"` SecretKey string `gcfg:"secret-key"` Region string `gcfg:"region"` ProjectName string `gcfg:"project-name"` ProjectId string `gcfg:"project-id"` Password string `gcfg:"password"` Username string `gcfg:"username"` AuthURL string `gcfg:"auth-url"` DomainID string `gcfg:"domain-id"` DomainName string `gcfg:"domain-name"` TenantID string `gcfg:"tenant-id"` } Vpc struct { Id string `gcfg:"id"` } CloudClient *golangsdk.ProviderClient }
CloudCredentials define
func LoadConfig ¶
func LoadConfig(configFile string) (cc CloudCredentials, err error)
LoadConfig from file
func (*CloudCredentials) SFSV2Client ¶
func (c *CloudCredentials) SFSV2Client() (*golangsdk.ServiceClient, error)
SFSV2Client return sfs v2 client
func (*CloudCredentials) Validate ¶
func (c *CloudCredentials) Validate() error
Validate CloudCredentials
type LogRoundTripper ¶
type LogRoundTripper struct { Rt http.RoundTripper OsDebug bool }
LogRoundTripper satisfies the http.RoundTripper interface and is used to customize the default http client RoundTripper to allow for logging.
Click to show internal directories.
Click to hide internal directories.