juju: github.com/juju/juju/worker/apiservercertwatcher Index | Files

package apiservercertwatcher

import "github.com/juju/juju/worker/apiservercertwatcher"


Package Files


func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency.Manifold which wraps an agent's voyeur.Value which is set whenever the agent config is changed. The manifold will not bounce when the certificates change.

The worker will watch for API server certificate changes, and make the current value available via the manifold's Output. The Output expects a pointer to a function of type:

func() *tls.Certificate

The resulting tls.Certificate's Leaf field will be set, to ensure we only parse the certificate once. This allows the consumer to obtain the associated DNS names.

The manifold is intended to be a dependency for the apiserver.

type ManifoldConfig Uses

type ManifoldConfig struct {
    AgentName          string
    AgentConfigChanged *voyeur.Value

Package apiservercertwatcher imports 12 packages (graph) and is imported by 4 packages. Updated 2019-04-28. Refresh now. Tools for package owners.