files

package
v0.0.0-...-6ce3ea9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BlobTree_TypeID = 0xfde2c325eeeb9f0a

BlobTree_TypeID is the unique identifier for the type BlobTree.

View Source
const File_TypeID = 0xc4abcc30dd3a9483

File_TypeID is the unique identifier for the type File.

View Source
const UnixMetadata_TypeID = 0xeab612050895537a

UnixMetadata_TypeID is the unique identifier for the type UnixMetadata.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobTree

type BlobTree capnp.Struct

func NewBlobTree

func NewBlobTree(s *capnp.Segment) (BlobTree, error)

func NewRootBlobTree

func NewRootBlobTree(s *capnp.Segment) (BlobTree, error)

func ReadRootBlobTree

func ReadRootBlobTree(msg *capnp.Message) (BlobTree, error)

func (BlobTree) Branch

func (s BlobTree) Branch() protocol.Ref

func (BlobTree) DecodeFromPtr

func (BlobTree) DecodeFromPtr(p capnp.Ptr) BlobTree

func (BlobTree) EncodeAsPtr

func (s BlobTree) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (BlobTree) HasBranch

func (s BlobTree) HasBranch() bool

func (BlobTree) HasLeaf

func (s BlobTree) HasLeaf() bool

func (BlobTree) IsValid

func (s BlobTree) IsValid() bool

func (BlobTree) Leaf

func (s BlobTree) Leaf() protocol.Ref

func (BlobTree) Message

func (s BlobTree) Message() *capnp.Message

func (BlobTree) Segment

func (s BlobTree) Segment() *capnp.Segment

func (BlobTree) SetBranch

func (s BlobTree) SetBranch(v protocol.Ref) error

func (BlobTree) SetLeaf

func (s BlobTree) SetLeaf(v protocol.Ref) error

func (BlobTree) SetSize

func (s BlobTree) SetSize(v uint64)

func (BlobTree) Size

func (s BlobTree) Size() uint64

func (BlobTree) String

func (s BlobTree) String() string

func (BlobTree) ToPtr

func (s BlobTree) ToPtr() capnp.Ptr

func (BlobTree) Which

func (s BlobTree) Which() BlobTree_Which

type BlobTree_Future

type BlobTree_Future struct{ *capnp.Future }

BlobTree_Future is a wrapper for a BlobTree promised by a client call.

func (BlobTree_Future) Branch

func (p BlobTree_Future) Branch() protocol.Ref

func (BlobTree_Future) Leaf

func (p BlobTree_Future) Leaf() protocol.Ref

func (BlobTree_Future) Struct

func (f BlobTree_Future) Struct() (BlobTree, error)

type BlobTree_List

type BlobTree_List = capnp.StructList[BlobTree]

BlobTree_List is a list of BlobTree.

func NewBlobTree_List

func NewBlobTree_List(s *capnp.Segment, sz int32) (BlobTree_List, error)

NewBlobTree creates a new list of BlobTree.

type BlobTree_Which

type BlobTree_Which uint16
const (
	BlobTree_Which_leaf   BlobTree_Which = 0
	BlobTree_Which_branch BlobTree_Which = 1
)

func (BlobTree_Which) String

func (w BlobTree_Which) String() string

type File

type File capnp.Struct

func NewFile

func NewFile(s *capnp.Segment) (File, error)

func NewRootFile

func NewRootFile(s *capnp.Segment) (File, error)

func ReadRootFile

func ReadRootFile(msg *capnp.Message) (File, error)

func (File) DecodeFromPtr

func (File) DecodeFromPtr(p capnp.Ptr) File

func (File) Dir

func (s File) Dir() protocol.Ref

func (File) EncodeAsPtr

func (s File) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (File) File

func (s File) File() (BlobTree, error)

func (File) HasDir

func (s File) HasDir() bool

func (File) HasFile

func (s File) HasFile() bool
func (s File) HasSymlink() bool

func (File) IsValid

func (s File) IsValid() bool

func (File) Message

func (s File) Message() *capnp.Message

func (File) Metadata

func (s File) Metadata() File_metadata

func (File) NewFile

func (s File) NewFile() (BlobTree, error)

NewFile sets the file field to a newly allocated BlobTree struct, preferring placement in s's segment.

func (File) Segment

func (s File) Segment() *capnp.Segment

func (File) SetDir

func (s File) SetDir(v protocol.Ref) error

func (File) SetFile

func (s File) SetFile(v BlobTree) error
func (s File) SetSymlink(v string) error

func (File) String

func (s File) String() string
func (s File) Symlink() (string, error)

func (File) SymlinkBytes

func (s File) SymlinkBytes() ([]byte, error)

func (File) ToPtr

