Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCredentials ¶
func SaveCredentials ¶
func SaveCredentials(profile string, pc *ProfileCredentials) error
Types ¶
type AuthTransport ¶
type AuthTransport struct {
Credentials *ProfileCredentials
Base http.RoundTripper
}
type Credentials ¶
type Credentials struct {
Profiles map[string]ProfileCredentials `json:"profiles"`
}
type ProfileCredentials ¶
type ProfileCredentials struct {
Method string `json:"method"`
Subdomain string `json:"subdomain"`
Email string `json:"email,omitempty"`
APIToken string `json:"api_token,omitempty"`
OAuthToken string `json:"oauth_token,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
}
func LoadCredentials ¶
func LoadCredentials(profile string) (*ProfileCredentials, error)
func ResolveCredentials ¶
func ResolveCredentials(profile string) (*ProfileCredentials, error)
Click to show internal directories.
Click to hide internal directories.