pubmanager

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pubmanager manages the publishing of the trust bundle to external stores through the configured BundlePublisher plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is the manager for bundle publishing. It implements the PubManager interface.

func NewManager

func NewManager(c *ManagerConfig) (*Manager, error)

NewManager creates a new bundle publishing manager.

func (*Manager) BundleUpdated

func (m *Manager) BundleUpdated()

BundleUpdated tells the bundle publishing manager that the bundle has been updated and forces a PublishBundle operation on all the plugins.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Run runs the bundle publishing manager.

type ManagerConfig

type ManagerConfig struct {
	BundlePublishers []bundlepublisher.BundlePublisher
	DataStore        datastore.DataStore
	Clock            clock.Clock
	Log              logrus.FieldLogger
	TrustDomain      spiffeid.TrustDomain
}

ManagerConfig is the config for the bundle publishing manager.

Jump to

Keyboard shortcuts

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