Documentation
¶
Index ¶
- Constants
- func SeedBuiltinNamespaces(ctx context.Context, st store.Store) error
- func SeedBuiltinPolicies(ctx context.Context, st store.Store) error
- type APIServer
- type AuthInfo
- type Option
- func WithAuth(_ []string) Option
- func WithDockerRunner(runner runner.Runner) Option
- func WithGRPCAddr(addr string) Option
- func WithHTTPAddr(addr string) Option
- func WithLogger(logger log.Logger) Option
- func WithOrchestrator(orchestrator orchestrator.Orchestrator) Option
- func WithProcessRunner(runner runner.Runner) Option
- func WithStore(store store.Store) Option
- func WithTLS(certFile, keyFile string) Option
- type Options
Constants ¶
View Source
const ( // AuthorizationHeader is the header key for API key authentication. AuthorizationHeader = "authorization" // APIKeyPrefix is the prefix for API key values in the Authorization header. APIKeyPrefix = "Bearer " )
Variables ¶
This section is empty.
Functions ¶
func SeedBuiltinNamespaces ¶
SeedBuiltinNamespaces ensures the built-in namespaces exist (idempotent).
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
APIServer represents the gRPC API server for Rune.
type AuthInfo ¶
type AuthInfo struct {
SubjectID string
}
AuthInfo holds minimal identity used by handlers for RBAC checks
type Option ¶
type Option func(*Options)
Option is a function that configures options.
func WithDockerRunner ¶
WithDockerRunner sets the Docker runner.
func WithOrchestrator ¶
func WithOrchestrator(orchestrator orchestrator.Orchestrator) Option
WithOrchestrator sets the orchestrator.
func WithProcessRunner ¶
WithProcessRunner sets the process runner.
type Options ¶
type Options struct {
// Server addresses
GRPCAddr string
HTTPAddr string
// TLS configuration
EnableTLS bool
TLSCertFile string
TLSKeyFile string
// Authentication (token-only)
EnableAuth bool
// Logging
Logger log.Logger
// State store
Store store.Store
// Runner manager
RunnerManager *manager.RunnerManager
// Orchestrator
Orchestrator orchestrator.Orchestrator
}
Options defines the options for the API server.
Click to show internal directories.
Click to hide internal directories.