applens

package
v0.0.0-...-1737087 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLensClient

type AppLensClient interface {
	GetDetector(ctx context.Context, o *GetDetectorOptions) (*ResponseMessageEnvelope, error)
	ListDetectors(ctx context.Context, o *ListDetectorsOptions) (*ResponseMessageCollectionEnvelope, error)
}

AppLensClient is a minimal interface for azure AppLensClient

func NewAppLensClient

func NewAppLensClient(env *azureclient.AROEnvironment, cred azcore.TokenCredential) (AppLensClient, error)

NewAppLensClient returns a new AppLensClient

type Client

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

AppLens client is used to interact with the Azure AppLens service.

func NewClient

func NewClient(endpoint, issuerUrlTemplate, caName, scope string, cred azcore.TokenCredential, o *ClientOptions) (*Client, error)

NewClient creates a new instance of AppLens client with Azure AD access token authentication. It uses the default pipeline configuration. endpoint - The AppLens service endpoint to use. issuerUrlTemplate - The URL template to fetch the certs used by AppLens example: https://issuer.pki.azure.com/dsms/issuercertificates?getissuersv3&caName=%s caName - Is the certificate authority used by AppLens example: ame cred - The credential used to authenticate with the AppLens service. options - Optional AppLens client options. Pass nil to accept default values.

func (*Client) Endpoint

func (c *Client) Endpoint() string

Endpoint used to create the client.

func (*Client) GetDetector

GetDetector obtains detector information from AppLens. ctx - The context for the request. o - Options for Read operation.

func (*Client) ListDetectors

ListDetectors obtains the list of detectors for a service from AppLens. ctx - The context for the request. o - Options for Read operation.

type ClientOptions

type ClientOptions struct {
	azcore.ClientOptions
}

ClientOptions defines the options for the AppLens client.

func NewClientOptions

func NewClientOptions(certPool *x509.CertPool) *ClientOptions

type GetDetectorOptions

type GetDetectorOptions struct {
	ResourceID string
	DetectorID string
	Location   string
}

GetDetectorOptions includes options for GetDetector operation.

type ListDetectorsOptions

type ListDetectorsOptions struct {
	ResourceID string
	Location   string
}

ListDetectorOptions includes options for ListDetector operation.

type ResponseMessageCollectionEnvelope

type ResponseMessageCollectionEnvelope struct {
	Value []ResponseMessageEnvelope `json:"value,omitempty"`
}

type ResponseMessageEnvelope

type ResponseMessageEnvelope struct {
	Id         string      `json:"id,omitempty"`
	Name       string      `json:"name,omitempty"`
	Type       string      `json:"type,omitempty"`
	Location   string      `json:"location,omitempty"`
	Properties interface{} `json:"properties,omitempty"`
}

Jump to

Keyboard shortcuts

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