Back to godoc.org
github.com/juju/juju/worker/apiservercertwatcher

package apiservercertwatcher

v0.0.0 (4dcf1d7)
Latest Go to latest
Published: 1 day ago | License: AGPL-3.0 | Module: github.com/juju/juju

Index

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.

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier