automation

package
v0.0.0-...-2873e01 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachmentHandler

func AttachmentHandler(reg modulesHandlerRegistry, svc attachmentService) *attachmentHandler

func CastToAttachment

func CastToAttachment(val interface{}) (out *types.Attachment, err error)

func CastToComposeModule

func CastToComposeModule(val interface{}) (out *types.Module, err error)

func CastToComposeNamespace

func CastToComposeNamespace(val interface{}) (out *types.Namespace, err error)

func CastToComposeRecord

func CastToComposeRecord(val interface{}) (out *types.Record, err error)

func CastToComposeRecordValueErrorSet

func CastToComposeRecordValueErrorSet(val interface{}) (out *types.RecordValueErrorSet, err error)

func CastToComposeRecordValues

func CastToComposeRecordValues(val interface{}) (out types.RecordValueSet, err error)

func ModulesHandler

func ModulesHandler(reg modulesHandlerRegistry, ns namespaceService, mod moduleService) *modulesHandler

func NamespacesHandler

func NamespacesHandler(reg namespacesHandlerRegistry, ns namespaceService) *namespacesHandler

func RecordsHandler

func RecordsHandler(reg recordsHandlerRegistry, ns namespaceService, mod moduleService, rec recordService) *recordsHandler

Types

type Attachment

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

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

func NewAttachment

func NewAttachment(val interface{}) (*Attachment, error)

NewAttachment creates new instance of Attachment expression type

func (*Attachment) Assign

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

Assign new value to Attachment

value is first passed through CastToAttachment

func (*Attachment) AssignFieldValue

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

func (Attachment) Cast

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

Cast converts value to *types.Attachment

func (*Attachment) Clone

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

func (*Attachment) Get

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

Get return underlying value on Attachment

func (*Attachment) GetValue

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

GetValue returns underlying value on Attachment

func (*Attachment) Has

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

func (*Attachment) Select

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

Select is field accessor for *types.Attachment

Similar to SelectGVal but returns typed values

func (*Attachment) SelectGVal

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

SelectGVal implements gval.Selector requirements

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

func (Attachment) Type

func (Attachment) Type() string

Type return type name

type ComposeModule

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

ComposeModule is an expression type, wrapper for *types.Module type

func NewComposeModule

func NewComposeModule(val interface{}) (*ComposeModule, error)

NewComposeModule creates new instance of ComposeModule expression type

func (*ComposeModule) Assign

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

Assign new value to ComposeModule

value is first passed through CastToComposeModule

func (*ComposeModule) AssignFieldValue

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

func (ComposeModule) Cast

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

Cast converts value to *types.Module

func (*ComposeModule) Clone

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

func (*ComposeModule) Get

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

Get return underlying value on ComposeModule

func (*ComposeModule) GetValue

func (t *ComposeModule) GetValue() *types.Module

GetValue returns underlying value on ComposeModule

func (*ComposeModule) Has

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

func (*ComposeModule) Select

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

Select is field accessor for *types.Module

Similar to SelectGVal but returns typed values

func (*ComposeModule) SelectGVal

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

SelectGVal implements gval.Selector requirements

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

func (ComposeModule) Type

func (ComposeModule) Type() string

Type return type name

type ComposeNamespace

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

ComposeNamespace is an expression type, wrapper for *types.Namespace type

func NewComposeNamespace

func NewComposeNamespace(val interface{}) (*ComposeNamespace, error)

NewComposeNamespace creates new instance of ComposeNamespace expression type

func (*ComposeNamespace) Assign

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

Assign new value to ComposeNamespace

value is first passed through CastToComposeNamespace

func (*ComposeNamespace) AssignFieldValue

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

func (ComposeNamespace) Cast

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

Cast converts value to *types.Namespace

func (*ComposeNamespace) Clone

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

func (*ComposeNamespace) Get

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

Get return underlying value on ComposeNamespace

func (*ComposeNamespace) GetValue

func (t *ComposeNamespace) GetValue() *types.Namespace

GetValue returns underlying value on ComposeNamespace

func (*ComposeNamespace) Has

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

func (*ComposeNamespace) Select

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

Select is field accessor for *types.Namespace

Similar to SelectGVal but returns typed values

func (*ComposeNamespace) SelectGVal

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

SelectGVal implements gval.Selector requirements

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

func (ComposeNamespace) Type

func (ComposeNamespace) Type() string

Type return type name

type ComposeRecord

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

ComposeRecord is an expression type, wrapper for *types.Record type

func NewComposeRecord

func NewComposeRecord(val interface{}) (*ComposeRecord, error)

NewComposeRecord creates new instance of ComposeRecord expression type

func (*ComposeRecord) Assign

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

