agentv1

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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)

func Routes

func Routes(cmd *cobra.Command) chi.Router

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL