Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2025 Changes in this version + var ErrNoBssData = errors.New("no BSS metrics data available") + type Claims struct + ClientID string + type Params struct + Config *config.Config + JWTPrivateKey *rsa.PrivateKey + K8sAdapter kubernetes.K8sAdapter + StrategyCache *cache.StrategyCache + type Service struct + func NewService(ctx context.Context, params Params) (*Service, error) + func (svc *Service) FindCurrentUsingSchedulingStrategiesWithPID(ctx context.Context) ([]*domain.SchedulingStrategy, bool, error) + func (svc *Service) FindPodInfoFrom(ctx context.Context, rootDir string) ([]*domain.PodInfo, error) + func (svc *Service) FindSchedulingStrategiesWithPID(ctx context.Context, rootDir string, ...) ([]*domain.SchedulingStrategy, bool, error) + func (svc *Service) GetAllPodInfos(ctx context.Context) ([]*domain.PodInfo, error) + func (svc *Service) GetBSSMetrics(ctx context.Context) (*domain.BssData, error) + func (svc *Service) GetStrategyCacheStats() map[string]any + func (svc *Service) SaveBSSMetrics(ctx context.Context, bssMetrics *domain.BssData) error + func (svc *Service) SaveSchedulingStrategy(ctx context.Context, strategy []*domain.SchedulingStrategy) error + func (svc *Service) VerifyAndGenerateToken(ctx context.Context, publicKey string) (string, error) + func (svc *Service) VerifyPublicKey(publicKeyPEM string) error