Documentation ¶
Overview ¶
Package permissionscfg contains code to work with permissions.cfg
Index ¶
- func Get(ctx context.Context) (*configspb.PermissionsConfig, error)
- func GetWithMetadata(ctx context.Context) (*configspb.PermissionsConfig, *config.Meta, error)
- func SetConfig(ctx context.Context, cfg *configspb.PermissionsConfig) error
- func SetConfigWithMetadata(ctx context.Context, cfg *configspb.PermissionsConfig, meta *config.Meta) error
- func Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(ctx context.Context) (*configspb.PermissionsConfig, error)
Get returns the config stored in context.
func GetWithMetadata ¶
GetWithMetadata returns the config and its metadata stored in context.
func SetConfig ¶
func SetConfig(ctx context.Context, cfg *configspb.PermissionsConfig) error
SetConfig installs the cfg with empty metadata into the context ctx.
func SetConfigWithMetadata ¶
func SetConfigWithMetadata(ctx context.Context, cfg *configspb.PermissionsConfig, meta *config.Meta) error
SetConfigWithMetadata installs the cfg with the given metadata into the context ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.