adapter

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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(version string, logger logging.Logger, rebooter Rebooter, firewallEnsurer FirewallEnsurer, conv Converter, before Callback, after Callback) Builder

type Callback

type Callback func() error

type Converter

type Converter interface {
	ToDependencies(operator.Software) []*Dependency
	ToSoftware([]*Dependency) operator.Software
}

type Dependency

type Dependency struct {
	Installer Installer
	Desired   operator.Package
	Current   operator.Package
	// contains filtered or unexported fields
}

type FirewallEnsurer

type FirewallEnsurer interface {
	Ensure(operator.Firewall) error
}

type FirewallEnsurerFunc

type FirewallEnsurerFunc func(operator.Firewall) error

func (FirewallEnsurerFunc) Ensure

type Installer

type Installer interface {
	Current() (operator.Package, error)
	Ensure(uninstall operator.Package, install operator.Package) (bool, error)
	Equals(other Installer) bool
	Is(other Installer) bool
	fmt.Stringer
}

type Rebooter

type Rebooter interface {
	Reboot() error
}

Jump to

Keyboard shortcuts

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