buildClient

package
v0.83.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AQUA_MSG = "[This comment was created by Aqua Pipeline]"

Variables

This section is empty.

Functions

func ComputeHmac256

func ComputeHmac256(message string, secret string) (string, error)

func GenerateResultId added in v0.52.0

func GenerateResultId(r *buildsecurity.Result) string

Types

type Client

func Get

func Get(scanPath, cmdName string, opts flag.Options) (Client, error)

type Response

type Response struct {
	Status  int      `json:"status"`
	Message string   `json:"message"`
	Data    string   `json:"data,omitempty"`
	Errors  []string `json:"errors,omitempty"`
}

type ResultIdToUrlMap added in v0.52.0

type ResultIdToUrlMap map[string]string

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL