Documentation ¶
Index ¶
- type Iface
- type LocalClient
- func (c *LocalClient) Deploy(ctx context.Context, src, dst string) error
- func (c *LocalClient) Exec(ctx context.Context, basedir string, command string) (bytes.Buffer, bytes.Buffer, error)
- func (c *LocalClient) Execf(ctx context.Context, basedir string, command string, a ...interface{}) (bytes.Buffer, bytes.Buffer, error)
- func (c *LocalClient) Host() string
- type SshClient
- func (c *SshClient) Deploy(ctx context.Context, src, dst string) error
- func (c *SshClient) Exec(ctx context.Context, basedir string, command string) (bytes.Buffer, bytes.Buffer, error)
- func (c *SshClient) Execf(ctx context.Context, basedir string, cmd string, a ...interface{}) (bytes.Buffer, bytes.Buffer, error)
- func (c *SshClient) Host() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func NewLocalClient(e exec.Interface) *LocalClient
func (*LocalClient) Deploy ¶
func (c *LocalClient) Deploy(ctx context.Context, src, dst string) error
func (*LocalClient) Host ¶
func (c *LocalClient) Host() string
Click to show internal directories.
Click to hide internal directories.