automation

package
v0.0.0-...-06831c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionlogHandler

func ActionlogHandler(reg actionlogHandlerRegistry, svc actionlog.Recorder) *actionlogHandler

func CastToAction

func CastToAction(val interface{}) (out *actionlog.Action, err error)

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 CastToRbacResource(val interface{}) (out rbac.Resource, err error)

func CastToRenderOptions

func CastToRenderOptions(val interface{}) (out map[string]string, err error)

func CastToRenderedDocument

func CastToRenderedDocument(val interface{}) (out *renderedDocument, err error)

func CastToRole

func CastToRole(val interface{}) (out *types.Role, err error)

func CastToTemplate

func CastToTemplate(val interface{}) (out *types.Template, err error)

func CastToTemplateMeta

func CastToTemplateMeta(val interface{}) (out types.TemplateMeta, err error)

func CastToUser

func CastToUser(val interface{}) (out *types.User, err error)

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

func NewAction

func NewAction(val interface{}) (*Action, error)

NewAction creates new instance of Action expression type

func (*Action) Assign

func (t *Action) Assign(val interface{}) error

Assign new value to Action

value is first passed through CastToAction

func (Action) Cast

func (Action) Cast(val interface{}) (TypedValue, error)

Cast converts value to *actionlog.Action

func (*Action) Clone

func (v *Action) Clone() (expr.TypedValue, error)

func (*Action) Get

func (t *Action) Get() interface{}

Get return underlying value on Action

func (*Action) GetValue

func (t *Action) GetValue() *actionlog.Action

GetValue returns underlying value on Action

func (Action) Type

func (Action) Type() string

Type return type name

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

func (DocumentType) Type

func (DocumentType) Type() string

Type return type name

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

func (QueueMessage) Type

func (QueueMessage) Type() string

Type return type name

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

func (RbacResource) Type

func (RbacResource) Type() string

Type return type name

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

func (RenderOptions) Type

func (RenderOptions) Type() string

Type return type name

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

func (RenderedDocument) Type

func (RenderedDocument) Type() string

Type return type name

type Role

type Role struct {
	// contains filtered or unexported fields
}

Role is an expression type, wrapper for *types.Role type

func NewRole

func NewRole(val interface{}) (*Role, error)

NewRole creates new instance of Role expression type

func (*Role) Assign

func (t *Role) Assign(val interface{}) error

Assign new value to Role

value is first passed through CastToRole

func (*Role) AssignFieldValue

func (t *Role) AssignFieldValue(key string, val TypedValue) error

func (Role) Cast

func (Role) Cast(val interface{}) (TypedValue, error)

Cast converts value to *types.Role

func (*Role) Clone

func (v *Role) Clone() (expr.TypedValue, error)

func (*Role) Get

func (t *Role) Get() interface{}

Get return underlying value on Role

func (*Role) GetValue

func (t *Role) GetValue() *types.Role

GetValue returns underlying value on Role

func (*Role) Has

func (t *Role) Has(k string) bool

func (*Role) Select

func (t *Role) Select(k string) (TypedValue, error)

Select is field accessor for *types.Role

Similar to SelectGVal but returns typed values

func (*Role) SelectGVal

func (t *Role) SelectGVal(ctx context.Context, k string) (interface{}, error)

SelectGVal implements gval.Selector requirements

It allows gval lib to access Role's underlying value (*types.Role) and it's fields

func (Role) Type

func (Role) Type() string

Type return type name

type Template

type Template struct {
	// contains filtered or unexported fields
}

Template is an expression type, wrapper for *types.Template type

func NewTemplate

func NewTemplate(val interface{}) (*Template, error)

NewTemplate creates new instance of Template expression type

func (*Template) Assign

func (t *Template) Assign(val interface{}) error

Assign new value to Template

value is first passed through CastToTemplate

func (*Template) AssignFieldValue

func (t *Template) AssignFieldValue(key string, val TypedValue) error

func (Template) Cast

func (Template) Cast(val interface{}) (TypedValue, error)

Cast converts value to *types.Template

func (*Template) Clone

func (v *Template) Clone() (expr.TypedValue, error)

func (*Template) Get

func (t *Template) Get() interface{}

Get return underlying value on Template

func (*Template) GetValue

func (t *Template) GetValue() *types.Template

GetValue returns underlying value on Template

func (*Template) Has

func (t *Template) Has(k string) bool

func (*Template) Select

func (t *Template) Select(k string) (TypedValue, error)

Select is field accessor for *types.Template

Similar to SelectGVal but returns typed values

func (*Template) SelectGVal

func (t *Template) SelectGVal(ctx context.Context, k string) (interface{}, error)

SelectGVal implements gval.Selector requirements

It allows gval lib to access Template's underlying value (*types.Template) and it's fields

func (Template) Type

func (Template) Type() string

Type return type name

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

func (TemplateMeta) Type

func (TemplateMeta) Type() string

Type return type name

type User

type User struct {
	// contains filtered or unexported fields
}

User is an expression type, wrapper for *types.User type

func NewUser

func NewUser(val interface{}) (*User, error)

NewUser creates new instance of User expression type

func (*User) Assign

func (t *User) Assign(val interface{}) error

Assign new value to User

value is first passed through CastToUser

func (*User) AssignFieldValue

func (t *User) AssignFieldValue(key string, val TypedValue) error

func (User) Cast

func (User) Cast(val interface{}) (TypedValue, error)

Cast converts value to *types.User

func (*User) Clone

func (v *User) Clone() (expr.TypedValue, error)

func (*User) Get

func (t *User) Get() interface{}

Get return underlying value on User

func (*User) GetValue

func (t *User) GetValue() *types.User

GetValue returns underlying value on User

func (*User) Has

func (t *User) Has(k string) bool

func (*User) Select

func (t *User) Select(k string) (TypedValue, error)

Select is field accessor for *types.User

Similar to SelectGVal but returns typed values

func (*User) SelectGVal

func (t *User) SelectGVal(ctx context.Context, k string) (interface{}, error)

SelectGVal implements gval.Selector requirements

It allows gval lib to access User's underlying value (*types.User) and it's fields

func (User) Type

func (User) Type() string

Type return type name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL