service

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package service models services and provides HTTP handlers for service operations used by the daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleService

type HandleService interface {
	GetService(ctx context.Context, name string) (*store.Service, error)
	ListServices(ctx context.Context, userID string, limit, offset int) ([]*store.Service, error)
	DeleteService(ctx context.Context, name string) error
}

type ServiceHandler

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

func NewServiceHandler

func NewServiceHandler(servicer *Servicer, logger *shared.Logger) *ServiceHandler

func (*ServiceHandler) DeleteService added in v0.5.0

func (h *ServiceHandler) DeleteService(w http.ResponseWriter, r *http.Request)

func (*ServiceHandler) GetService

func (h *ServiceHandler) GetService(w http.ResponseWriter, r *http.Request)

func (*ServiceHandler) ListServices

func (h *ServiceHandler) ListServices(w http.ResponseWriter, r *http.Request)

type Servicer

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

type SvcState

type SvcState string
const (
	SvcRunning SvcState = "running"
	SvcStopped SvcState = "stopped"
	SvcUnknown SvcState = "unknown"
)

Jump to

Keyboard shortcuts

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