config

package
v0.0.0-...-e8b74a0 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProxyUser      string `validate:"required"`
	ProxyPassword  string `validate:"required"`
	KnownHostsPath string `validate:"required,file"`

	Remote RemoteConfig
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) GetDecrpytionPassphrase

func (c *Config) GetDecrpytionPassphrase() ([]byte, error)

func (*Config) LoadSSHKey

func (c *Config) LoadSSHKey() (ssh.Signer, error)

func (*Config) Validate

func (c *Config) Validate() error

type FakePasswordReader

type FakePasswordReader struct {
	ReadPasswordStub func(string) ([]byte, error)
	// contains filtered or unexported fields
}

func (*FakePasswordReader) Invocations

func (fake *FakePasswordReader) Invocations() map[string][][]interface{}

func (*FakePasswordReader) ReadPassword

func (fake *FakePasswordReader) ReadPassword(arg1 string) ([]byte, error)

func (*FakePasswordReader) ReadPasswordArgsForCall

func (fake *FakePasswordReader) ReadPasswordArgsForCall(i int) string

func (*FakePasswordReader) ReadPasswordCallCount

func (fake *FakePasswordReader) ReadPasswordCallCount() int

func (*FakePasswordReader) ReadPasswordCalls

func (fake *FakePasswordReader) ReadPasswordCalls(stub func(string) ([]byte, error))

func (*FakePasswordReader) ReadPasswordReturns

func (fake *FakePasswordReader) ReadPasswordReturns(result1 []byte, result2 error)

func (*FakePasswordReader) ReadPasswordReturnsOnCall

func (fake *FakePasswordReader) ReadPasswordReturnsOnCall(i int, result1 []byte, result2 error)

type PasswordReader

type PasswordReader interface {
	ReadPassword(prompt string) ([]byte, error)
}

type RemoteConfig

type RemoteConfig struct {
	Addr           string `validate:"required"`
	FileRoot       string `validate:"required"`
	User           string `validate:"required"`
	PrivateKeyPath string `validate:"required,file"`
}

Jump to

Keyboard shortcuts

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