catalog

package
v0.9.4 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: 31 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)
	GetUpstreamCA() (upstreamca.UpstreamCA, bool)
	GetKeyManager() keymanager.KeyManager
	GetNotifiers() []Notifier
}

type Config

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

	IdentityProvider hostservices.IdentityProvider
	AgentStore       hostservices.AgentStore
	MetricsService   common_services.MetricsService
}

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.DataStore
	NodeAttestors map[string]nodeattestor.NodeAttestor
	NodeResolvers map[string]noderesolver.NodeResolver
	UpstreamCA    *upstreamca.UpstreamCA
	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) GetUpstreamCA

func (p *Plugins) GetUpstreamCA() (upstreamca.UpstreamCA, bool)

type Repository

type Repository struct {
	Catalog
	catalog.Closer
}

func Load

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

Jump to

Keyboard shortcuts

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