adapter

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComputesService

func NewComputesService(
	logger logging.Logger,
	id string,
	spec *model.UserSpec,
	bootstrapKeyProperty string,
	dynamicKeyProperty string,
	dynamicPublicKey []byte,
	secrets *operator.Secrets,
	desireHostname func(compute infra.Compute, pool string) error) core.ComputesService

TODO: Dont accept the whole spec. Accept exactly the values needed (check other constructors too)

Types

type Adapter

type Adapter interface {
	Ensure(context.Context, *operator.Secrets, map[string]interface{}) (*model.Current, error)
}

type Builder

type Builder interface {
	Build(model.UserSpec, operator.NodeAgentUpdater) (model.Config, Adapter, error)
}

func New

func New(logger logging.Logger, id string, healthchecks string, changesDisallowed []string, mapNodeAgent func(cmp infra.Compute) *operator.NodeAgentCurrent) Builder

Jump to

Keyboard shortcuts

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