api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	proto.UnimplementedWarrenAPIServer
	// contains filtered or unexported fields
}

Server implements the WarrenAPI gRPC service

func NewServer

func NewServer(mgr *manager.Manager) (*Server, error)

NewServer creates a new API server with mTLS

func (*Server) CreateIngress

CreateIngress creates a new ingress

func (*Server) CreateSecret

CreateSecret creates a new secret

func (*Server) CreateService

CreateService creates a new service

func (*Server) CreateTLSCertificate

CreateTLSCertificate creates a new TLS certificate

func (*Server) CreateVolume

CreateVolume creates a new volume

func (*Server) DeleteIngress

DeleteIngress deletes an ingress

func (*Server) DeleteSecret

DeleteSecret deletes a secret

func (*Server) DeleteService

DeleteService deletes a service

func (*Server) DeleteTLSCertificate

DeleteTLSCertificate deletes a TLS certificate

func (*Server) DeleteVolume

DeleteVolume deletes a volume

func (*Server) GenerateJoinToken

GenerateJoinToken generates a join token for adding nodes

func (*Server) GetClusterInfo

GetClusterInfo returns information about the Raft cluster

func (*Server) GetIngress

GetIngress retrieves an ingress

func (*Server) GetNode

GetNode returns a specific node by ID

func (*Server) GetSecretByName

GetSecretByName retrieves a secret by name (includes encrypted data for workers)

func (*Server) GetService

GetService returns a specific service

func (*Server) GetTLSCertificate

GetTLSCertificate retrieves a TLS certificate

func (*Server) GetTask

GetTask returns a specific task

func (*Server) GetVolumeByName

GetVolumeByName retrieves a volume by name

func (*Server) Heartbeat

Heartbeat processes heartbeat from a worker node

func (*Server) JoinCluster

JoinCluster handles a manager join request

func (*Server) ListIngresses

ListIngresses lists all ingresses

func (*Server) ListNodes

ListNodes returns all nodes in the cluster

func (*Server) ListSecrets

ListSecrets returns all secrets (without data)

func (*Server) ListServices

ListServices returns all services

func (*Server) ListTLSCertificates

ListTLSCertificates lists all TLS certificates

func (*Server) ListTasks

ListTasks returns tasks, optionally filtered by service or node

func (*Server) ListVolumes

ListVolumes returns all volumes

func (*Server) RegisterNode

RegisterNode registers a new node (worker or manager) with the cluster

func (*Server) RemoveNode

RemoveNode removes a node from the cluster

func (*Server) ReportTaskHealth

ReportTaskHealth reports the health status of a task

func (*Server) RequestCertificate

RequestCertificate issues a certificate for a node joining the cluster

func (*Server) Start

func (s *Server) Start(addr string) error

Start starts the gRPC server

func (*Server) Stop

func (s *Server) Stop()

Stop gracefully stops the gRPC server

func (*Server) StreamEvents

StreamEvents streams cluster events to the client TODO: Complete implementation

func (*Server) UpdateIngress

UpdateIngress updates an existing ingress

func (*Server) UpdateService

UpdateService updates an existing service

func (*Server) UpdateTaskStatus

UpdateTaskStatus updates the status of a task

func (*Server) WatchTasks

WatchTasks streams task events to a worker node

Jump to

Keyboard shortcuts

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