Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetPolicies(ctx context.Context) ([]PolicyListItem, error)
GetPolicy(ctx context.Context, name string) (*Policy, error)
CreateException(ctx context.Context, request ExceptionRequest) (*ExceptionResponse, error)
}
type Details ¶
type Details struct {
Title string `json:"title"`
Items []DetailsItem `json:"items"`
}
type DetailsItem ¶
type ExceptionPolicy ¶
type ExceptionPolicy struct {
Name string `json:"name"`
Rules []ExceptionRule `json:"rules"`
}
type ExceptionRequest ¶
type ExceptionRequest struct {
Resource Resource `json:"resource"`
Policies []*ExceptionPolicy `json:"policies"`
}
type ExceptionResponse ¶
type ExceptionRule ¶
type Policy ¶
type Policy struct {
Category string `json:"category"`
Namespace string `json:"namespace,omitempty"`
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
Severity string `json:"severity,omitempty"`
Engine *Engine `json:"engine,omitempty"`
SourceCode *SourceCode `json:"code,omitempty"`
References []Reference `json:"references,omitempty"`
Details []DetailsItem `json:"details,omitempty"`
Additional []Details `json:"additional,omitempty"`
}
type PolicyListItem ¶
type SourceCode ¶
Click to show internal directories.
Click to hide internal directories.