runnerapi

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const RegistrationAudience = "superplane-runner-registration"

Variables

View Source
var ErrInvalidRegistrationToken = errors.New("invalid runner registration token")

Functions

func MintRegistrationToken

func MintRegistrationToken(
	signer *jwt.Signer,
	runner *models.Runner,
	registration *models.RunnerRegistration,
	fleetID string,
	taskID *uuid.UUID,
) (string, error)

Types

type RegistrationClaims

type RegistrationClaims struct {
	FleetID string `json:"fleet_id"`
	TaskID  string `json:"task_id,omitempty"`
	jwtlib.RegisteredClaims
}

func ValidateRegistrationToken

func ValidateRegistrationToken(signer *jwt.Signer, value string) (*RegistrationClaims, error)

type Server

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

func NewServer

func NewServer(
	signer *jwt.Signer,
	encryptor crypto.Encryptor,
	activeLogStoreName string,
) (*Server, error)

func (*Server) ConnectionCount

func (s *Server) ConnectionCount() int

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) Serve

func (s *Server) Serve(address string) error

func (*Server) Shutdown

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

func (*Server) StartControlNotifications

func (s *Server) StartControlNotifications(ctx context.Context, gatewayID string)

Jump to

Keyboard shortcuts

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