client

package
v0.69.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCustomHeaders added in v0.4.0

func WithCustomHeaders(ctx context.Context, customHeaders http.Header) context.Context

WithCustomHeaders adds custom headers to request headers

Types

type Service added in v0.61.0

type Service struct {
	// contains filtered or unexported fields
}

Service implements the RPC client for remote scanning

func NewService added in v0.61.0

func NewService(scannerOptions ServiceOption) Service

NewService is the factory method to return RPC Service

func (Service) Scan added in v0.61.0

func (s Service) Scan(ctx context.Context, target, artifactKey string, blobKeys []string, opts types.ScanOptions) (types.ScanResponse, error)

Scan scans the image

type ServiceOption added in v0.61.0

type ServiceOption struct {
	RemoteURL     string
	CustomHeaders http.Header
	PathPrefix    string
}

ServiceOption holds options for RPC client

Jump to

Keyboard shortcuts

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