nix

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNixSystemDerivation

func GetNixSystemDerivation(host Host, resultPath string) (string, error)

func GetNixSystemPath

func GetNixSystemPath(host Host, resultPath string) (string, error)

func GetPathsToPush

func GetPathsToPush(host Host, resultPath string) (paths []string, err error)

func Push

func Push(ctx *ssh.SSHContext, host Host, paths ...string) (err error)

Types

type Host

type Host struct {
	HealthChecks healthchecks.HealthChecks
	Name         string
	NixosRelease string
	TargetHost   string
	Secrets      map[string]secrets.Secret
	BuildOnly    bool
}

func (*Host) GetHealthChecks

func (host *Host) GetHealthChecks() healthchecks.HealthChecks

func (*Host) GetTargetHost

func (host *Host) GetTargetHost() string

func (*Host) Reboot added in v1.2.0

func (host *Host) Reboot(sshContext *ssh.SSHContext) error

type NixContext added in v1.2.0

type NixContext struct {
	EvalMachines string
	ShowTrace    bool
	KeepGCRoot   bool
}

func (*NixContext) BuildMachines added in v1.2.0

func (ctx *NixContext) BuildMachines(deploymentPath string, hosts []Host, nixArgs []string, nixBuildTargets string) (resultPath string, err error)

func (*NixContext) GetMachines added in v1.2.0

func (ctx *NixContext) GetMachines(deploymentPath string) (hosts []Host, err error)

Jump to

Keyboard shortcuts

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