provisioner

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert interface {
	GenerateCerts(domain string) (certificate []byte, privateKey []byte, caCertificate []byte, caPrivateKey []byte, err error)
}

type CmdRunner

type CmdRunner interface {
	Run(command string, args ...string) error
}

type ConcreteCmdRunner

type ConcreteCmdRunner struct {
	Stdout io.Writer
	Stderr io.Writer
}

func (*ConcreteCmdRunner) Run

func (r *ConcreteCmdRunner) Run(command string, args ...string) error

type FS

type FS interface {
	Mkdir(directory string) error
	Write(path string, contents io.Reader) error
}

type Provisioner

type Provisioner struct {
	Cert      Cert
	CmdRunner CmdRunner
	FS        FS
	UI        UI
}

func (*Provisioner) Provision

func (p *Provisioner) Provision(provisionScriptPath string, args ...string) error

type UI

type UI interface {
	PrintHelpText(domain string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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