legacy

package
v0.0.0-...-48c0a4e Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package legacy contains all the logic necessary to share scan results using the Registry API.

At the time of this writing, the Registry API for sharing results is being replaced with a corresponding functionality based on the Cloud API. This package is here for historical purposes and will probably be removed in the future.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryClient

type RegistryClient interface {
	ShareResults(req registry.ShareResultsRequest) (registry.ShareResultsResponse, error)
}

type ShareResults

type ShareResults struct {
	RegistryClient             RegistryClient
	Report                     bool
	AllowAnalytics             bool
	Policy                     string
	ProjectName                string
	ProjectBusinessCriticality *string
	ProjectEnvironment         *string
	ProjectLifecycle           *string
	ProjectTags                *string
	TargetReference            string
	RemoteRepoUrl              string
	GetWd                      func() (string, error)
	GetRepoRootDir             func(string) (string, error)
	GetOriginUrl               func(string) (string, error)
}

func (*ShareResults) ShareResults

func (p *ShareResults) ShareResults(scanResults *results.Results) (registry.ShareResultsResponse, error)

Jump to

Keyboard shortcuts

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