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) GetDetector ¶
func (c *Client) GetDetector( ctx context.Context, o *GetDetectorOptions) (*ResponseMessageEnvelope, error)
GetDetector obtains detector information from AppLens. ctx - The context for the request. o - Options for Read operation.
func (*Client) ListDetectors ¶
func (c *Client) ListDetectors( ctx context.Context, o *ListDetectorsOptions) (*ResponseMessageCollectionEnvelope, error)
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 ¶
GetDetectorOptions includes options for GetDetector operation.
type ListDetectorsOptions ¶
ListDetectorOptions includes options for ListDetector operation.
type ResponseMessageCollectionEnvelope ¶
type ResponseMessageCollectionEnvelope struct {
Value []ResponseMessageEnvelope `json:"value,omitempty"`
}