Documentation
¶
Index ¶
- func CheckPolicyRestrictions(ctx context.Context, requestUrl string, payloadJson string) (interface{}, error)
- func Execute[ResponseT interface{}](ctx context.Context, client *Client, method string, url string, ...) (*ResponseT, error)
- func Preflight(ctx context.Context, model PreflightRequestModel) (interface{}, error)
- func PreflightInBatch(ctx context.Context, requests []types.RequestModel, concurrency int) []error
- type CheckPolicyRestrictionsRequestModel
- type CheckPolicyRestrictionsResponseModel
- type Client
- type ContentEvaluationResultModel
- type FieldRestriction
- type PolicyEvaluationModel
- type PreflightRequestModel
- type PreflightResponseModel
- type PropertiesModel
- type ResourceDetailsModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPolicyRestrictions ¶
func Preflight ¶
func Preflight(ctx context.Context, model PreflightRequestModel) (interface{}, error)
func PreflightInBatch ¶
Types ¶
type CheckPolicyRestrictionsRequestModel ¶
type CheckPolicyRestrictionsRequestModel struct {
ResourceDetails ResourceDetailsModel `json:"resourceDetails"`
IncludeAuditEffect bool `json:"includeAuditEffect"`
}
type CheckPolicyRestrictionsResponseModel ¶
type CheckPolicyRestrictionsResponseModel struct {
FieldRestrictions []FieldRestriction `json:"fieldRestrictions"`
ContentEvaluationResult ContentEvaluationResultModel `json:"contentEvaluationResult"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DefaultSharedClient ¶
type ContentEvaluationResultModel ¶
type ContentEvaluationResultModel struct {
PolicyEvaluations []PolicyEvaluationModel `json:"policyEvaluations"`
}
type FieldRestriction ¶
type PolicyEvaluationModel ¶
type PreflightRequestModel ¶
type PreflightRequestModel struct {
Provider string `json:"provider"`
Type string `json:"type"`
Location string `json:"location"`
Scope string `json:"scope"`
Resources []map[string]interface{} `json:"resources"`
}
func BuildPreflightRequestBody ¶
func BuildPreflightRequestBody(request types.RequestModel) (PreflightRequestModel, error)
type PreflightResponseModel ¶
type PreflightResponseModel struct {
Properties PropertiesModel `json:"properties"`
}
type PropertiesModel ¶
type PropertiesModel struct {
ValidatedResources []string `json:"validatedResources"`
}
type ResourceDetailsModel ¶
Click to show internal directories.
Click to hide internal directories.