tengo

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketConfig

type BucketConfig struct {
	tengoLib.ObjectImpl
	Value config.Bucket
}

BucketConfig struct wrapping tengo

func (*BucketConfig) BinaryOp

func (o *BucketConfig) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

BinaryOp not implented

func (*BucketConfig) Copy

func (o *BucketConfig) Copy() tengoLib.Object

Copy create shallow copy of bucket object

func (*BucketConfig) Equals

func (o *BucketConfig) Equals(x tengoLib.Object) bool

Equals checks bucket name

func (*BucketConfig) IndexGet

func (o *BucketConfig) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

IndexGet returns the value for the given key. for * `transform` it will return Transform tengo object * `keys` it will return tengo map with s3 access keys * `headers` it will return tengo map with headers * `name` it will return name of bucket for others keys it will return undefine value

func (*BucketConfig) IsFalsy

func (o *BucketConfig) IsFalsy() bool

IsFalsy returns false if bucket name is empty

func (*BucketConfig) String

func (o *BucketConfig) String() string

Strings returns Bucket name

func (*BucketConfig) TypeName

func (o *BucketConfig) TypeName() string

type FileObject

type FileObject struct {
	tengoLib.ObjectImpl
	Value *object.FileObject
}

FileObject struct wraping objectFileObject

func (*FileObject) BinaryOp

func (o *FileObject) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

BinaryOp not implemented

func (*FileObject) Copy

func (o *FileObject) Copy() tengoLib.Object

Copy create copy using object.FileObject.Copy

func (*FileObject) Equals

func (o *FileObject) Equals(x tengoLib.Object) bool

Equals returns true if objects url are the same

func (*FileObject) IndexGet

func (o *FileObject) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

IndexGet returns the value for the given key. * `uri` return object Url * `bucket` return bucket name string * `key` return object storage path * `transforms` return Transforms object on which you can execute image manipulations Usage in tengo

obj.key // access to object key

func (*FileObject) IndexSet

func (o *FileObject) IndexSet(index, value tengoLib.Object) (err error)

IndexSet allow to change value on FileObject * `allowChangeKey` * `checkParent` * `debug`

func (*FileObject) IsFalsy

func (o *FileObject) IsFalsy() bool

IsFalsy returns false if uri is empty

func (*FileObject) String

func (o *FileObject) String() string

String returns object uri

func (*FileObject) TypeName

func (o *FileObject) TypeName() string

type Filters

type Filters struct {
	tengoLib.ObjectImpl
	Value config.Filters
}

Filters struct create Filters struct inside of tengo VM

func (*Filters) BinaryOp

func (o *Filters) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

BinaryOp not implemented

func (*Filters) Copy

func (o *Filters) Copy() tengoLib.Object

func (*Filters) Equals

func (o *Filters) Equals(_ tengoLib.Object) bool

Equals returns false

func (*Filters) IndexGet

func (o *Filters) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

IndexGet returns the value for the given key.

func (*Filters) IsFalsy

func (o *Filters) IsFalsy() bool

IsFalsy return always true

func (*Filters) String

func (o *Filters) String() string

String return empty string

func (*Filters) TypeName

func (o *Filters) TypeName() string

type Preset

type Preset struct {
	tengoLib.ObjectImpl
	Value config.Preset
}

Preset struct create Preset struct inside of tengo VM

func (*Preset) BinaryOp

func (o *Preset) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

BinaryOp not implemented

func (*Preset) Copy

func (o *Preset) Copy() tengoLib.Object

func (*Preset) Equals

func (o *Preset) Equals(_ tengoLib.Object) bool

Equals returns false

func (*Preset) IndexGet

func (o *Preset) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

IndexGet returns the value for the given key.

func (*Preset) IsFalsy

func (o *Preset) IsFalsy() bool

IsFalsy return always true

func (*Preset) String

func (o *Preset) String() string

String return empty string

func (*Preset) TypeName

func (o *Preset) TypeName() string

type Regexp

type Regexp struct {
	tengoLib.ObjectImpl
	Value *regexp.Regexp
}

Regexp struct create regexp in tengo VM

func (*Regexp) BinaryOp

func (o *Regexp) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

BinaryOp not implemented

func (*Regexp) Call

func (o *Regexp) Call(args ...tengoLib.Object) (ret tengoLib.Object, err error)

Call can executed regexp on given value and return immutable map with matches

func (*Regexp) CanCall

func (o *Regexp) CanCall() bool

func (*Regexp) Copy

func (o *Regexp) Copy() tengoLib.Object

func (*Regexp) Equals

func (o *Regexp) Equals(x tengoLib.Object) bool

Equals return true if regexp string are equal

func (*Regexp) IsFalsy

func (o *Regexp) IsFalsy() bool

IsFalsy return true if regexp is nil

func (*Regexp) String

func (o *Regexp) String() string

String return regexp in string

func (*Regexp) TypeName

func (o *Regexp) TypeName() string

type Transform

type Transform struct {
	tengoLib.ObjectImpl
	Value *config.Transform
}

func (*Transform) BinaryOp

func (o *Transform) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

func (*Transform) Copy

func (o *Transform) Copy() tengoLib.Object

func (*Transform) Equals

func (o *Transform) Equals(x tengoLib.Object) bool

func (*Transform) IndexGet

func (o *Transform) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

IndexGet returns the value for the given key.

func (*Transform) IsFalsy

func (o *Transform) IsFalsy() bool

func (*Transform) String

func (o *Transform) String() string

func (*Transform) TypeName

func (o *Transform) TypeName() string

type Transforms

type Transforms struct {
	tengoLib.ObjectImpl
	Value *transforms.Transforms
}

func (*Transforms) BinaryOp

func (o *Transforms) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

func (*Transforms) Copy

func (o *Transforms) Copy() tengoLib.Object

func (*Transforms) Equals

func (o *Transforms) Equals(x tengoLib.Object) bool

func (*Transforms) IndexGet

func (o *Transforms) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

IndexGet returns the value for the given key.

func (*Transforms) IsFalsy

func (o *Transforms) IsFalsy() bool

func (*Transforms) String

func (o *Transforms) String() string

func (*Transforms) TypeName

func (o *Transforms) TypeName() string

type URL

type URL struct {
	tengoLib.ObjectImpl
	Value *url.URL
}

URL tengo struct wrapping net/url

func (*URL) BinaryOp

func (o *URL) BinaryOp(op token.Token, rhs tengoLib.Object) (tengoLib.Object, error)

BinaryOp not implemented

func (*URL) Copy

func (o *URL) Copy() tengoLib.Object

Copy create copy of url

func (*URL) Equals

func (o *URL) Equals(x tengoLib.Object) bool

Equals returns true if url are the same

func (*URL) IndexGet

func (o *URL) IndexGet(index tengoLib.Object) (val tengoLib.Object, err error)

func (*URL) IsFalsy

func (o *URL) IsFalsy() bool

IsFalsy returns true if url is emptu

func (*URL) String

func (o *URL) String() string

Strings returns full url

func (*URL) TypeName

func (o *URL) TypeName() string

Jump to

Keyboard shortcuts

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