Assign new value to ComposeRecord

value is first passed through CastToComposeRecord

func (*ComposeRecord) AssignFieldValue

func (t *ComposeRecord) AssignFieldValue(p expr.Pather, val expr.TypedValue) (err error)

AssignFieldValue implements expr.DeepFieldAssigner

We need to reroute value assigning for record-value-sets because we loose the reference to record-value slice

func (ComposeRecord) Cast

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

Cast converts value to *types.Record

func (*ComposeRecord) Clone

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

func (*ComposeRecord) Get

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

Get return underlying value on ComposeRecord

func (*ComposeRecord) GetValue

func (t *ComposeRecord) GetValue() *types.Record

GetValue returns underlying value on ComposeRecord

func (*ComposeRecord) Has

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

func (*ComposeRecord) Select

func (t *ComposeRecord) Select(k string) (expr.TypedValue, error)

Select is field accessor for *types.ComposeRecord

Similar to SelectGVal but returns typed values

func (*ComposeRecord) SelectGVal

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

SelectGVal implements gval.Selector requirements

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

func (ComposeRecord) Type

func (ComposeRecord) Type() string

Type return type name

type ComposeRecordValueErrorSet

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

ComposeRecordValueErrorSet is an expression type, wrapper for *types.RecordValueErrorSet type

func NewComposeRecordValueErrorSet

func NewComposeRecordValueErrorSet(val interface{}) (*ComposeRecordValueErrorSet, error)

NewComposeRecordValueErrorSet creates new instance of ComposeRecordValueErrorSet expression type

func (*ComposeRecordValueErrorSet) Assign

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

Assign new value to ComposeRecordValueErrorSet

value is first passed through CastToComposeRecordValueErrorSet

func (ComposeRecordValueErrorSet) Cast

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

Cast converts value to *types.RecordValueErrorSet

func (*ComposeRecordValueErrorSet) Clone

func (*ComposeRecordValueErrorSet) Get

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

Get return underlying value on ComposeRecordValueErrorSet

func (*ComposeRecordValueErrorSet) GetValue

GetValue returns underlying value on ComposeRecordValueErrorSet

func (ComposeRecordValueErrorSet) Type

Type return type name

type ComposeRecordValues

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

func EmptyComposeRecordValues

func EmptyComposeRecordValues() *ComposeRecordValues

func NewComposeRecordValues

func NewComposeRecordValues(val interface{}) (*ComposeRecordValues, error)

NewComposeRecordValues creates new instance of ComposeRecordValues expression type

func (*ComposeRecordValues) Assign

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

Assign new value to ComposeRecordValues

value is first passed through CastToComposeRecordValues

func (*ComposeRecordValues) AssignFieldValue

func (t *ComposeRecordValues) AssignFieldValue(p expr.Pather, val expr.TypedValue) error

func (ComposeRecordValues) Cast

func (ComposeRecordValues) Cast(val interface{}) (expr.TypedValue, error)

Convert value to types.RecordValueSet

func (*ComposeRecordValues) Clone

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

func (*ComposeRecordValues) Delete

func (t *ComposeRecordValues) Delete(keys ...string) (out expr.TypedValue, err error)

func (*ComposeRecordValues) Each

func (t *ComposeRecordValues) Each(fn func(k string, v expr.TypedValue) error) (err error)

func (*ComposeRecordValues) Filter

func (t *ComposeRecordValues) Filter(keys ...string) (out expr.TypedValue, err error)

func (ComposeRecordValues) Get

func (t ComposeRecordValues) Get() interface{}

Return underlying value on ComposeRecordValues

func (ComposeRecordValues) GetValue

Return underlying value on ComposeRecordValues

func (ComposeRecordValues) Has

func (t ComposeRecordValues) Has(k string) bool

func (*ComposeRecordValues) IsEmpty

func (t *ComposeRecordValues) IsEmpty() bool

IsEmpty implements pkg/expr.empty requirements to be able to determine if the value is empty.

This is needed cor cases when we are working with empty records, but are trying to access their values.

func (*ComposeRecordValues) Merge

func (t *ComposeRecordValues) Merge(nn ...expr.Iterator) (out expr.TypedValue, err error)

Merge combines the given ComposeRecordValues into ComposeRecordValues NOTE: It will return CLONE of the original ComposeRecordValues, if it's called without any parameters

func (*ComposeRecordValues) Select

Select is field accessor for *types.Record

Similar to SelectGVal but returns typed values

func (*ComposeRecordValues) SelectGVal

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

SelectGVal implements gval.Selector requirements

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

func (ComposeRecordValues) Type

func (ComposeRecordValues) Type() string

Return type name

Jump to

Keyboard shortcuts

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