nodeagent

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterator

func Iterator(logger logging.Logger, gitClient *git.Client, rebooter Rebooter, commit string, id string, firewallEnsurer FirewallEnsurer, conv Converter, before func() error) func()

Types

type Converter

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

type Dependency

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

type FirewallEnsurer

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

type FirewallEnsurerFunc

type FirewallEnsurerFunc func(common.Firewall) error

func (FirewallEnsurerFunc) Ensure

type Installer

type Installer interface {
	Current() (common.Package, error)
	Ensure(uninstall common.Package, install common.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