catalog

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 38 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltIns

func BuiltIns() []catalog.Plugin

func KnownPlugins

func KnownPlugins() []catalog.PluginClient

func KnownServices

func KnownServices() []catalog.ServiceClient

Types

type Catalog

type Catalog interface {
	GetDataStore() datastore.DataStore
	GetNodeAttestorNamed(name string) (nodeattestor.NodeAttestor, bool)
	GetNodeResolverNamed(name string) (noderesolver.NodeResolver, bool)
	GetKeyManager() keymanager.KeyManager
	GetNotifiers() []Notifier
	GetUpstreamAuthority() (*UpstreamAuthority, bool)
}

type Config

type Config struct {
	Log          logrus.FieldLogger
	GlobalConfig GlobalConfig
	PluginConfig HCLPluginConfigMap

	Metrics          telemetry.Metrics
	IdentityProvider hostservices.IdentityProvider
	AgentStore       hostservices.AgentStore
	MetricsService   common_services.MetricsService
}

type DataStore added in v0.11.0

type DataStore struct {
	catalog.PluginInfo
	datastore.DataStore
}

type GlobalConfig

type GlobalConfig = catalog.GlobalConfig

type HCLPluginConfig

type HCLPluginConfig = catalog.HCLPluginConfig

type HCLPluginConfigMap

type HCLPluginConfigMap = catalog.HCLPluginConfigMap

type Notifier

type Notifier struct {
	catalog.PluginInfo
	notifier.Notifier
}

type Plugins

type Plugins struct {
	DataStore         DataStore
	NodeAttestors     map[string]nodeattestor.NodeAttestor
	NodeResolvers     map[string]noderesolver.NodeResolver
	UpstreamAuthority *UpstreamAuthority
	KeyManager        keymanager.KeyManager
	Notifiers         []Notifier
}

func (*Plugins) GetDataStore

func (p *Plugins) GetDataStore() datastore.DataStore

func (*Plugins) GetKeyManager

func (p *Plugins) GetKeyManager() keymanager.KeyManager

func (*Plugins) GetNodeAttestorNamed

func (p *Plugins) GetNodeAttestorNamed(name string) (nodeattestor.NodeAttestor, bool)

func (*Plugins) GetNodeResolverNamed

func (p *Plugins) GetNodeResolverNamed(name string) (noderesolver.NodeResolver, bool)

func (*Plugins) GetNotifiers

func (p *Plugins) GetNotifiers() []Notifier

func (*Plugins) GetUpstreamAuthority added in v0.10.0

func (p *Plugins) GetUpstreamAuthority() (*UpstreamAuthority, bool)

type Repository

type Repository struct {
	Catalog
	catalog.Closer
}

func Load

func Load(ctx context.Context, config Config) (*Repository, error)

type UpstreamAuthority added in v0.10.0

type UpstreamAuthority struct {
	catalog.PluginInfo
	upstreamauthority.UpstreamAuthority
}

Jump to

Keyboard shortcuts

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