Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthorizedKey ¶
func AddAuthorizedKey(ctx context.Context, cfg AuthorizedKeyConfig) error
AddAuthorizedKey copies public key to remove machine the same as ssh-copy-id command.
Types ¶
type AuthorizedKeyConfig ¶
type ConnectConfig ¶
type Keys ¶
func GenerateKeys ¶
type Terminal ¶
type Terminal interface {
Connect(ctx context.Context, cfg ConnectConfig) error
}
func NewTerminal ¶
func NewTerminal(log logrus.FieldLogger) Terminal
Click to show internal directories.
Click to hide internal directories.