Documentation ¶
Index ¶
- type AzureServicePrincipalType
- func (spn *AzureServicePrincipalType) GetClientId() string
- func (spn *AzureServicePrincipalType) GetClientSecret() string
- func (spn *AzureServicePrincipalType) GetTenant() string
- func (spn *AzureServicePrincipalType) LoadFromFile(ctx context.Context) (err error)
- func (spn *AzureServicePrincipalType) Print(ctx context.Context)
- type AzureSession
- type GoogleApplicationCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureServicePrincipalType ¶
type AzureServicePrincipalType struct { ClientId string `json:"clientId"` ClientSecret string `json:"ClientSecret"` SubscriptionId string `json:"SubscriptionId"` TenantId string `json:"TenantId"` ActiveDirectoryEndpointUrl string `json:"ActiveDirectoryEndpointUrl"` ResourceManagerEndpointUrl string `json:"ResourceManagerEndpointUrl"` ActiveDirectoryGraphResourceId string `json:"ActiveDirectoryGraphResourceId"` SqlManagementEndpointUrl string `json:"SqlManagementEndpointUrl"` GalleryEndpointUrl string `json:"GalleryEndpointUrl"` ManagementEndpointUrl string `json:"ManagementEndpointUrl"` }
func NewAzureServicePrincipalType ¶
func NewAzureServicePrincipalType() *AzureServicePrincipalType
func (*AzureServicePrincipalType) GetClientId ¶
func (spn *AzureServicePrincipalType) GetClientId() string
func (*AzureServicePrincipalType) GetClientSecret ¶
func (spn *AzureServicePrincipalType) GetClientSecret() string
func (*AzureServicePrincipalType) GetTenant ¶
func (spn *AzureServicePrincipalType) GetTenant() string
func (*AzureServicePrincipalType) LoadFromFile ¶
func (spn *AzureServicePrincipalType) LoadFromFile(ctx context.Context) (err error)
func (*AzureServicePrincipalType) Print ¶
func (spn *AzureServicePrincipalType) Print(ctx context.Context)
type AzureSession ¶
type AzureSession struct { SubscriptionID string Authorizer autorest.Authorizer }
func NewSessionFromFile ¶
func NewSessionFromFile() (*AzureSession, error)
type GoogleApplicationCredentials ¶
type GoogleApplicationCredentials struct { Type string `json:"type"` ProjectId string `json:"project_id"` PrivateKeyId string `json:"private_key_id"` PrivateKey string `json:"private_key"` ClientEmail string `json:"client_email"` ClientId string `json:"client_id"` AuthUri string `json:"auth_uri"` TokenUri string `json:"token_uri"` AuthProviderX509CertUrl string `json:"auth_provider_x509_cert_url"` ClientX509CertUrl string `json:"client_x509_cert_url"` }
func NewGoogleApplicationCredentials ¶
func NewGoogleApplicationCredentials() *GoogleApplicationCredentials
func (*GoogleApplicationCredentials) GetClientEmail ¶
func (spn *GoogleApplicationCredentials) GetClientEmail() string
func (*GoogleApplicationCredentials) GetProjectId ¶
func (spn *GoogleApplicationCredentials) GetProjectId() string
func (*GoogleApplicationCredentials) LoadFromFile ¶
func (spn *GoogleApplicationCredentials) LoadFromFile(ctx context.Context) (err error)
func (*GoogleApplicationCredentials) Print ¶
func (spn *GoogleApplicationCredentials) Print(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.