features

package
v0.19.1302 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrFeatureNotEnabled added in v0.19.850

func ErrFeatureNotEnabled(feature app.OrgFeature) stderr.ErrUser

ErrFeatureNotEnabled returns a standard user error when a required feature is not enabled

Types

type Features

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

func New

func New(params Params) *Features

func (*Features) AllFeaturesEnabled added in v0.19.850

func (f *Features) AllFeaturesEnabled(ctx context.Context, features ...app.OrgFeature) (bool, error)

AllFeaturesEnabled returns true only if every provided feature is enabled for the org in context.

func (*Features) Enable

func (s *Features) Enable(ctx context.Context, orgID string, features map[string]bool) error

func (*Features) FeatureEnabled

func (f *Features) FeatureEnabled(ctx context.Context, feature app.OrgFeature) (bool, error)

func (*Features) OrgCronNamespaceIsolationEnabled added in v0.19.1091

func (f *Features) OrgCronNamespaceIsolationEnabled(ctx context.Context, orgID string) (bool, error)

OrgCronNamespaceIsolationEnabled reports whether the org routes its runner healthcheck + install cron queues into the dedicated cron Temporal namespaces.

func (*Features) OrgHasFeature

func (f *Features) OrgHasFeature(ctx context.Context, orgID string, feature app.OrgFeature) (bool, error)

func (*Features) OrgHealthcheckSweepsEnabled added in v0.19.1110

func (f *Features) OrgHealthcheckSweepsEnabled(ctx context.Context, orgID string) (bool, error)

OrgHealthcheckSweepsEnabled reports whether the org uses per-org batch healthcheck sweeps instead of per-runner/per-process cron emitters.

func (*Features) OrgType

func (f *Features) OrgType(ctx context.Context) (app.OrgType, error)

func (*Features) ToggleForAllOrgs added in v0.19.1024

func (s *Features) ToggleForAllOrgs(ctx context.Context, features map[string]bool) error

type Params

type Params struct {
	fx.In

	Cfg *internal.Config
	DB  *gorm.DB `name:"psql"`
	V   *validator.Validate
}

Jump to

Keyboard shortcuts

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