Documentation ¶
Index ¶
- type Backend
- type Bucket
- type Config
- type Frontend
- type Hook
- type Middleware
- type PermissionsConfig
- type Resource
- type ResourceBackend
- type ResourceBackends
- type ResourceType
- type ResourceTypeConfig
- type Resources
- type ResourcesRepository
- func (repo *ResourcesRepository) Close() error
- func (repo *ResourcesRepository) GetAll(ctx context.Context) ([]resource.YAML, error)
- func (repo *ResourcesRepository) GetRelationsForNamespace(ctx context.Context, namespaceID string) (map[string]bool, error)
- func (repo *ResourcesRepository) InitCache(ctx context.Context, refreshDelay time.Duration) error
- type RoleConfig
- type Rule
- type RuleRepository
- type Ruleset
- type SchemaConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Config ¶
type Config struct { Type string `yaml:"type" json:"type"` ResourceTypes []ResourceTypeConfig `yaml:"resource_types" json:"resource_types,omitempty"` Roles []RoleConfig `yaml:"roles" json:"roles,omitempty"` Permissions []PermissionsConfig `yaml:"permissions" json:"permissions,omitempty"` }
type Frontend ¶
type Frontend struct { Action string `yaml:"action"` Path string `yaml:"path"` Method string `yaml:"method"` Middlewares []Middleware `yaml:"middlewares"` Hooks []Hook `yaml:"hooks"` }
type Middleware ¶
type PermissionsConfig ¶
type ResourceBackend ¶
type ResourceBackend struct { Name string `json:"name" yaml:"name"` ResourceTypes []ResourceType `json:"resource_types" yaml:"resource_types"` }
type ResourceBackends ¶
type ResourceBackends struct {
Backends []ResourceBackend `json:"backends" yaml:"backends"`
}
type ResourceType ¶
type ResourceTypeConfig ¶
type ResourceTypeConfig struct { Name string `yaml:"name" json:"name"` Roles []RoleConfig `yaml:"roles" json:"roles"` Permissions []PermissionsConfig `yaml:"permissions" json:"permissions"` }
type ResourcesRepository ¶
type ResourcesRepository struct { Bucket Bucket // contains filtered or unexported fields }
func NewResourcesRepository ¶
func NewResourcesRepository(logger log.Logger, b Bucket) *ResourcesRepository
func (*ResourcesRepository) Close ¶
func (repo *ResourcesRepository) Close() error
func (*ResourcesRepository) GetRelationsForNamespace ¶
type RoleConfig ¶
type RuleRepository ¶
type RuleRepository struct {
// contains filtered or unexported fields
}
func NewRuleRepository ¶
func NewRuleRepository(logger log.Logger, b Bucket) *RuleRepository
func (*RuleRepository) Close ¶
func (repo *RuleRepository) Close() error
type SchemaConfig ¶
type SchemaConfig struct {
// contains filtered or unexported fields
}
func NewSchemaConfigRepository ¶
func NewSchemaConfigRepository(b Bucket) *SchemaConfig
func (*SchemaConfig) GetSchema ¶
func (s *SchemaConfig) GetSchema(ctx context.Context) (schema.NamespaceConfigMapType, error)
Click to show internal directories.
Click to hide internal directories.