server

package
v0.0.0-...-3fabec7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserIDKey is the context key for user ID
	UserIDKey contextKey = "user_id"
	// PermissionsKey is the context key for permissions
	PermissionsKey contextKey = "permissions"
)

Variables

View Source
var (
	Version   = "1.0.0"
	BuildDate = time.Now().Format("2006-01-02")
	GitCommit = "development"
	GoVersion = "go1.18+"
)

Version information - in a production environment, these would be set at build time

Functions

This section is empty.

Types

type AttestationVerifierAdapter

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

AttestationVerifierAdapter adapts the AttestationClient to the AttestationVerifier interface

func (*AttestationVerifierAdapter) Verify

func (a *AttestationVerifierAdapter) Verify(ctx context.Context, attestation *blackicev1.Attestation) (bool, error)

Verify implements the AttestationVerifier interface

type Server

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

Server represents the Control Plane server

func NewServer

func NewServer(cfg *config.ControlPlaneConfig) (*Server, error)

NewServer creates a new Control Plane server

func (*Server) Shutdown

func (s *Server) Shutdown(timeout time.Duration)

Shutdown gracefully shuts down all components with timeout

func (*Server) Start

func (s *Server) Start() error

Start starts the server and blocks until it's stopped

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Jump to

Keyboard shortcuts

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