Documentation
¶
Index ¶
- Variables
- type Engine
- func (e *Engine) DiffScopes(currentIDs, enableIDs, disableIDs []string, langs ...language.Tag) (added, removed []Scope, err error)
- func (e *Engine) GetAllFeatures(langs ...language.Tag) ([]Feature, error)
- func (e *Engine) GetFeatures(ids []string, langs ...language.Tag) ([]Feature, error)
- func (e *Engine) GetRequiredFeatures(langs ...language.Tag) ([]Feature, error)
- func (e *Engine) ValidateFeatureIDs(ids []string) error
- type Feature
- type List
- type Scope
- type ScopeExplanation
- type ScopeExplanations
- type ScopeExplanationsList
- type Scopes
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CoreCorporationFeatureId = "core-corporation" CoreCalendarFeatureId = "core-calendar" CoreMailFeatureId = "core-mail" )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) DiffScopes ¶
func (*Engine) GetAllFeatures ¶
func (*Engine) GetFeatures ¶
func (*Engine) GetRequiredFeatures ¶
func (*Engine) ValidateFeatureIDs ¶
type Feature ¶
type Feature struct { ID string Name string Description string Scopes []ScopeExplanation Required bool }
type List ¶
type List []Feature
func (List) ScopeExplanations ¶
func (l List) ScopeExplanations() []ScopeExplanations
type ScopeExplanation ¶
type ScopeExplanations ¶
type ScopeExplanationsList ¶
type ScopeExplanationsList []ScopeExplanations
func (ScopeExplanationsList) Len ¶
func (s ScopeExplanationsList) Len() int
func (ScopeExplanationsList) Less ¶
func (s ScopeExplanationsList) Less(i, j int) bool
func (ScopeExplanationsList) Swap ¶
func (s ScopeExplanationsList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.