client

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppClient

type AppClient struct {
	// contains filtered or unexported fields
}

func NewMSGraphApplicationClient

func NewMSGraphApplicationClient(graphURI string, creds azcore.TokenCredential) (*AppClient, error)

NewMSGraphApplicationClient returns a new AppClient configured to interact with the Microsoft Graph API. It can be configured to target alternative national cloud deployments via graphURI. For details on the client configuration see https://learn.microsoft.com/en-us/graph/sdks/national-clouds

func (*AppClient) AddApplicationPassword

func (c *AppClient) AddApplicationPassword(ctx context.Context, applicationObjectID string, displayName string, endDateTime time.Time) (models.PasswordCredentialable, error)

func (*AppClient) GetApplication added in v0.16.0

func (c *AppClient) GetApplication(ctx context.Context, clientID string) (models.Applicationable, error)

func (*AppClient) RemoveApplicationPassword

func (c *AppClient) RemoveApplicationPassword(ctx context.Context, applicationObjectID string, keyID *uuid.UUID) error

type ComputeClient added in v0.16.0

type ComputeClient interface {
	Get(ctx context.Context, resourceGroupName string, vmName string, options *armcompute.VirtualMachinesClientGetOptions) (armcompute.VirtualMachinesClientGetResponse, error)
}

type MSGraphClient

type MSGraphClient interface {
	GetApplication(ctx context.Context, clientID string) (models.Applicationable, error)
	AddApplicationPassword(ctx context.Context, applicationObjectID string, displayName string, endDateTime time.Time) (models.PasswordCredentialable, error)
	RemoveApplicationPassword(ctx context.Context, applicationObjectID string, keyID *uuid.UUID) error
}

type MSIClient added in v0.16.0

type ProvidersClient added in v0.16.0

type ProvidersClient interface {
	Get(ctx context.Context, resourceProviderNamespace string, options *armresources.ProvidersClientGetOptions) (armresources.ProvidersClientGetResponse, error)
}

type ResourceClient added in v0.16.0

type ResourceClient interface {
	GetByID(ctx context.Context, resourceID, apiVersion string, options *armresources.ClientGetByIDOptions) (armresources.ClientGetByIDResponse, error)
}

type TokenVerifier added in v0.16.0

type TokenVerifier interface {
	Verify(ctx context.Context, token string) (*oidc.IDToken, error)
}

type VMSSClient added in v0.16.0

type VMSSClient interface {
	Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *armcompute.VirtualMachineScaleSetsClientGetOptions) (armcompute.VirtualMachineScaleSetsClientGetResponse, error)
}

Jump to

Keyboard shortcuts

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