client

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 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) 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 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 string, imageID string, layerIDs []string, options types.ScanOptions) (report.Results, *ftypes.OS, bool, error)

Scan scans the image

Jump to

Keyboard shortcuts

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