client

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 11

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 Option added in v0.27.0

type Option func(*options)

func WithRPCClient added in v0.25.0

func WithRPCClient(c rpc.Scanner) Option

WithRPCClient takes rpc client for testability

type Scanner added in v0.5.0

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

Scanner implements the RPC scanner

func NewScanner added in v0.5.0

func NewScanner(scannerOptions ScannerOption, opts ...Option) Scanner

NewScanner is the factory method to return RPC Scanner

func (Scanner) Scan added in v0.5.0

func (s Scanner) Scan(ctx context.Context, target, artifactKey string, blobKeys []string, opts types.ScanOptions) (types.Results, ftypes.OS, error)

Scan scans the image

type ScannerOption added in v0.25.0

type ScannerOption struct {
	RemoteURL     string
	Insecure      bool
	CustomHeaders http.Header
}

ScannerOption holds options for RPC client

Jump to

Keyboard shortcuts

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