juju: github.com/wallyworld/juju/worker/hostkeyreporter Index | Files

package hostkeyreporter

import "github.com/wallyworld/juju/worker/hostkeyreporter"


Package Files

manifold.go shim.go worker.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency manifold that runs the migration worker.

func New Uses

func New(config Config) (worker.Worker, error)

New returns a Worker backed by config, or an error.

func NewWorker Uses

func NewWorker(config Config) (worker.Worker, error)

type Config Uses

type Config struct {
    Facade    Facade
    MachineId string
    RootDir   string

Config defines the parameters of the hostkeyreporter worker.

func (Config) Validate Uses

func (config Config) Validate() error

Validate returns an error if Config cannot drive a hostkeyreporter.

type Facade Uses

type Facade interface {
    ReportKeys(machineId string, publicKeys []string) error

Facade exposes controller functionality to a Worker.

func NewFacade Uses

func NewFacade(apiCaller base.APICaller) (Facade, error)

type ManifoldConfig Uses

type ManifoldConfig struct {
    AgentName     string
    APICallerName string
    RootDir       string

    NewFacade func(base.APICaller) (Facade, error)
    NewWorker func(Config) (worker.Worker, error)

ManifoldConfig defines the names of the manifolds on which the hostkeyreporter worker depends.

Package hostkeyreporter imports 13 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.