object

package
v0.0.0-...-9ecad67 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type External

type External struct {
	Object

	// This is the type of the referred object
	RefType ObjectType

	DriverName       string
	EncodedReference string
}

func (External) Type

func (obj External) Type() ObjectType

type File

type File struct {
	Object
	Data []byte
}

func (File) Type

func (obj File) Type() ObjectType

type Object

type Object interface {
	Type() ObjectType
}

type ObjectMode

type ObjectMode int
const (
	ObjectModeNormal     ObjectMode = iota
	ObjectModeExecutable            // Only applies to type "file"
)

type ObjectType

type ObjectType int

Core types used for communicating between drivers and the file system

const (
	ObjectTypeTree ObjectType = iota
	ObjectTypeFile
	ObjectTypeSymlink
	ObjectTypeExternal
)
type Symlink struct {
	Object

	Target string
}

func (Symlink) Type

func (obj Symlink) Type() ObjectType

type Tree

type Tree struct {
	Object
	Entries []TreeEntry
}

func (Tree) Type

func (obj Tree) Type() ObjectType

type TreeEntry

type TreeEntry struct {
	Name   string
	Type   ObjectType
	Mode   ObjectMode
	Object Object
}

Jump to

Keyboard shortcuts

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