identities

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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 NewClient

func NewClient(auth azure.Authorizer) *AzureClient

NewClient creates a new MSI client from auth info.

func (*AzureClient) Get

func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, name string) (msi.Identity, error)

Get returns a managed service identity.

func (*AzureClient) GetClientID

func (ac *AzureClient) GetClientID(ctx context.Context, providerID string) (string, error)

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) (msi.Identity, error)
	GetClientID(ctx context.Context, providerID string) (string, error)
}

Client wraps go-sdk.

Directories

Path Synopsis
Package mock_identities is a generated GoMock package.
Package mock_identities is a generated GoMock package.

Jump to

Keyboard shortcuts

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