dataplane

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 12 Imported by: 0

README

Overview

This package is a client for interacting with MSI-RP dataplane.

Swagger File

The client is built via the swagger file from MSI team. We use API version 2024-01-01.

Code Generation

To create the zz_generated_* files, run make generate from the root of this repository.

Documentation

Index

Constants

View Source
const (
	IdentityURLKey contextKey = msiIdentityURLHeader

	// Cloud Environments
	AzurePublicCloud = "AZUREPUBLICCLOUD"
	AzureUSGovCloud  = "AZUREUSGOVERNMENTCLOUD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CredRequestDefinition

type CredRequestDefinition struct {
	CustomClaims       *CustomClaims
	DelegatedResources []*string
	IdentityIDs        []*string
}

func (CredRequestDefinition) MarshalJSON

func (c CredRequestDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredRequestDefinition.

func (*CredRequestDefinition) UnmarshalJSON

func (c *CredRequestDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredRequestDefinition.

type CredentialsObject

type CredentialsObject struct {
	AuthenticationEndpoint     *string
	CannotRenewAfter           *string
	ClientID                   *string
	ClientSecret               *string
	ClientSecretURL            *string
	CustomClaims               *CustomClaims
	DelegatedResources         []*DelegatedResourceObject
	DelegationURL              *string
	ExplicitIdentities         []*NestedCredentialsObject
	InternalID                 *string
	MtlsAuthenticationEndpoint *string
	NotAfter                   *string
	NotBefore                  *string
	ObjectID                   *string
	RenewAfter                 *string
	TenantID                   *string
}

func (CredentialsObject) MarshalJSON

func (c CredentialsObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CredentialsObject.

func (*CredentialsObject) UnmarshalJSON

func (c *CredentialsObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CredentialsObject.

type CustomClaims

type CustomClaims struct {
	XMSAzNwperimid []*string
	XMSAzTm        *string
}

func (CustomClaims) MarshalJSON

func (c CustomClaims) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CustomClaims.

func (*CustomClaims) UnmarshalJSON

func (c *CustomClaims) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CustomClaims.

type DelegatedResourceObject

type DelegatedResourceObject struct {
	DelegationID       *string
	DelegationURL      *string
	ExplicitIdentities []*NestedCredentialsObject
	ImplicitIdentity   *NestedCredentialsObject
	InternalID         *string
	ResourceID         *string
}

func (DelegatedResourceObject) MarshalJSON

func (d DelegatedResourceObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DelegatedResourceObject.

func (*DelegatedResourceObject) UnmarshalJSON

func (d *DelegatedResourceObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DelegatedResourceObject.

type ErrorResponse

type ErrorResponse struct {
	Error *ErrorResponseError
}

func (ErrorResponse) MarshalJSON

func (e ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type ErrorResponseError

type ErrorResponseError struct {
	Code    *string
	Message *string
}

func (ErrorResponseError) MarshalJSON

func (e ErrorResponseError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponseError.

func (*ErrorResponseError) UnmarshalJSON

func (e *ErrorResponseError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseError.

type ManagedIdentityDataPlaneAPIClient

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

ManagedIdentityDataPlaneAPIClient contains the methods for the ManagedIdentityDataPlaneAPI group. Don't use this type directly, use a constructor function instead.

func NewClient

TODO - Add parameter to specify module name in azcore.NewClient() NewClient creates a new Managed Identity Dataplane API client

func (*ManagedIdentityDataPlaneAPIClient) Deleteidentity

Deleteidentity - If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2024-01-01

  • options - ManagedIdentityDataPlaneAPIClientDeleteidentityOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Deleteidentity method.

func (*ManagedIdentityDataPlaneAPIClient) Getcred

Getcred - If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2024-01-01

  • options - ManagedIdentityDataPlaneAPIClientGetcredOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Getcred method.

func (*ManagedIdentityDataPlaneAPIClient) Getcreds

Getcreds - If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2024-01-01

  • options - ManagedIdentityDataPlaneAPIClientGetcredsOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Getcreds method.

func (*ManagedIdentityDataPlaneAPIClient) Moveidentity

Moveidentity - If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2024-01-01

  • options - ManagedIdentityDataPlaneAPIClientMoveidentityOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Moveidentity method.

type ManagedIdentityDataPlaneAPIClientDeleteidentityOptions

type ManagedIdentityDataPlaneAPIClientDeleteidentityOptions struct {
}

ManagedIdentityDataPlaneAPIClientDeleteidentityOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Deleteidentity method.

type ManagedIdentityDataPlaneAPIClientDeleteidentityResponse

type ManagedIdentityDataPlaneAPIClientDeleteidentityResponse struct {
}

ManagedIdentityDataPlaneAPIClientDeleteidentityResponse contains the response from method ManagedIdentityDataPlaneAPIClient.Deleteidentity.

type ManagedIdentityDataPlaneAPIClientGetcredOptions

type ManagedIdentityDataPlaneAPIClientGetcredOptions struct {
}

ManagedIdentityDataPlaneAPIClientGetcredOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Getcred method.

type ManagedIdentityDataPlaneAPIClientGetcredResponse

type ManagedIdentityDataPlaneAPIClientGetcredResponse struct {
	CredentialsObject
}

ManagedIdentityDataPlaneAPIClientGetcredResponse contains the response from method ManagedIdentityDataPlaneAPIClient.Getcred.

type ManagedIdentityDataPlaneAPIClientGetcredsOptions

type ManagedIdentityDataPlaneAPIClientGetcredsOptions struct {
}

ManagedIdentityDataPlaneAPIClientGetcredsOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Getcreds method.

type ManagedIdentityDataPlaneAPIClientGetcredsResponse

type ManagedIdentityDataPlaneAPIClientGetcredsResponse struct {
	CredentialsObject
}

ManagedIdentityDataPlaneAPIClientGetcredsResponse contains the response from method ManagedIdentityDataPlaneAPIClient.Getcreds.

type ManagedIdentityDataPlaneAPIClientMoveidentityOptions

type ManagedIdentityDataPlaneAPIClientMoveidentityOptions struct {
}

ManagedIdentityDataPlaneAPIClientMoveidentityOptions contains the optional parameters for the ManagedIdentityDataPlaneAPIClient.Moveidentity method.

type ManagedIdentityDataPlaneAPIClientMoveidentityResponse

type ManagedIdentityDataPlaneAPIClientMoveidentityResponse struct {
	MoveIdentityResponse
}

ManagedIdentityDataPlaneAPIClientMoveidentityResponse contains the response from method ManagedIdentityDataPlaneAPIClient.Moveidentity.

type MoveIdentityResponse

type MoveIdentityResponse struct {
	IdentityURL *string
}

func (MoveIdentityResponse) MarshalJSON

func (m MoveIdentityResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MoveIdentityResponse.

func (*MoveIdentityResponse) UnmarshalJSON

func (m *MoveIdentityResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MoveIdentityResponse.

type MoveRequestBodyDefinition

type MoveRequestBodyDefinition struct {
	TargetResourceID *string
}

func (MoveRequestBodyDefinition) MarshalJSON

func (m MoveRequestBodyDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MoveRequestBodyDefinition.

func (*MoveRequestBodyDefinition) UnmarshalJSON

func (m *MoveRequestBodyDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MoveRequestBodyDefinition.

type NestedCredentialsObject

type NestedCredentialsObject struct {
	AuthenticationEndpoint     *string
	CannotRenewAfter           *string
	ClientID                   *string
	ClientSecret               *string
	ClientSecretURL            *string
	CustomClaims               *CustomClaims
	MtlsAuthenticationEndpoint *string
	NotAfter                   *string
	NotBefore                  *string
	ObjectID                   *string
	RenewAfter                 *string
	ResourceID                 *string
	TenantID                   *string
}

func (NestedCredentialsObject) MarshalJSON

func (n NestedCredentialsObject) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NestedCredentialsObject.

func (*NestedCredentialsObject) UnmarshalJSON

func (n *NestedCredentialsObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NestedCredentialsObject.

Jump to

Keyboard shortcuts

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