Documentation ¶
Index ¶
- Constants
- func ComputeHmac256(message string, secret string) (string, error)
- func GenerateResultId(r *buildsecurity.Result) string
- type Client
- type Response
- type ResultIdToUrlMap
- type TwirpClient
- func (bc *TwirpClient) GetPoliciesForRepository(envConfig *models.Configuration, repoId string) ([]*buildsecurity.Policy, error)
- func (bc *TwirpClient) Upload(results []*buildsecurity.Result, tags map[string]string, ...) error
- func (bc *TwirpClient) UpsertRepository(envConfig *models.Configuration) (string, error)
Constants ¶
View Source
const AQUA_MSG = "[This comment was created by Aqua Pipeline]"
Variables ¶
This section is empty.
Functions ¶
func GenerateResultId ¶ added in v0.52.0
func GenerateResultId(r *buildsecurity.Result) string
Types ¶
type Client ¶
type Client interface { Upload([]*buildsecurity.Result, map[string]string, ResultIdToUrlMap, []*buildsecurity.Pipeline, map[string]*buildsecurity.PackageDependencies, *models.Configuration) error GetPoliciesForRepository(*models.Configuration, string) ([]*buildsecurity.Policy, error) UpsertRepository(*models.Configuration) (string, error) }
type ResultIdToUrlMap ¶ added in v0.52.0
type TwirpClient ¶
type TwirpClient struct {
// contains filtered or unexported fields
}
func (*TwirpClient) GetPoliciesForRepository ¶
func (bc *TwirpClient) GetPoliciesForRepository(envConfig *models.Configuration, repoId string) ([]*buildsecurity.Policy, error)
func (*TwirpClient) Upload ¶
func (bc *TwirpClient) Upload(results []*buildsecurity.Result, tags map[string]string, avdUrlMap ResultIdToUrlMap, pipelines []*buildsecurity.Pipeline, dependencies map[string]*buildsecurity.PackageDependencies, envConfig *models.Configuration) error
func (*TwirpClient) UpsertRepository ¶ added in v0.77.1
func (bc *TwirpClient) UpsertRepository(envConfig *models.Configuration) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.