client

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

SuperSet binds the dependencies for RPC client

Functions

func NewProtobufClient added in v0.5.0

func NewProtobufClient(remoteURL RemoteURL, insecure Insecure) rpc.Scanner

NewProtobufClient is the factory method to return RPC scanner

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 CustomHeaders added in v0.5.0

type CustomHeaders http.Header

CustomHeaders for holding HTTP headers

type Insecure added in v0.24.0

type Insecure bool

Insecure for RPC remote host

type RemoteURL added in v0.5.0

type RemoteURL string

RemoteURL for RPC remote host

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(customHeaders CustomHeaders, s rpc.Scanner) Scanner

NewScanner is the factory method to return RPC Scanner

func (Scanner) Scan added in v0.5.0

func (s Scanner) Scan(target, artifactKey string, blobKeys []string, options types.ScanOptions) (types.Results, *ftypes.OS, error)

Scan scans the image

Jump to

Keyboard shortcuts

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