sidecar

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentStackName   = "berth-agent"
	AgentServiceName = "berth-agent"
)

Variables

View Source
var (
	ErrUnsupportedCommand = errors.New("the sidecar can only bring the agent up or restart it")
	ErrUnsupportedOption  = errors.New("the sidecar does not accept this option when updating the agent")
)

Functions

func ValidateOperation added in v0.5.1

func ValidateOperation(command string, options []string) error

Types

type Handler

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

func NewHandler

func NewHandler(service *Service, logger *logging.Logger) *Handler

func (*Handler) HandleOperation

func (h *Handler) HandleOperation(c echo.Context) error

func (*Handler) Health

func (h *Handler) Health(c echo.Context) error

type OperationRequest

type OperationRequest struct {
	Command string   `json:"command"`
	Options []string `json:"options"`
}

type Service

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

func NewService

func NewService(cfg *config.Config, logger *logging.Logger) *Service

func (*Service) AgentStackPath added in v0.5.1

func (s *Service) AgentStackPath() (string, error)

func (*Service) ExecuteOperation

func (s *Service) ExecuteOperation(_ context.Context, req OperationRequest) error

Jump to

Keyboard shortcuts

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