Versions in this module Expand all Collapse all v0 v0.2.134 Dec 25, 2019 Changes in this version + func NewSshCopyInstruction(s *ssh.Client) func(string, string) (Instruction, error) + func NewSshRunInstruction(s *ssh.Client) func(string) (Instruction, error) + func ValidateCopy(line string) (string, string, error) + type BlockType int + const BlockType_BOOTSTRAP + const BlockType_DEPLOY + type Instruction interface + Do func(ctx context.Context, out io.Writer) error + String func() string + func NewLocalCopyInstruction(src, dst string) (Instruction, error) + func NewLocalRunInstruction(line string) (Instruction, error) + type LocalCopyInstruction struct + func (i LocalCopyInstruction) Do(ctx context.Context, out io.Writer) error + func (i LocalCopyInstruction) String() string + type LocalRunInstruction struct + func (i LocalRunInstruction) Do(ctx context.Context, out io.Writer) error + func (i LocalRunInstruction) String() string + type N0deploy struct + Bootstrap []Instruction + Deploy []Instruction + type Parser struct + NewCopyInstruction func(src, dst string) (Instruction, error) + NewRunInstruction func(command string) (Instruction, error) + func NewLocalParser() *Parser + func NewSshParser(s *ssh.Client) *Parser + func (p Parser) Parse(src string) (*N0deploy, error) + type SshCopyInstruction struct + func (i SshCopyInstruction) Do(ctx context.Context, out io.Writer) error + func (i SshCopyInstruction) String() string + type SshRunInstruction struct + func (i SshRunInstruction) Do(ctx context.Context, out io.Writer) error + func (i SshRunInstruction) String() string