scan

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Conn       *grpc.ClientConn
	RPCCreds   credentials.PerRPCCredentials
	Processor  Processor
	Registries []string
	Prefixes   []string
	Hosts      []string
}

type Logger

type Logger interface {
	Infow(msg string, kv ...interface{})
	Warnw(msg string, kv ...interface{})
	Errorw(msg string, kv ...interface{})
}

type Processor

type Processor interface {
	ProcessRepo(ctx context.Context, repo *execute.Repo) error
}

See `Processor` in `../observer/observer.go`.

type Scanner

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

func NewScanner

func NewScanner(lg Logger, cfg *Config) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context) error

Jump to

Keyboard shortcuts

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