Versions in this module Expand all Collapse all v2 v2.0.23 Jun 11, 2026 v2.0.22 Jun 10, 2026 v2.0.21 Jun 10, 2026 v2.0.20 May 30, 2026 v2.0.19 May 29, 2026 v2.0.18 May 27, 2026 v2.0.17 May 21, 2026 v2.0.16 May 14, 2026 v2.0.15 May 7, 2026 v2.0.14 May 2, 2026 v2.0.13 Apr 17, 2026 v2.0.12 Apr 16, 2026 Changes in this version + func InitAppScheme() error + func InitKubernetesClient(ctx context.Context, cfg K8sConfig, scheme *runtime.Scheme) (client.WithWatch, *rest.Config, error) + type App struct + Name string + Setup func(ctx context.Context, sc *SetupContext) error + Short string + func (a *App) Command() *cobra.Command + func (a *App) Run() error + type K8sConfig struct + Burst int + KubeConfig string + Namespace string + QPS int + Timeout string + type ReadyCheckFunc func(r *http.Request) error + type ServerError interface + Code func() codes.Code + Error func() string + WithDetails func(details proto.Message) (ServerError, error) + func NewServerError(code codes.Code, message string) ServerError + func NewServerErrorFromStatus(status *status.Status) ServerError + func NewServerErrorf(code codes.Code, format string, a ...interface{}) ServerError + type SetupContext struct + BaseURL string + DB *sqlx.DB + DataStore *storage.DataStore + Host string + K8sCache cache.Cache + K8sClient client.WithWatch + K8sConfig *rest.Config + Middleware func(http.Handler) http.Handler + Mux *http.ServeMux + Namespace string + Port int + Scope promutils.Scope + func (sc *SetupContext) AddReadyCheck(fn ReadyCheckFunc) + func (sc *SetupContext) AddWorker(name string, fn WorkerFunc) + type WorkerFunc func(ctx context.Context) error