Documentation
¶
Index ¶
- type Attributes
- type Client
- type ClientConfig
- type CustomPolicy
- type Data
- type Entitlements
- type Error
- type Finding
- type HTTPClient
- type Identity
- type IgnoreSettings
- type IssueMetadata
- type Meta
- type ProjectId
- type ReadIACOrgSettingsRequest
- type ReadIACOrgSettingsResponse
- type Remediation
- type ResourceInfo
- type RuleMetadata
- type ScanResult
- type Severity
- type ShareResultsRequest
- type ShareResultsResponse
- type Tag
- type Target
- type TargetFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config ClientConfig) *Client
func (*Client) ReadIACOrgSettings ¶
func (c *Client) ReadIACOrgSettings(ctx context.Context, request ReadIACOrgSettingsRequest) (_ *ReadIACOrgSettingsResponse, e error)
func (*Client) ShareResults ¶
func (c *Client) ShareResults(req ShareResultsRequest) (ShareResultsResponse, error)
type ClientConfig ¶
type ClientConfig struct { HTTPClient HTTPClient URL string }
type CustomPolicy ¶
type CustomPolicy struct {
Severity string `json:"severity"`
}
type Data ¶
type Data struct { Metadata RuleMetadata `json:"metadata"` IssueMetadata IssueMetadata `json:"issueMetadata"` }
type Entitlements ¶
type Error ¶
type IgnoreSettings ¶
type IssueMetadata ¶
type IssueMetadata struct { Type string `json:"type,omitempty"` File string `json:"file"` ResourcePath string `json:"resourcePath"` ResourceInfo ResourceInfo `json:"resourceInfo,omitempty"` LineNumber int `json:"lineNumber"` }
type Meta ¶
type Meta struct { IgnoreSettings IgnoreSettings `json:"ignoreSettings"` IsLicensesEnabled bool `json:"isLicensesEnabled"` IsPrivate bool `json:"isPrivate"` Org string `json:"org"` OrgPublicId string `json:"orgPublicId"` }
type ReadIACOrgSettingsRequest ¶
type ReadIACOrgSettingsRequest struct {
Org string
}
type ReadIACOrgSettingsResponse ¶
type ReadIACOrgSettingsResponse struct { CustomPolicies map[string]CustomPolicy `json:"customPolicies"` Entitlements map[string]bool `json:"entitlements"` Meta Meta `json:"meta"` }
type Remediation ¶
type ResourceInfo ¶
type RuleMetadata ¶
type RuleMetadata struct { PublicID string `json:"publicId"` Title string `json:"title"` Documentation string `json:"documentation,omitempty"` IsGeneratedByCustomRule bool `json:"isGeneratedByCustomRule,omitempty"` Description string `json:"description,omitempty"` Severity Severity `json:"severity"` Issue string `json:"issue"` Impact string `json:"impact"` Resolve string `json:"resolve"` References []string `json:"references"` Remediation *Remediation `json:"remediation,omitempty"` Compliance [][]string `json:"compliance,omitempty"` }
type ScanResult ¶
type ShareResultsRequest ¶
type ShareResultsRequest struct {}
type ShareResultsResponse ¶
type TargetFile ¶
type TargetFile string
Click to show internal directories.
Click to hide internal directories.