gonsible

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 6 Imported by: 0

README

gonsible

Ansible clone in go

Why? For fun and profit. Maybe I can even find something to improve on?

usage

TBD

test

$ go test -v -race

todos

  • ssh session
  • tests
  • playbook
  • modules

license

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "vX.Y.Z" // defined at compile time

Functions

This section is empty.

Types

type Client

type Client struct {
	*ssh.Client
}

func NewClient

func NewClient(conf *ClientConfig) (*Client, error)

func (*Client) NewSession

func (c *Client) NewSession() (*Session, error)

type ClientConfig

type ClientConfig struct {
	User, Host, Port, PrivateKey, PrivateKeyWithPassphrase, Knownhosts string
}

type Session

type Session struct {
	*ssh.Session
}

func (*Session) Close

func (s *Session) Close() error

func (*Session) Output

func (s *Session) Output(outw, errw io.Writer) error

func (*Session) Run

func (s *Session) Run(cmd string) error

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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