Movatterモバイル変換


[0]ホーム

URL:


entitlements

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:8Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

ErrLicenseRequiresTelemetry is an error returned by a fetch passed to Update to indicate that thefetched license cannot be used because it requires telemetry.

Functions

This section is empty.

Types

typeSet

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

funcNew

func New() *Set

func (*Set)AllowRefresh

func (l *Set) AllowRefresh(nowtime.Time) (bool,time.Duration)

AllowRefresh returns whether the entitlements are allowed to be refreshed.If it returns false, that means it was recently refreshed and the caller shouldwait the returned duration before trying again.

func (*Set)AsJSON

func (l *Set) AsJSON()json.RawMessage

AsJSON is used to return this to the api without exposing the entitlements formutation.

func (*Set)Enabled

func (l *Set) Enabled(featurecodersdk.FeatureName)bool

func (*Set)Errorsadded inv2.17.0

func (l *Set) Errors() []string

func (*Set)Feature

func (l *Set) Feature(namecodersdk.FeatureName) (codersdk.Feature,bool)

func (*Set)FeatureChanged

func (l *Set) FeatureChanged(featureNamecodersdk.FeatureName, newFeaturecodersdk.Feature) (initial, changed, enabledbool)

func (*Set)Modifyadded inv2.17.0

func (l *Set) Modify(do func(entitlements *codersdk.Entitlements))

func (*Set)Update

func (l *Set) Update(ctxcontext.Context, fetch func(context.Context) (codersdk.Entitlements,error))error

func (*Set)WriteEntitlementWarningHeaders

func (l *Set) WriteEntitlementWarningHeaders(headerhttp.Header)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp