nodeagent

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterator

func Iterator(monitor mntr.Monitor, gitClient *git.Client, nodeAgentCommit string, id string, firewallEnsurer FirewallEnsurer, conv Converter, before func() error) func()

func RepoKey added in v0.25.0

func RepoKey() ([]byte, error)

Types

type Converter

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

type Dependency

type Dependency struct {
	Installer Installer
	Desired   common.Package
	Current   common.Package
}

type FirewallEnsurer

type FirewallEnsurer interface {
	Query(desired common.Firewall) (current []*common.Allowed, ensure func() error, err error)
}

type FirewallEnsurerFunc

type FirewallEnsurerFunc func(desired common.Firewall) (current []*common.Allowed, ensure func() error, err error)

func (FirewallEnsurerFunc) Query

func (f FirewallEnsurerFunc) Query(desired common.Firewall) (current []*common.Allowed, ensure func() error, err error)

type Installer

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