Documentation ¶
Index ¶
- Variables
- func CallAgentPing(client *rest.RESTClient) bool
- func CallAgentUpdateAuthorizedKeys(client *rest.RESTClient, sshKey string) bool
- func HandleAgentPing(w http.ResponseWriter, r *http.Request)
- func HandleAgentUpdateAuthorizedKeys(w http.ResponseWriter, r *http.Request)
- func Routes(cmd *cobra.Command) chi.Router
- type AgentPingResponse
- type AgentUpdateAuthorizedKeysRequest
- type AgentUpdateAuthorizedKeysResponse
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HttpPortMap map[string]bool
)
View Source
var (
TcpPortMap map[string]bool
)
Functions ¶
func CallAgentPing ¶
func CallAgentPing(client *rest.RESTClient) bool
func CallAgentUpdateAuthorizedKeys ¶
func CallAgentUpdateAuthorizedKeys(client *rest.RESTClient, sshKey string) bool
func HandleAgentPing ¶
func HandleAgentPing(w http.ResponseWriter, r *http.Request)
func HandleAgentUpdateAuthorizedKeys ¶
func HandleAgentUpdateAuthorizedKeys(w http.ResponseWriter, r *http.Request)
Types ¶
type AgentPingResponse ¶
type AgentPingResponse struct {
Status bool `json:"status"`
}
type AgentUpdateAuthorizedKeysRequest ¶
type AgentUpdateAuthorizedKeysRequest struct {
Key string `json:"key"`
}
type AgentUpdateAuthorizedKeysResponse ¶
type AgentUpdateAuthorizedKeysResponse struct {
Status bool `json:"status"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.