Documentation ¶
Overview ¶
Package acl implement access control for configs and actions.
Index ¶
- Variables
- func CanReadConfigSet(ctx context.Context, cs config.Set) (bool, error)
- func CanReadConfigSets(ctx context.Context, sets []config.Set) ([]bool, error)
- func CanReadProject(ctx context.Context, project string) (bool, error)
- func CanReadProjects(ctx context.Context, projects []string) ([]bool, error)
- func CanReadService(ctx context.Context, service string) (bool, error)
- func CanReadServices(ctx context.Context, services []string) ([]bool, error)
- func CanReimportConfigSet(ctx context.Context, cs config.Set) (bool, error)
- func CanReimportProject(ctx context.Context, project string) (bool, error)
- func CanReimportService(ctx context.Context, service string) (bool, error)
- func CanValidateConfigSet(ctx context.Context, cs config.Set) (bool, error)
- func CanValidateProject(ctx context.Context, project string) (bool, error)
- func CanValidateService(ctx context.Context, service string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ReadPermission allows caller to read the config set. ReadPermission = realms.RegisterPermission("configs.configSets.read") // ReadPermission allows caller to validate the config set. ValidatePermission = realms.RegisterPermission("configs.configSets.validate") // ReadPermission allows caller to re-import the config set. ReimportPermission = realms.RegisterPermission("configs.configSets.reimport") )
Functions ¶
func CanReadConfigSet ¶
CanReadConfigSet checks whether the requester can read the provided config set.
func CanReadConfigSets ¶
CanReadConfigSets checks whether the requester can read the config sets.
Returns a bitmap that maps to the provided config sets.
func CanReadProject ¶
CanReadProject checks whether the requester can read the config for the provided project
func CanReadProjects ¶
CanReadProjects checks whether the requester can read the provided projects.
Returns a bitmap that maps to the provided projects.
func CanReadService ¶
CanReadService checks whether the requester can read the config for the provided service.
func CanReadServices ¶
CanReadServices checks whether the requester can read the provided services.
Returns a bitmap that maps to the provided services.
func CanReimportConfigSet ¶
CanReimportConfigSet checks whether the requester can reimport the provided config set.
func CanReimportProject ¶
CanReimportProject checks whether the requester can reimport the config for the provided project.
func CanReimportService ¶
CanReimportService checks whether the requester can reimport the config for the provided service.
func CanValidateConfigSet ¶
CanValidateConfigSet checks whether the requester can validate the provided config set.
func CanValidateProject ¶
CanValidateProject checks whether the requester can validate the config for the provided project.
Types ¶
This section is empty.