vdisc_types_v1

package
v0.0.0-...-5fe3b72 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Extent_TypeID = 0xa4d7434c98251eb9

Extent_TypeID is the unique identifier for the type Extent.

View Source
const ITrie_TypeID = 0xb59ee0bfc7a99f7e

ITrie_TypeID is the unique identifier for the type ITrie.

View Source
const VDisc_TypeID = 0xedec5a16c6a1a062

VDisc_TypeID is the unique identifier for the type VDisc.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extent

type Extent struct{ capnp.Struct }

func NewExtent

func NewExtent(s *capnp.Segment) (Extent, error)

func NewRootExtent

func NewRootExtent(s *capnp.Segment) (Extent, error)

func ReadRootExtent

func ReadRootExtent(msg *capnp.Message) (Extent, error)

func (Extent) Blocks

func (s Extent) Blocks() uint32

func (Extent) HasUriSuffix

func (s Extent) HasUriSuffix() bool

func (Extent) Padding

func (s Extent) Padding() uint16

func (Extent) SetBlocks

func (s Extent) SetBlocks(v uint32)

func (Extent) SetPadding

func (s Extent) SetPadding(v uint16)

func (Extent) SetUriPrefix

func (s Extent) SetUriPrefix(v uint32)

func (Extent) SetUriSuffix

func (s Extent) SetUriSuffix(v string) error

func (Extent) String

func (s Extent) String() string

func (Extent) UriPrefix

func (s Extent) UriPrefix() uint32

func (Extent) UriSuffix

func (s Extent) UriSuffix() (string, error)

func (Extent) UriSuffixBytes

func (s Extent) UriSuffixBytes() ([]byte, error)

type Extent_List

type Extent_List struct{ capnp.List }

Extent_List is a list of Extent.

func NewExtent_List

func NewExtent_List(s *capnp.Segment, sz int32) (Extent_List, error)

NewExtent creates a new list of Extent.

func (Extent_List) At

func (s Extent_List) At(i int) Extent

func (Extent_List) Set

func (s Extent_List) Set(i int, v Extent) error

func (Extent_List) String

func (s Extent_List) String() string

type Extent_Promise

type Extent_Promise struct{ *capnp.Pipeline }

Extent_Promise is a wrapper for a Extent promised by a client call.

func (Extent_Promise) Struct

func (p Extent_Promise) Struct() (Extent, error)

type ITrie

type ITrie struct{ capnp.Struct }

func NewITrie

func NewITrie(s *capnp.Segment) (ITrie, error)

func NewRootITrie

func NewRootITrie(s *capnp.Segment) (ITrie, error)

func ReadRootITrie

func ReadRootITrie(msg *capnp.Message) (ITrie, error)

func (ITrie) Content

func (s ITrie) Content() (string, error)

func (ITrie) ContentBytes

func (s ITrie) ContentBytes() ([]byte, error)

func (ITrie) HasContent

func (s ITrie) HasContent() bool

func (ITrie) Parent

func (s ITrie) Parent() uint32

func (ITrie) SetContent

func (s ITrie) SetContent(v string) error

func (ITrie) SetParent

func (s ITrie) SetParent(v uint32)

func (ITrie) String

func (s ITrie) String() string

type ITrie_List

type ITrie_List struct{ capnp.List }

ITrie_List is a list of ITrie.

func NewITrie_List

func NewITrie_List(s *capnp.Segment, sz int32) (ITrie_List, error)

NewITrie creates a new list of ITrie.

func (ITrie_List) At

func (s ITrie_List) At(i int) ITrie

func (ITrie_List) Set

func (s ITrie_List) Set(i int, v ITrie) error

func (ITrie_List) String

func (s ITrie_List) String() string

type ITrie_Promise

type ITrie_Promise struct{ *capnp.Pipeline }

ITrie_Promise is a wrapper for a ITrie promised by a client call.

func (ITrie_Promise) Struct

func (p ITrie_Promise) Struct() (ITrie, error)

type VDisc

type VDisc struct{ capnp.Struct }

func NewRootVDisc

func NewRootVDisc(s *capnp.Segment) (VDisc, error)

func NewVDisc

func NewVDisc(s *capnp.Segment) (VDisc, error)

func ReadRootVDisc

func ReadRootVDisc(msg *capnp.Message) (VDisc, error)

func (VDisc) BlockSize

func (s VDisc) BlockSize() uint16

func (VDisc) Extents

func (s VDisc) Extents() (Extent_List, error)

func (VDisc) FsType

func (s VDisc) FsType() (string, error)

func (VDisc) FsTypeBytes

func (s VDisc) FsTypeBytes() ([]byte, error)

func (VDisc) HasExtents

func (s VDisc) HasExtents() bool

func (VDisc) HasFsType

func (s VDisc) HasFsType() bool

func (VDisc) HasUris

func (s VDisc) HasUris() bool

func (VDisc) NewExtents

func (s VDisc) NewExtents(n int32) (Extent_List, error)

NewExtents sets the extents field to a newly allocated Extent_List, preferring placement in s's segment.

func (VDisc) NewUris

func (s VDisc) NewUris(n int32) (ITrie_List, error)

NewUris sets the uris field to a newly allocated ITrie_List, preferring placement in s's segment.

func (VDisc) SetBlockSize

func (s VDisc) SetBlockSize(v uint16)

func (VDisc) SetExtents

func (s VDisc) SetExtents(v Extent_List) error

func (VDisc) SetFsType

func (s VDisc) SetFsType(v string) error

func (VDisc) SetUris

func (s VDisc) SetUris(v ITrie_List) error

func (VDisc) String

func (s VDisc) String() string

func (VDisc) Uris

func (s VDisc) Uris() (ITrie_List, error)

type VDisc_List

type VDisc_List struct{ capnp.List }

VDisc_List is a list of VDisc.

func NewVDisc_List

func NewVDisc_List(s *capnp.Segment, sz int32) (VDisc_List, error)

NewVDisc creates a new list of VDisc.

func (VDisc_List) At

func (s VDisc_List) At(i int) VDisc

func (VDisc_List) Set

func (s VDisc_List) Set(i int, v VDisc) error

func (VDisc_List) String

func (s VDisc_List) String() string

type VDisc_Promise

type VDisc_Promise struct{ *capnp.Pipeline }

VDisc_Promise is a wrapper for a VDisc promised by a client call.

func (VDisc_Promise) Struct

func (p VDisc_Promise) Struct() (VDisc, error)

Jump to

Keyboard shortcuts

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