Documentation
¶
Index ¶
- func NormalizeRemotePath(value, fallback string) string
- type Config
- func (c Config) Command(ctx context.Context, environment map[string]string, remoteArgs ...string) (*exec.Cmd, func(), error)
- func (c Config) DisplayURL() string
- func (c Config) DockerDialer(socketPath string) func(context.Context, string, string) (net.Conn, error)
- func (c Config) DockerDialerWithEnvironment(endpoint string, environment map[string]string) func(context.Context, string, string) (net.Conn, error)
- func (c Config) Run(ctx context.Context, stdin []byte, environment map[string]string, ...) ([]byte, []byte, error)
- func (c Config) RunShell(ctx context.Context, stdin []byte, command string) ([]byte, []byte, error)
- func (c Config) Target() string
- func (c Config) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeRemotePath ¶
Types ¶
type Config ¶
type Config struct {
Host string
Port int
User string
PrivateKey []byte
KnownHostsPath string
HostKeyPolicy string
ProxyJump string
}
func Load ¶
func Load(value *model.SSHConnection, secrets *store.SecretStore) (Config, error)
func (Config) DisplayURL ¶
func (Config) DockerDialer ¶
func (Config) DockerDialerWithEnvironment ¶
Click to show internal directories.
Click to hide internal directories.