Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TenantId = os.Getenv("ARM_TENANT_ID") ClientId = os.Getenv("ARM_CLIENT_ID") ClientCertificate = os.Getenv("ARM_CLIENT_CERTIFICATE") ClientCertificatePath = os.Getenv("ARM_CLIENT_CERTIFICATE_PATH") ClientCertPassword = os.Getenv("ARM_CLIENT_CERTIFICATE_PASSWORD") ClientSecret = os.Getenv("ARM_CLIENT_SECRET") Environment = envDefault("ARM_ENVIRONMENT", "global") GitHubTokenURL = os.Getenv("ACTIONS_ID_TOKEN_REQUEST_URL") GitHubToken = os.Getenv("ACTIONS_ID_TOKEN_REQUEST_TOKEN") IdToken = os.Getenv("ARM_OIDC_TOKEN") CustomManagedIdentityEndpoint = os.Getenv("ARM_MSI_ENDPOINT") ManagedIdentityToken = os.Getenv("ARM_MSI_TOKEN") )
Functions ¶
func Base64DecodeCertificate ¶
Types ¶
type Connection ¶
type Connection struct { AuthConfig auth.Credentials Authorizer auth.Authorizer Claims *claims.Claims }
func NewConnection ¶
func NewConnection(t *testing.T) *Connection
NewConnection configures and returns a Connection for use in tests.
func (*Connection) Authorize ¶
func (c *Connection) Authorize(ctx context.Context, t *testing.T, api environments.Api)
Authorize configures an Authorizer for the Connection
Click to show internal directories.
Click to hide internal directories.