Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureClient ¶
type AzureClient struct {
// contains filtered or unexported fields
}
AzureClient contains the Azure go-sdk Client.
func (*AzureClient) Get ¶
func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, name string) (armmsi.Identity, error)
Get returns a managed service identity.
func (*AzureClient) GetClientID ¶
GetClientID returns the client ID of a managed service identity, given its full URL identifier.
type Client ¶ added in v1.7.0
type Client interface { Get(ctx context.Context, resourceGroupName, name string) (armmsi.Identity, error) GetClientID(ctx context.Context, providerID string) (string, error) }
Client wraps go-sdk.
func NewClient ¶
func NewClient(auth azure.Authorizer) (Client, error)
NewClient creates a new MSI client from an authorizer.
func NewClientBySub ¶ added in v1.13.4
func NewClientBySub(auth azure.Authorizer, subscriptionID string) (Client, error)
NewClientBySub creates a new MSI client with a given subscriptionID.
Directories ¶
Path | Synopsis |
---|---|
Package mock_identities is a generated GoMock package.
|
Package mock_identities is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.