cloudauth

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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