Documentation
¶
Index ¶
- func GetIncidents(ctx context.Context, client AzureClient, req *GetIncidentsReq) (incidents plugindata.List, err error)
- func Plugin(version string, azureClientLoader AzureClientLoadFn, ...) *plugin.Schema
- func StringRef(val string) *string
- type AzureClient
- type AzureClientLoadFn
- type AzureOpenAIClient
- type AzureOpenAIClientLoadFn
- type GetIncidentsReq
- type MicrosoftGraphClient
- type MicrosoftGraphClientLoadFn
- type MicrosoftSecurityClient
- type MicrosoftSecurityClientLoadFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIncidents ¶
func GetIncidents(ctx context.Context, client AzureClient, req *GetIncidentsReq) (incidents plugindata.List, err error)
func Plugin ¶
func Plugin( version string, azureClientLoader AzureClientLoadFn, openAIClientLoader AzureOpenAIClientLoadFn, graphClientLoader MicrosoftGraphClientLoadFn, securityClientLoader MicrosoftSecurityClientLoadFn, ) *plugin.Schema
Types ¶
type AzureClient ¶
type AzureClientLoadFn ¶
func MakeDefaultAzureClientLoader ¶
func MakeDefaultAzureClientLoader(tokenFn client.AcquireTokenFn) AzureClientLoadFn
type AzureOpenAIClient ¶
type AzureOpenAIClient interface {
GetCompletions(
ctx context.Context,
body azopenai.CompletionsOptions,
options *azopenai.GetCompletionsOptions,
) (azopenai.GetCompletionsResponse, error)
}
type AzureOpenAIClientLoadFn ¶
type AzureOpenAIClientLoadFn func(azureOpenAIKey, azureOpenAIEndpoint string) (client AzureOpenAIClient, err error)
func MakeAzureOpenAIClientLoader ¶
func MakeAzureOpenAIClientLoader() AzureOpenAIClientLoadFn
type GetIncidentsReq ¶
type MicrosoftGraphClient ¶
type MicrosoftGraphClientLoadFn ¶
type MicrosoftGraphClientLoadFn func(ctx context.Context, apiVersion string, cfg *dataspec.Block) (client MicrosoftGraphClient, err error)
func MakeDefaultMicrosoftGraphClientLoader ¶
func MakeDefaultMicrosoftGraphClientLoader(tokenFn client.AcquireTokenFn) MicrosoftGraphClientLoadFn
type MicrosoftSecurityClient ¶
type MicrosoftSecurityClient interface {
QueryObjects(
ctx context.Context,
endpoint string,
queryParams url.Values,
size int,
) (objects plugindata.List, err error)
QueryObject(
ctx context.Context,
endpoint string,
queryParams url.Values,
) (object plugindata.Data, err error)
RunAdvancedQuery(
ctx context.Context,
query string,
) (object plugindata.Data, err error)
}
type MicrosoftSecurityClientLoadFn ¶
type MicrosoftSecurityClientLoadFn func(ctx context.Context, cfg *dataspec.Block) (client MicrosoftSecurityClient, err error)
func MakeDefaultMicrosoftSecurityClientLoader ¶
func MakeDefaultMicrosoftSecurityClientLoader(tokenFn client.AcquireTokenFn) MicrosoftSecurityClientLoadFn
Source Files
¶
Click to show internal directories.
Click to hide internal directories.