indexer

package
v4.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer interface {
	Index(ctx context.Context, manifest *claircore.Manifest) (*claircore.IndexReport, error)
}

Indexer is an interface providing a claircore.IndexReport given a claircore.Manifest

type Reporter

type Reporter interface {
	IndexReport(ctx context.Context, digest claircore.Digest) (*claircore.IndexReport, bool, error)
}

Reporter is an interface providing a claircore.IndexReport provided a claircore.Digest which represents a manifest hash.

type Service

type Service interface {
	Indexer
	Reporter
	Stater
}

Service is an aggregate interface wrapping claircore.Libindex functionality.

Implementation may use a local instance of claircore.Libindex or a remote instance via http or grpc client.

type StateIndexer

type StateIndexer interface {
	Indexer
	Stater
}

StateIndexer is an aggregate interface providing both a Indexer and a Stater method set

type StateReporter

type StateReporter interface {
	Reporter
	Stater
}

StateReporter is an aggregate interface providing both a Reporter and a Stater method set

type Stater

type Stater interface {
	State(ctx context.Context) (string, error)
}

Stater is an interface which provides a unique token symbolizing a Clair's state.

Jump to

Keyboard shortcuts

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