Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentServer ¶
type AgentServer struct {
// contains filtered or unexported fields
}
AgentServer is an ssh agent that can be served and shutdown at a later time
func NewAgentServer ¶
func NewAgentServer(source *Source) (*AgentServer, error)
NewAgentServer creates a new agent on the host
func (*AgentServer) Serve ¶
func (a *AgentServer) Serve(processLabel string) (string, error)
Serve starts the SSH agent on the host and returns the path of the socket where the agent is serving
func (*AgentServer) ServePath ¶
func (a *AgentServer) ServePath() string
ServePath returns the path where the agent is serving
func (*AgentServer) Shutdown ¶
func (a *AgentServer) Shutdown() error
Shutdown shuts down the agent and closes the socket
Click to show internal directories.
Click to hide internal directories.