Documentation ¶
Index ¶
- func ActionlogHandler(reg actionlogHandlerRegistry, svc actionlog.Recorder) *actionlogHandler
- func CastToAction(val interface{}) (out *actionlog.Action, err error)
- func CastToDocumentType(val interface{}) (out types.DocumentType, err error)
- func CastToQueueMessage(val interface{}) (out *types.QueueMessage, err error)
- func CastToRbacResource(val interface{}) (out rbac.Resource, err error)
- func CastToRenderOptions(val interface{}) (out map[string]string, err error)
- func CastToRenderedDocument(val interface{}) (out *renderedDocument, err error)
- func CastToRole(val interface{}) (out *types.Role, err error)
- func CastToTemplate(val interface{}) (out *types.Template, err error)
- func CastToTemplateMeta(val interface{}) (out types.TemplateMeta, err error)
- func CastToUser(val interface{}) (out *types.User, err error)
- func RbacHandler(reg rbacHandlerRegistry, rbac rbacService, user rbacUserService, ...) *rbacHandler
- func RolesHandler(reg rolesHandlerRegistry, rSvc roleService, uSvc userService) *rolesHandler
- func TemplatesHandler(reg templatesHandlerRegistry, tSvc templateService) *templatesHandler
- func UsersHandler(reg usersHandlerRegistry, uSvc userService, rSvc roleService) *usersHandler
- func ValuestoreHandler(reg valuestoreHandlerRegistry, getter envGetter) *valuestoreHandler
- type Action
- type DocumentType
- type QueueMessage
- func (t *QueueMessage) Assign(val interface{}) error
- func (t *QueueMessage) AssignFieldValue(key string, val TypedValue) error
- func (QueueMessage) Cast(val interface{}) (TypedValue, error)
- func (v *QueueMessage) Clone() (expr.TypedValue, error)
- func (t *QueueMessage) Get() interface{}
- func (t *QueueMessage) GetValue() *types.QueueMessage
- func (t *QueueMessage) Has(k string) bool
- func (t *QueueMessage) Select(k string) (TypedValue, error)
- func (t *QueueMessage) SelectGVal(ctx context.Context, k string) (interface{}, error)
- func (QueueMessage) Type() string
- type RbacResource
- type RenderOptions
- func (t *RenderOptions) Assign(val interface{}) error
- func (t *RenderOptions) AssignFieldValue(key string, val expr.TypedValue) error
- func (RenderOptions) Cast(val interface{}) (TypedValue, error)
- func (v *RenderOptions) Clone() (expr.TypedValue, error)
- func (t *RenderOptions) Get() interface{}
- func (t *RenderOptions) GetValue() map[string]string
- func (RenderOptions) Type() string
- type RenderedDocument
- func (t *RenderedDocument) Assign(val interface{}) error
- func (t *RenderedDocument) AssignFieldValue(key string, val TypedValue) error
- func (RenderedDocument) Cast(val interface{}) (TypedValue, error)
- func (v *RenderedDocument) Clone() (expr.TypedValue, error)
- func (t *RenderedDocument) Get() interface{}
- func (t *RenderedDocument) GetValue() *renderedDocument
- func (t *RenderedDocument) Has(k string) bool
- func (t *RenderedDocument) Select(k string) (TypedValue, error)
- func (t *RenderedDocument) SelectGVal(ctx context.Context, k string) (interface{}, error)
- func (RenderedDocument) Type() string
- type Role
- func (t *Role) Assign(val interface{}) error
- func (t *Role) AssignFieldValue(key string, val TypedValue) error
- func (Role) Cast(val interface{}) (TypedValue, error)
- func (v *Role) Clone() (expr.TypedValue, error)
- func (t *Role) Get() interface{}
- func (t *Role) GetValue() *types.Role
- func (t *Role) Has(k string) bool
- func (t *Role) Select(k string) (TypedValue, error)
- func (t *Role) SelectGVal(ctx context.Context, k string) (interface{}, error)
- func (Role) Type() string
- type Template
- func (t *Template) Assign(val interface{}) error
- func (t *Template) AssignFieldValue(key string, val TypedValue) error
- func (Template) Cast(val interface{}) (TypedValue, error)
- func (v *Template) Clone() (expr.TypedValue, error)
- func (t *Template) Get() interface{}
- func (t *Template) GetValue() *types.Template
- func (t *Template) Has(k string) bool
- func (t *Template) Select(k string) (TypedValue, error)
- func (t *Template) SelectGVal(ctx context.Context, k string) (interface{}, error)
- func (Template) Type() string
- type TemplateMeta
- func (t *TemplateMeta) Assign(val interface{}) error
- func (t *TemplateMeta) AssignFieldValue(key string, val TypedValue) error
- func (TemplateMeta) Cast(val interface{}) (TypedValue, error)
- func (v *TemplateMeta) Clone() (expr.TypedValue, error)
- func (t *TemplateMeta) Get() interface{}
- func (t *TemplateMeta) GetValue() types.TemplateMeta
- func (t *TemplateMeta) Has(k string) bool
- func (t *TemplateMeta) Select(k string) (TypedValue, error)
- func (t *TemplateMeta) SelectGVal(ctx context.Context, k string) (interface{}, error)
- func (TemplateMeta) Type() string
- type User
- func (t *User) Assign(val interface{}) error
- func (t *User) AssignFieldValue(key string, val TypedValue) error
- func (User) Cast(val interface{}) (TypedValue, error)
- func (v *User) Clone() (expr.TypedValue, error)
- func (t *User) Get() interface{}
- func (t *User) GetValue() *types.User
- func (t *User) Has(k string) bool
- func (t *User) Select(k string) (TypedValue, error)
- func (t *User) SelectGVal(ctx context.Context, k string) (interface{}, error)
- func (User) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionlogHandler ¶
func CastToAction ¶
func CastToDocumentType ¶
func CastToDocumentType(val interface{}) (out types.DocumentType, err error)
func CastToQueueMessage ¶
func CastToQueueMessage(val interface{}) (out *types.QueueMessage, err error)
func CastToRbacResource ¶
func CastToRenderOptions ¶
func CastToRenderedDocument ¶
func CastToRenderedDocument(val interface{}) (out *renderedDocument, err error)
func CastToRole ¶
func CastToTemplate ¶
func CastToTemplateMeta ¶
func CastToTemplateMeta(val interface{}) (out types.TemplateMeta, err error)
func CastToUser ¶
func RbacHandler ¶
func RbacHandler(reg rbacHandlerRegistry, rbac rbacService, user rbacUserService, role roleService) *rbacHandler
func RolesHandler ¶
func RolesHandler(reg rolesHandlerRegistry, rSvc roleService, uSvc userService) *rolesHandler
func TemplatesHandler ¶
func TemplatesHandler(reg templatesHandlerRegistry, tSvc templateService) *templatesHandler
func UsersHandler ¶
func UsersHandler(reg usersHandlerRegistry, uSvc userService, rSvc roleService) *usersHandler
func ValuestoreHandler ¶
func ValuestoreHandler(reg valuestoreHandlerRegistry, getter envGetter) *valuestoreHandler
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action is an expression type, wrapper for *actionlog.Action type
type DocumentType ¶
type DocumentType struct {
// contains filtered or unexported fields
}
DocumentType is an expression type, wrapper for types.DocumentType type
func NewDocumentType ¶
func NewDocumentType(val interface{}) (*DocumentType, error)
NewDocumentType creates new instance of DocumentType expression type
func (*DocumentType) Assign ¶
func (t *DocumentType) Assign(val interface{}) error
Assign new value to DocumentType
value is first passed through CastToDocumentType
func (DocumentType) Cast ¶
func (DocumentType) Cast(val interface{}) (TypedValue, error)
Cast converts value to types.DocumentType
func (*DocumentType) Clone ¶
func (v *DocumentType) Clone() (expr.TypedValue, error)
func (*DocumentType) Get ¶
func (t *DocumentType) Get() interface{}
Get return underlying value on DocumentType
func (*DocumentType) GetValue ¶
func (t *DocumentType) GetValue() types.DocumentType
GetValue returns underlying value on DocumentType
type QueueMessage ¶
type QueueMessage struct {
// contains filtered or unexported fields
}
QueueMessage is an expression type, wrapper for *types.QueueMessage type
func NewQueueMessage ¶
func NewQueueMessage(val interface{}) (*QueueMessage, error)
NewQueueMessage creates new instance of QueueMessage expression type
func (*QueueMessage) Assign ¶
func (t *QueueMessage) Assign(val interface{}) error
Assign new value to QueueMessage
value is first passed through CastToQueueMessage
func (*QueueMessage) AssignFieldValue ¶
func (t *QueueMessage) AssignFieldValue(key string, val TypedValue) error
func (QueueMessage) Cast ¶
func (QueueMessage) Cast(val interface{}) (TypedValue, error)
Cast converts value to *types.QueueMessage
func (*QueueMessage) Clone ¶
func (v *QueueMessage) Clone() (expr.TypedValue, error)
func (*QueueMessage) Get ¶
func (t *QueueMessage) Get() interface{}
Get return underlying value on QueueMessage
func (*QueueMessage) GetValue ¶
func (t *QueueMessage) GetValue() *types.QueueMessage
GetValue returns underlying value on QueueMessage
func (*QueueMessage) Has ¶
func (t *QueueMessage) Has(k string) bool
func (*QueueMessage) Select ¶
func (t *QueueMessage) Select(k string) (TypedValue, error)
Select is field accessor for *types.QueueMessage
Similar to SelectGVal but returns typed values
func (*QueueMessage) SelectGVal ¶
func (t *QueueMessage) SelectGVal(ctx context.Context, k string) (interface{}, error)
SelectGVal implements gval.Selector requirements
It allows gval lib to access QueueMessage's underlying value (*types.QueueMessage) and it's fields
type RbacResource ¶
type RbacResource struct {
// contains filtered or unexported fields
}
RbacResource is an expression type, wrapper for rbac.Resource type
func NewRbacResource ¶
func NewRbacResource(val interface{}) (*RbacResource, error)
NewRbacResource creates new instance of RbacResource expression type
func (*RbacResource) Assign ¶
func (t *RbacResource) Assign(val interface{}) error
Assign new value to RbacResource
value is first passed through CastToRbacResource
func (RbacResource) Cast ¶
func (RbacResource) Cast(val interface{}) (TypedValue, error)
Cast converts value to rbac.Resource
func (*RbacResource) Clone ¶
func (v *RbacResource) Clone() (expr.TypedValue, error)
func (*RbacResource) Get ¶
func (t *RbacResource) Get() interface{}
Get return underlying value on RbacResource
func (*RbacResource) GetValue ¶
func (t *RbacResource) GetValue() rbac.Resource
GetValue returns underlying value on RbacResource
type RenderOptions ¶
type RenderOptions struct {
// contains filtered or unexported fields
}
RenderOptions is an expression type, wrapper for map[string]string type
func NewRenderOptions ¶
func NewRenderOptions(val interface{}) (*RenderOptions, error)
NewRenderOptions creates new instance of RenderOptions expression type
func (*RenderOptions) Assign ¶
func (t *RenderOptions) Assign(val interface{}) error
Assign new value to RenderOptions
value is first passed through CastToRenderOptions
func (*RenderOptions) AssignFieldValue ¶
func (t *RenderOptions) AssignFieldValue(key string, val expr.TypedValue) error
func (RenderOptions) Cast ¶
func (RenderOptions) Cast(val interface{}) (TypedValue, error)
Cast converts value to map[string]string
func (*RenderOptions) Clone ¶
func (v *RenderOptions) Clone() (expr.TypedValue, error)
func (*RenderOptions) Get ¶
func (t *RenderOptions) Get() interface{}
Get return underlying value on RenderOptions
func (*RenderOptions) GetValue ¶
func (t *RenderOptions) GetValue() map[string]string
GetValue returns underlying value on RenderOptions
type RenderedDocument ¶
type RenderedDocument struct {
// contains filtered or unexported fields
}
RenderedDocument is an expression type, wrapper for *renderedDocument type
func NewRenderedDocument ¶
func NewRenderedDocument(val interface{}) (*RenderedDocument, error)
NewRenderedDocument creates new instance of RenderedDocument expression type
func (*RenderedDocument) Assign ¶
func (t *RenderedDocument) Assign(val interface{}) error
Assign new value to RenderedDocument
value is first passed through CastToRenderedDocument
func (*RenderedDocument) AssignFieldValue ¶
func (t *RenderedDocument) AssignFieldValue(key string, val TypedValue) error
func (RenderedDocument) Cast ¶
func (RenderedDocument) Cast(val interface{}) (TypedValue, error)
Cast converts value to *renderedDocument
func (*RenderedDocument) Clone ¶
func (v *RenderedDocument) Clone() (expr.TypedValue, error)
func (*RenderedDocument) Get ¶
func (t *RenderedDocument) Get() interface{}
Get return underlying value on RenderedDocument
func (*RenderedDocument) GetValue ¶
func (t *RenderedDocument) GetValue() *renderedDocument
GetValue returns underlying value on RenderedDocument
func (*RenderedDocument) Has ¶
func (t *RenderedDocument) Has(k string) bool
func (*RenderedDocument) Select ¶
func (t *RenderedDocument) Select(k string) (TypedValue, error)
Select is field accessor for *renderedDocument
Similar to SelectGVal but returns typed values
func (*RenderedDocument) SelectGVal ¶
func (t *RenderedDocument) SelectGVal(ctx context.Context, k string) (interface{}, error)
SelectGVal implements gval.Selector requirements
It allows gval lib to access RenderedDocument's underlying value (*renderedDocument) and it's fields
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
Role is an expression type, wrapper for *types.Role type
func (*Role) AssignFieldValue ¶
func (*Role) Select ¶
Select is field accessor for *types.Role
Similar to SelectGVal but returns typed values
func (*Role) SelectGVal ¶
SelectGVal implements gval.Selector requirements
It allows gval lib to access Role's underlying value (*types.Role) and it's fields
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template is an expression type, wrapper for *types.Template type
func NewTemplate ¶
NewTemplate creates new instance of Template expression type
func (*Template) AssignFieldValue ¶
func (*Template) Select ¶
Select is field accessor for *types.Template
Similar to SelectGVal but returns typed values
func (*Template) SelectGVal ¶
SelectGVal implements gval.Selector requirements
It allows gval lib to access Template's underlying value (*types.Template) and it's fields
type TemplateMeta ¶
type TemplateMeta struct {
// contains filtered or unexported fields
}
TemplateMeta is an expression type, wrapper for types.TemplateMeta type
func NewTemplateMeta ¶
func NewTemplateMeta(val interface{}) (*TemplateMeta, error)
NewTemplateMeta creates new instance of TemplateMeta expression type
func (*TemplateMeta) Assign ¶
func (t *TemplateMeta) Assign(val interface{}) error
Assign new value to TemplateMeta
value is first passed through CastToTemplateMeta
func (*TemplateMeta) AssignFieldValue ¶
func (t *TemplateMeta) AssignFieldValue(key string, val TypedValue) error
func (TemplateMeta) Cast ¶
func (TemplateMeta) Cast(val interface{}) (TypedValue, error)
Cast converts value to types.TemplateMeta
func (*TemplateMeta) Clone ¶
func (v *TemplateMeta) Clone() (expr.TypedValue, error)
func (*TemplateMeta) Get ¶
func (t *TemplateMeta) Get() interface{}
Get return underlying value on TemplateMeta
func (*TemplateMeta) GetValue ¶
func (t *TemplateMeta) GetValue() types.TemplateMeta
GetValue returns underlying value on TemplateMeta
func (*TemplateMeta) Has ¶
func (t *TemplateMeta) Has(k string) bool
func (*TemplateMeta) Select ¶
func (t *TemplateMeta) Select(k string) (TypedValue, error)
Select is field accessor for types.TemplateMeta
Similar to SelectGVal but returns typed values
func (*TemplateMeta) SelectGVal ¶
func (t *TemplateMeta) SelectGVal(ctx context.Context, k string) (interface{}, error)
SelectGVal implements gval.Selector requirements
It allows gval lib to access TemplateMeta's underlying value (types.TemplateMeta) and it's fields
type User ¶
type User struct {
// contains filtered or unexported fields
}
User is an expression type, wrapper for *types.User type
func (*User) AssignFieldValue ¶
func (*User) Select ¶
Select is field accessor for *types.User
Similar to SelectGVal but returns typed values
func (*User) SelectGVal ¶
SelectGVal implements gval.Selector requirements
It allows gval lib to access User's underlying value (*types.User) and it's fields