Documentation ¶
Index ¶
- Constants
- func InitIssue(c *jira.Client, metaProject *jira.MetaProject, ...) (*jira.Issue, error)
- func IsK8s() bool
- type AWSSecurityHubClient
- type Action
- type Clock
- type DependencyTrackAction
- type DockerClient
- type EmailAction
- type ExecClient
- type Finding
- type HTTPClient
- type JiraAPI
- type KubernetesClient
- type NexusIqAction
- type OpsGenieAction
- type PagerdutyClient
- type Report
- type ServiceNowAction
- type SlackAction
- type SplunkAction
- type StdoutAction
- type TeamsAction
- type WebhookAction
Constants ¶
View Source
const ( KubernetesLabelKey = "labels" KubernetesAnnotationKey = "annotations" )
View Source
const (
ApplicationScopeOwner = "<%application_scope_owner%>"
)
View Source
const (
NotConfiguredSprintId = -1
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSSecurityHubClient ¶
type AWSSecurityHubClient struct { Name string // contains filtered or unexported fields }
func (AWSSecurityHubClient) GetLayoutProvider ¶
func (sh AWSSecurityHubClient) GetLayoutProvider() layout.LayoutProvider
func (AWSSecurityHubClient) GetName ¶
func (sh AWSSecurityHubClient) GetName() string
func (*AWSSecurityHubClient) Init ¶
func (sh *AWSSecurityHubClient) Init() error
func (AWSSecurityHubClient) Terminate ¶
func (sh AWSSecurityHubClient) Terminate() error
type DependencyTrackAction ¶
func (*DependencyTrackAction) GetLayoutProvider ¶
func (dta *DependencyTrackAction) GetLayoutProvider() layout.LayoutProvider
func (*DependencyTrackAction) GetName ¶
func (dta *DependencyTrackAction) GetName() string
func (*DependencyTrackAction) Init ¶
func (dta *DependencyTrackAction) Init() error
func (*DependencyTrackAction) Send ¶
func (dta *DependencyTrackAction) Send(content map[string]string) error
func (*DependencyTrackAction) Terminate ¶
func (dta *DependencyTrackAction) Terminate() error
type DockerClient ¶
type DockerClient struct { Name string ImageName string Cmd []string Volumes map[string]string Network string Env []string // contains filtered or unexported fields }
func (DockerClient) GetLayoutProvider ¶
func (d DockerClient) GetLayoutProvider() layout.LayoutProvider
func (DockerClient) GetName ¶
func (d DockerClient) GetName() string
func (*DockerClient) Init ¶
func (d *DockerClient) Init() error
func (DockerClient) Terminate ¶
func (d DockerClient) Terminate() error
type EmailAction ¶
type EmailAction struct { Name string User string Password string Host string Port int Sender string Recipients []string ClientHostName string UseMX bool // contains filtered or unexported fields }
func (*EmailAction) GetLayoutProvider ¶
func (email *EmailAction) GetLayoutProvider() layout.LayoutProvider
func (*EmailAction) GetName ¶
func (email *EmailAction) GetName() string
func (*EmailAction) Init ¶
func (email *EmailAction) Init() error
func (*EmailAction) Terminate ¶
func (email *EmailAction) Terminate() error
type ExecClient ¶
type ExecClient struct { ExecCmd execCmd Name string Env []string InputFile string ExecScript string Action []byte }
func (*ExecClient) GetLayoutProvider ¶
func (e *ExecClient) GetLayoutProvider() layout.LayoutProvider
func (*ExecClient) GetName ¶
func (e *ExecClient) GetName() string
func (*ExecClient) Init ¶
func (e *ExecClient) Init() error
func (*ExecClient) Terminate ¶
func (e *ExecClient) Terminate() error
type Finding ¶
type Finding struct { SchemaVersion string `json:"SchemaVersion,omitempty"` ID string `json:"Id,omitempty"` ProductArn string `json:"ProductArn,omitempty"` GeneratorID string `json:"GeneratorId,omitempty"` AwsAccountID string `json:"AwsAccountId,omitempty"` Types []string `json:"Types,omitempty"` CreatedAt string `json:"CreatedAt,omitempty"` UpdatedAt string `json:"UpdatedAt,omitempty"` Severity struct { Label string `json:"Label,omitempty"` } `json:"Severity,omitempty"` Title string `json:"Title,omitempty"` Description string `json:"Description,omitempty"` Remediation struct { Recommendation struct { Text string `json:"Text,omitempty"` URL string `json:"Url,omitempty"` } `json:"Recommendation,omitempty"` } `json:"Remediation,omitempty"` ProductFields struct { ProductName string `json:"Product Name,omitempty"` } `json:"ProductFields,omitempty"` Resources []struct { Type string `json:"Type,omitempty"` ID string `json:"Id,omitempty"` Partition string `json:"Partition,omitempty"` Region string `json:"Region,omitempty"` Details struct { Container struct { ImageName string `json:"ImageName,omitempty"` } `json:"Container,omitempty"` Other struct { CVEID string `json:"CVE ID,omitempty"` CVETitle string `json:"CVE Title,omitempty"` PkgName string `json:"PkgName,omitempty"` InstalledPackage string `json:"Installed Package,omitempty"` PatchedPackage string `json:"Patched Package,omitempty"` NvdCvssScoreV3 string `json:"NvdCvssScoreV3,omitempty"` NvdCvssVectorV3 string `json:"NvdCvssVectorV3,omitempty"` NvdCvssScoreV2 string `json:"NvdCvssScoreV2,omitempty"` NvdCvssVectorV2 string `json:"NvdCvssVectorV2,omitempty"` } `json:"Other,omitempty"` } `json:"Details,omitempty"` } `json:"Resources,omitempty"` RecordState string `json:"RecordState,omitempty"` }
type HTTPClient ¶
type HTTPClient struct { Name string Client http.Client URL *url.URL Method string BodyFile string BodyContent string Headers map[string][]string }
func (HTTPClient) GetLayoutProvider ¶
func (hc HTTPClient) GetLayoutProvider() layout.LayoutProvider
func (*HTTPClient) GetName ¶
func (hc *HTTPClient) GetName() string
func (*HTTPClient) Init ¶
func (hc *HTTPClient) Init() error
func (HTTPClient) Terminate ¶
func (hc HTTPClient) Terminate() error
type JiraAPI ¶
type JiraAPI struct { Name string Url string User string Password string Token string TlsVerify bool Issuetype string ProjectKey string Priority string Assignee []string Description string Summary string SprintName string SprintId int FixVersions []string AffectsVersions []string Labels []string Unknowns map[string]string BoardName string // contains filtered or unexported fields }
func (*JiraAPI) GetLayoutProvider ¶
func (jira *JiraAPI) GetLayoutProvider() layout.LayoutProvider
type KubernetesClient ¶
type KubernetesClient struct { Name string KubeNamespace string KubeConfigFile string KubeLabelSelector string KubeActions map[string]map[string]string // contains filtered or unexported fields }
func (KubernetesClient) GetLayoutProvider ¶
func (k KubernetesClient) GetLayoutProvider() layout.LayoutProvider
func (KubernetesClient) GetName ¶
func (k KubernetesClient) GetName() string
func (*KubernetesClient) Init ¶
func (k *KubernetesClient) Init() error
func (KubernetesClient) Terminate ¶
func (k KubernetesClient) Terminate() error
type NexusIqAction ¶
type NexusIqAction struct { Name string Url string User string Password string OrganizationId string }
func (*NexusIqAction) GetLayoutProvider ¶
func (nexus *NexusIqAction) GetLayoutProvider() layout.LayoutProvider
func (*NexusIqAction) GetName ¶
func (nexus *NexusIqAction) GetName() string
func (*NexusIqAction) Init ¶
func (nexus *NexusIqAction) Init() error
func (*NexusIqAction) Terminate ¶
func (nexus *NexusIqAction) Terminate() error
type OpsGenieAction ¶
type OpsGenieAction struct { Name string User string APIKey string Responders []string VisibleTo []string Tags []string Alias string Entity string PrioritySource string // contains filtered or unexported fields }
func (*OpsGenieAction) GetLayoutProvider ¶
func (ops *OpsGenieAction) GetLayoutProvider() layout.LayoutProvider
func (*OpsGenieAction) GetName ¶
func (ops *OpsGenieAction) GetName() string
func (*OpsGenieAction) Init ¶
func (ops *OpsGenieAction) Init() (err error)
func (*OpsGenieAction) Terminate ¶
func (*OpsGenieAction) Terminate() error
type PagerdutyClient ¶
type PagerdutyClient struct { Name string AuthToken string RoutingKey string // contains filtered or unexported fields }
func (*PagerdutyClient) GetLayoutProvider ¶
func (p *PagerdutyClient) GetLayoutProvider() layout.LayoutProvider
func (*PagerdutyClient) GetName ¶
func (p *PagerdutyClient) GetName() string
func (*PagerdutyClient) Init ¶
func (p *PagerdutyClient) Init() error
func (*PagerdutyClient) Terminate ¶
func (p *PagerdutyClient) Terminate() error
type ServiceNowAction ¶
type ServiceNowAction struct { Name string User string Password string Instance string Table string // contains filtered or unexported fields }
func (*ServiceNowAction) GetLayoutProvider ¶
func (sn *ServiceNowAction) GetLayoutProvider() layout.LayoutProvider
func (*ServiceNowAction) GetName ¶
func (sn *ServiceNowAction) GetName() string
func (*ServiceNowAction) Init ¶
func (sn *ServiceNowAction) Init() error
func (*ServiceNowAction) Terminate ¶
func (sn *ServiceNowAction) Terminate() error
type SlackAction ¶
type SlackAction struct { Name string KhulnasoftServer string Url string // contains filtered or unexported fields }
func (*SlackAction) GetLayoutProvider ¶
func (slack *SlackAction) GetLayoutProvider() layout.LayoutProvider
func (*SlackAction) GetName ¶
func (slack *SlackAction) GetName() string
func (*SlackAction) Init ¶
func (slack *SlackAction) Init() error
func (*SlackAction) Terminate ¶
func (slack *SlackAction) Terminate() error
type SplunkAction ¶
type SplunkAction struct { Name string Url string Token string EventLimit int TlsVerify bool // contains filtered or unexported fields }
func (*SplunkAction) GetLayoutProvider ¶
func (splunk *SplunkAction) GetLayoutProvider() layout.LayoutProvider
func (*SplunkAction) GetName ¶
func (splunk *SplunkAction) GetName() string
func (*SplunkAction) Init ¶
func (splunk *SplunkAction) Init() error
func (*SplunkAction) Terminate ¶
func (splunk *SplunkAction) Terminate() error
type StdoutAction ¶
type StdoutAction struct {
Name string
}
func (StdoutAction) GetLayoutProvider ¶
func (stdout StdoutAction) GetLayoutProvider() layout.LayoutProvider
func (StdoutAction) GetName ¶
func (stdout StdoutAction) GetName() string
func (StdoutAction) Init ¶
func (stdout StdoutAction) Init() error
func (StdoutAction) Terminate ¶
func (stdout StdoutAction) Terminate() error
type TeamsAction ¶
type TeamsAction struct { Name string KhulnasoftServer string Webhook string // contains filtered or unexported fields }
func (*TeamsAction) GetLayoutProvider ¶
func (teams *TeamsAction) GetLayoutProvider() layout.LayoutProvider
func (*TeamsAction) GetName ¶
func (teams *TeamsAction) GetName() string
func (*TeamsAction) Init ¶
func (teams *TeamsAction) Init() error
func (*TeamsAction) Terminate ¶
func (teams *TeamsAction) Terminate() error
type WebhookAction ¶
func (*WebhookAction) GetLayoutProvider ¶
func (webhook *WebhookAction) GetLayoutProvider() layout.LayoutProvider
func (*WebhookAction) GetName ¶
func (webhook *WebhookAction) GetName() string
func (*WebhookAction) Init ¶
func (webhook *WebhookAction) Init() error
func (*WebhookAction) Terminate ¶
func (webhook *WebhookAction) Terminate() error
Click to show internal directories.
Click to hide internal directories.