Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct { Priority int `json:"priority" yaml:"priority"` Description string `json:"description,omitempty" yaml:"description"` ID string `json:"id,omitempty"` }
A Definition contains the meta data for a single scope.
type Scopes ¶
type Scopes struct { Mapping map[string]string `json:"mapping" yaml:"mapping"` Definitions map[string]*Definition `json:"definitions" yaml:"scopes"` }
Scopes contain collections for scope related meta data
func NewScopesFromFile ¶
func NewScopesFromFile(scopesConfFilepath string, logger logrus.FieldLogger) (*Scopes, error)
NewScopesFromFile loads scope definitions from a file.
func NewScopesFromIDs ¶
NewScopesFromIDs creates a new scopes meta data collection from the provided scopes IDs optionally also adding definitions from a parent.
Click to show internal directories.
Click to hide internal directories.