objects

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DIRENTRY = "dir_entry"
View Source
const FILE = "file"
View Source
const FILEINFO = "file_info"
View Source
const FILEMODE = "file_mode"

Variables

This section is empty.

Functions

This section is empty.

Types

type DirEntry

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

func NewDirEntry

func NewDirEntry(value ren.DirEntry) *DirEntry

func (*DirEntry) Attrs

func (d *DirEntry) Attrs() []object.AttrSpec

func (*DirEntry) Equals

func (d *DirEntry) Equals(other object.Object) bool

func (*DirEntry) GetAttr

func (d *DirEntry) GetAttr(name string) (object.Object, bool)

func (*DirEntry) Inspect

func (d *DirEntry) Inspect() string

func (*DirEntry) Interface

func (d *DirEntry) Interface() any

func (*DirEntry) IsTruthy

func (d *DirEntry) IsTruthy() bool

func (*DirEntry) MarshalJSON

func (d *DirEntry) MarshalJSON() ([]byte, error)

func (*DirEntry) RunOperation

func (d *DirEntry) RunOperation(opType op.BinaryOpType, right object.Object) (object.Object, error)

func (*DirEntry) SetAttr

func (d *DirEntry) SetAttr(name string, value object.Object) error

func (*DirEntry) String

func (d *DirEntry) String() string

func (*DirEntry) Type

func (d *DirEntry) Type() object.Type

func (*DirEntry) Value

func (d *DirEntry) Value() ren.DirEntry

type File

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

func NewFile

func NewFile(ctx context.Context, value ren.File, path string) *File

func (*File) Attrs

func (f *File) Attrs() []object.AttrSpec

func (*File) Equals

func (f *File) Equals(other object.Object) bool

func (*File) GetAttr

func (f *File) GetAttr(name string) (object.Object, bool)

func (*File) Inspect

func (f *File) Inspect() string

func (*File) Interface

func (f *File) Interface() any

func (*File) IsTruthy

func (f *File) IsTruthy() bool

func (*File) MarshalJSON

func (f *File) MarshalJSON() ([]byte, error)

func (*File) RunOperation

func (f *File) RunOperation(opType op.BinaryOpType, right object.Object) (object.Object, error)

func (*File) SetAttr

func (f *File) SetAttr(name string, value object.Object) error

func (*File) String

func (f *File) String() string

func (*File) Type

func (f *File) Type() object.Type

func (*File) Value

func (f *File) Value() ren.File

type FileInfo

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

func NewFileInfo

func NewFileInfo(value ren.FileInfo) *FileInfo

func (*FileInfo) Attrs

func (f *FileInfo) Attrs() []object.AttrSpec

func (*FileInfo) Equals

func (f *FileInfo) Equals(other object.Object) bool

func (*FileInfo) GetAttr

func (f *FileInfo) GetAttr(name string) (object.Object, bool)

func (*FileInfo) Inspect

func (f *FileInfo) Inspect() string

func (*FileInfo) Interface

func (f *FileInfo) Interface() any

func (*FileInfo) IsTruthy

func (f *FileInfo) IsTruthy() bool

func (*FileInfo) MarshalJSON

func (f *FileInfo) MarshalJSON() ([]byte, error)

func (*FileInfo) RunOperation

func (f *FileInfo) RunOperation(opType op.BinaryOpType, right object.Object) (object.Object, error)

func (*FileInfo) SetAttr

func (f *FileInfo) SetAttr(name string, value object.Object) error

func (*FileInfo) String

func (f *FileInfo) String() string

func (*FileInfo) Type

func (f *FileInfo) Type() object.Type

func (*FileInfo) Value

func (f *FileInfo) Value() ren.FileInfo

type FileMode

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

func NewFileMode

func NewFileMode(value ren.FileMode) *FileMode

func (*FileMode) Attrs

func (m *FileMode) Attrs() []object.AttrSpec

func (*FileMode) Compare

func (m *FileMode) Compare(other object.Object) (int, error)

func (*FileMode) Equals

func (m *FileMode) Equals(other object.Object) bool

func (*FileMode) GetAttr

func (m *FileMode) GetAttr(name string) (object.Object, bool)

func (*FileMode) Inspect

func (m *FileMode) Inspect() string

func (*FileMode) Interface

func (m *FileMode) Interface() any

func (*FileMode) IsTruthy

func (m *FileMode) IsTruthy() bool

func (*FileMode) MarshalJSON

func (m *FileMode) MarshalJSON() ([]byte, error)

func (*FileMode) RunOperation

func (m *FileMode) RunOperation(opType op.BinaryOpType, right object.Object) (object.Object, error)

func (*FileMode) SetAttr

func (m *FileMode) SetAttr(name string, value object.Object) error

func (*FileMode) String

func (m *FileMode) String() string

func (*FileMode) Type

func (m *FileMode) Type() object.Type

func (*FileMode) Value

func (m *FileMode) Value() ren.FileMode

Jump to

Keyboard shortcuts

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