server

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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
}

func NewAgentServer

func NewAgentServer(agent cluster.Agent) *AgentServer

func (*AgentServer) Serve

func (s *AgentServer) Serve(listener net.Listener)

func (*AgentServer) Shutdown

func (s *AgentServer) Shutdown(ctx context.Context) error

type CreateMachineRequest

type CreateMachineRequest struct {
	Body cluster.PutMachineOptions
}

type CreateMachineResponse

type CreateMachineResponse struct {
	Body cluster.MachineInstance
}

type DestroyMachineRequest

type DestroyMachineRequest struct {
	Id    string `path:"id"`
	Force bool   `query:"force"`
}

type DestroyMachineResponse

type DestroyMachineResponse struct {
}

type DisableMachineGatewayRequest added in v0.5.0

type DisableMachineGatewayRequest struct {
	Id string `path:"id"`
}

type DisableMachineGatewayResponse added in v0.5.0

type DisableMachineGatewayResponse struct {
}

type EnableMachineGatewayRequest added in v0.5.0

type EnableMachineGatewayRequest struct {
	Id string `path:"id"`
}

type EnableMachineGatewayResponse added in v0.5.0

type EnableMachineGatewayResponse struct {
}

type FollowMachineLogsRequest

type FollowMachineLogsRequest struct {
	Id string `path:"id"`
}

type GetMachineLogsRequest

type GetMachineLogsRequest struct {
	Id string `path:"id"`
}

type GetMachineLogsResponse

type GetMachineLogsResponse struct {
	Body []*api.LogEntry
}

type MachineExecRequest

type MachineExecRequest struct {
	Id   string `path:"id"`
	Body api.ExecOptions
}

type MachineExecResponse

type MachineExecResponse struct {
	Body *api.ExecResult
}

type StartMachineRequest

type StartMachineRequest struct {
	Id string `path:"id"`
}

type StartMachineResponse

type StartMachineResponse struct {
}

type StopMachineRequest

type StopMachineRequest struct {
	Id   string `path:"id"`
	Body *api.StopConfig
}

type StopMachineResponse

type StopMachineResponse struct {
}

type WaitMachineStatusRequest added in v0.6.0

type WaitMachineStatusRequest struct {
	MachineId string            `path:"id"`
	Timeout   uint              `query:"timeout" minimum:"1" maximum:"60"`
	Status    api.MachineStatus `query:"status" required:"true"`
}

type WaitMachineStatusResponse added in v0.6.0

type WaitMachineStatusResponse struct {
}

Jump to

Keyboard shortcuts

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