apiservercertwatcher

package
v0.0.0-...-2f78cd6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

The manifold is intended to be a dependency for the apiserver. Manifold provides a worker for supplying a pki Authority to other workers that want to create and modify certificates in a Juju controller.

Types

type AuthorityWorker

type AuthorityWorker interface {
	Authority() pki.Authority
	worker.Worker
}

func NewAuthorityWorker

func NewAuthorityWorker(_ agent.Agent) (AuthorityWorker, error)

type ManifoldConfig

type ManifoldConfig struct {
	AgentName           string
	CertWatcherWorkerFn NewCertWatcherWorker
}

type NewCertWatcherWorker

type NewCertWatcherWorker func(agent.Agent) (AuthorityWorker, error)

type PKIAuthorityWorker

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

OperatorWatcher is responsible for creating a new PKI certificate chain to use in operators that need to start their own HTTPS servers. TODO this watcher should be replaced in the future to use an intermediate CA from the controller

func (*PKIAuthorityWorker) Authority

func (a *PKIAuthorityWorker) Authority() pki.Authority

func (*PKIAuthorityWorker) Kill

func (a *PKIAuthorityWorker) Kill()

func (*PKIAuthorityWorker) Wait

func (a *PKIAuthorityWorker) Wait() error

Jump to

Keyboard shortcuts

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