handler

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutionIdInvalidConstraintsResponse added in v0.0.4

func ExecutionIdInvalidConstraintsResponse(ctx *context.CommandContext)

func ExecutionInternalErrorResponse added in v0.0.4

func ExecutionInternalErrorResponse(ctx *context.CommandContext)

func InternalErrorResponse added in v0.0.4

func InternalErrorResponse(ctx *context.CommandContext)

func InvalidInputErrorResponse added in v0.0.4

func InvalidInputErrorResponse(ctx *context.CommandContext, err error)

func NodeIdInvalidConstraintsResponse added in v0.0.4

func NodeIdInvalidConstraintsResponse(ctx *context.CommandContext)

func ProviderNameInvalidConstraintsResponse added in v0.0.4

func ProviderNameInvalidConstraintsResponse(ctx *context.CommandContext)

func TailnetNameInvalidConstraintsResponse added in v0.0.4

func TailnetNameInvalidConstraintsResponse(ctx *context.CommandContext)

func UnknownExecutionResponse added in v0.0.4

func UnknownExecutionResponse(ctx *context.CommandContext, e string)

func UnknownNodeResponse added in v0.0.4

func UnknownNodeResponse(ctx *context.CommandContext, n string)

func UnknownProviderResponse added in v0.0.4

func UnknownProviderResponse(ctx *context.CommandContext, p string)

func UnknownTailnetResponse added in v0.0.4

func UnknownTailnetResponse(ctx *context.CommandContext, t string)

func WriteErrorResponse added in v0.0.4

func WriteErrorResponse(ctx *context.CommandContext, err error, msg string)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(apiSvc service.Api, nodeSvc service.Node, provSvc service.Provider, tailSvc service.Tailnet, tracker pending_execution.Tracker) *Handler

func (*Handler) DeprovisionNode

func (h *Handler) DeprovisionNode(ctx *context.CommandContext)

func (*Handler) DescribeExecution

func (h *Handler) DescribeExecution(ctx *context.CommandContext)

func (*Handler) DescribeNode

func (h *Handler) DescribeNode(ctx *context.CommandContext)

func (*Handler) DescribeProvider

func (h *Handler) DescribeProvider(ctx *context.CommandContext)

func (*Handler) DescribeTailnet

func (h *Handler) DescribeTailnet(ctx *context.CommandContext)

func (*Handler) ListNodes

func (h *Handler) ListNodes(ctx *context.CommandContext)

func (*Handler) ListNotifiers added in v0.0.11

func (h *Handler) ListNotifiers(ctx *context.CommandContext)

func (*Handler) ListProviders

func (h *Handler) ListProviders(ctx *context.CommandContext)

func (*Handler) ListTailnets

func (h *Handler) ListTailnets(ctx *context.CommandContext)

func (*Handler) NodeIdAutoComplete

func (h *Handler) NodeIdAutoComplete(ctx *comctx.CommandContext, name, filter string) []tempest.Choice

func (*Handler) ProviderLocationAutoComplete

func (h *Handler) ProviderLocationAutoComplete(ctx *comctx.CommandContext, name, filter string) []tempest.Choice

func (*Handler) ProviderNameAutoComplete

func (h *Handler) ProviderNameAutoComplete(ctx *comctx.CommandContext, name, filter string) []tempest.Choice

func (*Handler) ProvisionNode

func (h *Handler) ProvisionNode(ctx *context.CommandContext)

func (*Handler) ServerHealthCheck

func (h *Handler) ServerHealthCheck(ctx *context.CommandContext)

func (*Handler) StartNode

func (h *Handler) StartNode(ctx *context.CommandContext)

func (*Handler) StopNode

func (h *Handler) StopNode(ctx *context.CommandContext)

func (*Handler) TailnetNameAutoComplete

func (h *Handler) TailnetNameAutoComplete(ctx *comctx.CommandContext, name, filter string) []tempest.Choice

type LocationChoice

type LocationChoice struct {
	Name        string
	Geolocation string
	Provider    string
}

func (LocationChoice) Display

func (l LocationChoice) Display() string

Jump to

Keyboard shortcuts

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