func (s File) ToPtr() capnp.Ptr

func (File) Which

func (s File) Which() File_Which

type File_Future

type File_Future struct{ *capnp.Future }

File_Future is a wrapper for a File promised by a client call.

func (File_Future) Dir

func (p File_Future) Dir() protocol.Ref

func (File_Future) File

func (p File_Future) File() BlobTree_Future

func (File_Future) Metadata

func (p File_Future) Metadata() File_metadata_Future

func (File_Future) Struct

func (f File_Future) Struct() (File, error)

type File_List

type File_List = capnp.StructList[File]

File_List is a list of File.

func NewFile_List

func NewFile_List(s *capnp.Segment, sz int32) (File_List, error)

NewFile creates a new list of File.

type File_Which

type File_Which uint16
const (
	File_Which_file    File_Which = 0
	File_Which_dir     File_Which = 2
	File_Which_symlink File_Which = 1
)

func (File_Which) String

func (w File_Which) String() string

type File_metadata

type File_metadata File

func (File_metadata) HasUnixMetadata

func (s File_metadata) HasUnixMetadata() bool

func (File_metadata) IsValid

func (s File_metadata) IsValid() bool

func (File_metadata) Message

func (s File_metadata) Message() *capnp.Message

func (File_metadata) NewUnixMetadata

func (s File_metadata) NewUnixMetadata() (UnixMetadata, error)

NewUnixMetadata sets the unixMetadata field to a newly allocated UnixMetadata struct, preferring placement in s's segment.

func (File_metadata) Segment

func (s File_metadata) Segment() *capnp.Segment

func (File_metadata) SetNoMetadata

func (s File_metadata) SetNoMetadata()

func (File_metadata) SetUnixMetadata

func (s File_metadata) SetUnixMetadata(v UnixMetadata) error

func (File_metadata) UnixMetadata

func (s File_metadata) UnixMetadata() (UnixMetadata, error)

func (File_metadata) Which

type File_metadata_Future

type File_metadata_Future struct{ *capnp.Future }

File_metadata_Future is a wrapper for a File_metadata promised by a client call.

func (File_metadata_Future) Struct

func (File_metadata_Future) UnixMetadata

func (p File_metadata_Future) UnixMetadata() UnixMetadata_Future

type File_metadata_Which

type File_metadata_Which uint16
const (
	File_metadata_Which_noMetadata   File_metadata_Which = 0
	File_metadata_Which_unixMetadata File_metadata_Which = 1
)

func (File_metadata_Which) String

func (w File_metadata_Which) String() string

type UnixMetadata

type UnixMetadata capnp.Struct

func NewRootUnixMetadata

func NewRootUnixMetadata(s *capnp.Segment) (UnixMetadata, error)

func NewUnixMetadata

func NewUnixMetadata(s *capnp.Segment) (UnixMetadata, error)

func ReadRootUnixMetadata

func ReadRootUnixMetadata(msg *capnp.Message) (UnixMetadata, error)

func (UnixMetadata) DecodeFromPtr

func (UnixMetadata) DecodeFromPtr(p capnp.Ptr) UnixMetadata

func (UnixMetadata) EncodeAsPtr

func (s UnixMetadata) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (UnixMetadata) IsValid

func (s UnixMetadata) IsValid() bool

func (UnixMetadata) Message

func (s UnixMetadata) Message() *capnp.Message

func (UnixMetadata) ModTime

func (s UnixMetadata) ModTime() int64

func (UnixMetadata) Permissions

func (s UnixMetadata) Permissions() uint32

func (UnixMetadata) Segment

func (s UnixMetadata) Segment() *capnp.Segment

func (UnixMetadata) SetModTime

func (s UnixMetadata) SetModTime(v int64)

func (UnixMetadata) SetPermissions

func (s UnixMetadata) SetPermissions(v uint32)

func (UnixMetadata) String

func (s UnixMetadata) String() string

func (UnixMetadata) ToPtr

func (s UnixMetadata) ToPtr() capnp.Ptr

type UnixMetadata_Future

type UnixMetadata_Future struct{ *capnp.Future }

UnixMetadata_Future is a wrapper for a UnixMetadata promised by a client call.

func (UnixMetadata_Future) Struct

func (f UnixMetadata_Future) Struct() (UnixMetadata, error)

type UnixMetadata_List

type UnixMetadata_List = capnp.StructList[UnixMetadata]

UnixMetadata_List is a list of UnixMetadata.

func NewUnixMetadata_List

func NewUnixMetadata_List(s *capnp.Segment, sz int32) (UnixMetadata_List, error)

NewUnixMetadata creates a new list of UnixMetadata.

Jump to

Keyboard shortcuts

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