agentv1

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpPortMap  map[string]string
	HttpsPortMap map[string]string
)
View Source
var (
	TcpPortMap map[string]string
)

Functions

func CallAgentPing

func CallAgentPing(client *rest.RESTClient) bool

func CallAgentUpdateAuthorizedKeys

func CallAgentUpdateAuthorizedKeys(client *rest.RESTClient, sshKey string, githubUsername 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"`
	GitHubUsername string `json:"github_username"`
}

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