np

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ACI_Right_TypeID = 0xe615914de76be38f

ACI_Right_TypeID is the unique identifier for the type ACI_Right.

View Source
const ACI_TypeID = 0xe7b4959415dabf9c

ACI_TypeID is the unique identifier for the type ACI.

View Source
const Dir_TypeID = 0x8a228653b964fd48

Dir_TypeID is the unique identifier for the type Dir.

View Source
const FileBlock_TypeID = 0xd5a2538369c2f82a

FileBlock_TypeID is the unique identifier for the type FileBlock.

View Source
const File_TypeID = 0xecfda38634f4591a

File_TypeID is the unique identifier for the type File.

View Source
const Inode_TypeID = 0xc0029f81b3eee594

Inode_TypeID is the unique identifier for the type Inode.

View Source
const Link_TypeID = 0xe419a0e5a661965c

Link_TypeID is the unique identifier for the type Link.

View Source
const Special_TypeID = 0xdc74a897ce683c6b

Special_TypeID is the unique identifier for the type Special.

View Source
const SubDir_TypeID = 0xa4a421ce00f301dd

SubDir_TypeID is the unique identifier for the type SubDir.

View Source
const UserGroup_TypeID = 0xee5217621d9cbb3a

UserGroup_TypeID is the unique identifier for the type UserGroup.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACI

type ACI struct{ capnp.Struct }

func NewACI

func NewACI(s *capnp.Segment) (ACI, error)

func NewRootACI

func NewRootACI(s *capnp.Segment) (ACI, error)

func ReadRootACI

func ReadRootACI(msg *capnp.Message) (ACI, error)

func (ACI) Gname

func (s ACI) Gname() (string, error)

func (ACI) GnameBytes

func (s ACI) GnameBytes() ([]byte, error)

func (ACI) HasGname

func (s ACI) HasGname() bool

func (ACI) HasRights

func (s ACI) HasRights() bool

func (ACI) HasUname

func (s ACI) HasUname() bool

func (ACI) Id

func (s ACI) Id() uint32

func (ACI) Mode

func (s ACI) Mode() uint16

func (ACI) NewRights

func (s ACI) NewRights(n int32) (ACI_Right_List, error)

NewRights sets the rights field to a newly allocated ACI_Right_List, preferring placement in s's segment.

func (ACI) Rights

func (s ACI) Rights() (ACI_Right_List, error)

func (ACI) SetGname

func (s ACI) SetGname(v string) error

func (ACI) SetId

func (s ACI) SetId(v uint32)

func (ACI) SetMode

func (s ACI) SetMode(v uint16)

func (ACI) SetRights

func (s ACI) SetRights(v ACI_Right_List) error

func (ACI) SetUname

func (s ACI) SetUname(v string) error

func (ACI) String

func (s ACI) String() string

func (ACI) Uname

func (s ACI) Uname() (string, error)

func (ACI) UnameBytes

func (s ACI) UnameBytes() ([]byte, error)

type ACI_List

type ACI_List struct{ capnp.List }

ACI_List is a list of ACI.

func NewACI_List

func NewACI_List(s *capnp.Segment, sz int32) (ACI_List, error)

NewACI creates a new list of ACI.

func (ACI_List) At

func (s ACI_List) At(i int) ACI

func (ACI_List) Set

func (s ACI_List) Set(i int, v ACI) error

type ACI_Promise

type ACI_Promise struct{ *capnp.Pipeline }

ACI_Promise is a wrapper for a ACI promised by a client call.

func (ACI_Promise) Struct

func (p ACI_Promise) Struct() (ACI, error)

type ACI_Right

type ACI_Right struct{ capnp.Struct }

func NewACI_Right

func NewACI_Right(s *capnp.Segment) (ACI_Right, error)

func NewRootACI_Right

func NewRootACI_Right(s *capnp.Segment) (ACI_Right, error)

func ReadRootACI_Right

func ReadRootACI_Right(msg *capnp.Message) (ACI_Right, error)

func (ACI_Right) HasRight

func (s ACI_Right) HasRight() bool

func (ACI_Right) Right

func (s ACI_Right) Right() (string, error)

func (ACI_Right) RightBytes

func (s ACI_Right) RightBytes() ([]byte, error)

func (ACI_Right) SetRight

func (s ACI_Right) SetRight(v string) error

func (ACI_Right) SetUsergroupid

func (s ACI_Right) SetUsergroupid(v uint16)

func (ACI_Right) String

func (s ACI_Right) String() string

func (ACI_Right) Usergroupid

func (s ACI_Right) Usergroupid() uint16

type ACI_Right_List

type ACI_Right_List struct{ capnp.List }

ACI_Right_List is a list of ACI_Right.

func NewACI_Right_List

func NewACI_Right_List(s *capnp.Segment, sz int32) (ACI_Right_List, error)

NewACI_Right creates a new list of ACI_Right.

func (ACI_Right_List) At

func (s ACI_Right_List) At(i int) ACI_Right

func (ACI_Right_List) Set

func (s ACI_Right_List) Set(i int, v ACI_Right) error

type ACI_Right_Promise

type ACI_Right_Promise struct{ *capnp.Pipeline }

ACI_Right_Promise is a wrapper for a ACI_Right promised by a client call.

func (ACI_Right_Promise) Struct

func (p ACI_Right_Promise) Struct() (ACI_Right, error)

type Dir

type Dir struct{ capnp.Struct }

func NewDir

func NewDir(s *capnp.Segment) (Dir, error)

func NewRootDir

func NewRootDir(s *capnp.Segment) (Dir, error)

func ReadRootDir

func ReadRootDir(msg *capnp.Message) (Dir, error)

func (Dir) Aclkey

func (s Dir) Aclkey() (string, error)

func (Dir) AclkeyBytes

func (s Dir) AclkeyBytes() ([]byte, error)

func (Dir) Contents

func (s Dir) Contents() (Inode_List, error)

func (Dir) CreationTime

func (s Dir) CreationTime() uint32

func (Dir) HasAclkey

func (s Dir) HasAclkey() bool

func (Dir) HasContents

func (s Dir) HasContents() bool

func (Dir) HasLocation

func (s Dir) HasLocation() bool

func (Dir) HasName

func (s Dir) HasName() bool

func (Dir) HasParent

func (s Dir) HasParent() bool

func (Dir) Location

func (s Dir) Location() (string, error)

func (Dir) LocationBytes

func (s Dir) LocationBytes() ([]byte, error)

func (Dir) ModificationTime

func (s Dir) ModificationTime() uint32

func (Dir) Name

func (s Dir) Name() (string, error)

func (Dir) NameBytes

func (s Dir) NameBytes() ([]byte, error)

func (Dir) NewContents

func (s Dir) NewContents(n int32) (Inode_List, error)

NewContents sets the contents field to a newly allocated Inode_List, preferring placement in s's segment.

func (Dir) Parent

func (s Dir) Parent() (string, error)

func (Dir) ParentBytes

func (s Dir) ParentBytes() ([]byte, error)

func (Dir) SetAclkey

func (s Dir) SetAclkey(v string) error

func (Dir) SetContents

func (s Dir) SetContents(v Inode_List) error

func (Dir) SetCreationTime

func (s Dir) SetCreationTime(v uint32)

func (Dir) SetLocation

func (s Dir) SetLocation(v string) error

func (Dir) SetModificationTime

func (s Dir) SetModificationTime(v uint32)

func (Dir) SetName

func (s Dir) SetName(v string) error

func (Dir) SetParent

func (s Dir) SetParent(v string) error

func (Dir) SetSize

func (s Dir) SetSize(v uint64)

func (Dir) Size

func (s Dir) Size() uint64

func (Dir) String

func (s Dir) String() string

type Dir_List

type Dir_List struct{ capnp.List }

Dir_List is a list of Dir.

func NewDir_List

func NewDir_List(s *capnp.Segment, sz int32) (Dir_List, error)

NewDir creates a new list of Dir.

func (Dir_List) At

func (s Dir_List) At(i int) Dir

func (Dir_List) Set

func (s Dir_List) Set(i int, v Dir) error

type Dir_Promise

type Dir_Promise struct{ *capnp.Pipeline }

Dir_Promise is a wrapper for a Dir promised by a client call.

func (Dir_Promise) Struct

func (p Dir_Promise) Struct() (Dir, error)

type File

type File struct{ 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) BlockSize

func (s File) BlockSize() uint16

func (File) Blocks

func (s File) Blocks() (FileBlock_List, error)

func (File) HasBlocks

func (s File) HasBlocks() bool

func (File) NewBlocks

func (s File) NewBlocks(n int32) (FileBlock_List, error)

NewBlocks sets the blocks field to a newly allocated FileBlock_List, preferring placement in s's segment.

func (File) SetBlockSize

func (s File) SetBlockSize(v uint16)

func (File) SetBlocks

func (s File) SetBlocks(v FileBlock_List) error

func (File) String

func (s File) String() string

type FileBlock

type FileBlock struct{ capnp.Struct }

func NewFileBlock

func NewFileBlock(s *capnp.Segment) (FileBlock, error)

func NewRootFileBlock

func NewRootFileBlock(s *capnp.Segment) (FileBlock, error)

func ReadRootFileBlock

func ReadRootFileBlock(msg *capnp.Message) (FileBlock, error)

func (FileBlock) HasHash

func (s FileBlock) HasHash() bool

func (FileBlock) HasKey

func (s FileBlock) HasKey() bool

func (FileBlock) Hash

func (s FileBlock) Hash() ([]byte, error)

func (FileBlock) Key

func (s FileBlock) Key() ([]byte, error)

func (FileBlock) SetHash

func (s FileBlock) SetHash(v []byte) error

func (FileBlock) SetKey

func (s FileBlock) SetKey(v []byte) error

func (FileBlock) String

func (s FileBlock) String() string

type FileBlock_List

type FileBlock_List struct{ capnp.List }

FileBlock_List is a list of FileBlock.

func NewFileBlock_List

func NewFileBlock_List(s *capnp.Segment, sz int32) (FileBlock_List, error)

NewFileBlock creates a new list of FileBlock.

func (FileBlock_List) At

func (s FileBlock_List) At(i int) FileBlock

func (FileBlock_List) Set

func (s FileBlock_List) Set(i int, v FileBlock) error

type FileBlock_Promise

type FileBlock_Promise struct{ *capnp.Pipeline }

FileBlock_Promise is a wrapper for a FileBlock promised by a client call.

func (FileBlock_Promise) Struct

func (p FileBlock_Promise) Struct() (FileBlock, error)

type File_List

type File_List struct{ capnp.List }

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.

func (File_List) At

func (s File_List) At(i int) File

func (File_List) Set

func (s File_List) Set(i int, v File) error

type File_Promise

type File_Promise struct{ *capnp.Pipeline }

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

func (File_Promise) Struct

func (p File_Promise) Struct() (File, error)

type Inode

type Inode struct{ capnp.Struct }

func NewInode

func NewInode(s *capnp.Segment) (Inode, error)

func NewRootInode

func NewRootInode(s *capnp.Segment) (Inode, error)

func ReadRootInode

func ReadRootInode(msg *capnp.Message) (Inode, error)

func (Inode) Aclkey

func (s Inode) Aclkey() (string, error)

func (Inode) AclkeyBytes

func (s Inode) AclkeyBytes() ([]byte, error)

func (Inode) Attributes

func (s Inode) Attributes() Inode_attributes

func (Inode) CreationTime

func (s Inode) CreationTime() uint32

func (Inode) HasAclkey

func (s Inode) HasAclkey() bool

func (Inode) HasName

func (s Inode) HasName() bool

func (Inode) ModificationTime

func (s Inode) ModificationTime() uint32

func (Inode) Name

func (s Inode) Name() (string, error)

func (Inode) NameBytes

func (s Inode) NameBytes() ([]byte, error)

func (Inode) SetAclkey

func (s Inode) SetAclkey(v string) error

func (Inode) SetCreationTime

func (s Inode) SetCreationTime(v uint32)

func (Inode) SetModificationTime

func (s Inode) SetModificationTime(v uint32)

func (Inode) SetName

func (s Inode) SetName(v string) error

func (Inode) SetSize

func (s Inode) SetSize(v uint64)

func (Inode) Size

func (s Inode) Size() uint64

func (Inode) String

func (s Inode) String() string

type Inode_List

type Inode_List struct{ capnp.List }

Inode_List is a list of Inode.

func NewInode_List

func NewInode_List(s *capnp.Segment, sz int32) (Inode_List, error)

NewInode creates a new list of Inode.

func (Inode_List) At

func (s Inode_List) At(i int) Inode

func (Inode_List) Set

func (s Inode_List) Set(i int, v Inode) error

type Inode_Promise

type Inode_Promise struct{ *capnp.Pipeline }

Inode_Promise is a wrapper for a Inode promised by a client call.

func (Inode_Promise) Attributes

func (p Inode_Promise) Attributes() Inode_attributes_Promise

func (Inode_Promise) Struct

func (p Inode_Promise) Struct() (Inode, error)

type Inode_attributes

type Inode_attributes Inode

func (Inode_attributes) Dir

func (s Inode_attributes) Dir() (SubDir, error)

func (Inode_attributes) File

func (s Inode_attributes) File() (File, error)

func (Inode_attributes) HasDir

func (s Inode_attributes) HasDir() bool

func (Inode_attributes) HasFile

func (s Inode_attributes) HasFile() bool
func (s Inode_attributes) HasLink() bool

func (Inode_attributes) HasSpecial

func (s Inode_attributes) HasSpecial() bool
func (s Inode_attributes) Link() (Link, error)

func (Inode_attributes) NewDir

func (s Inode_attributes) NewDir() (SubDir, error)

NewDir sets the dir field to a newly allocated SubDir struct, preferring placement in s's segment.

func (Inode_attributes) NewFile

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

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

func (s Inode_attributes) NewLink() (Link, error)

NewLink sets the link field to a newly allocated Link struct, preferring placement in s's segment.

func (Inode_attributes) NewSpecial

func (s Inode_attributes) NewSpecial() (Special, error)

NewSpecial sets the special field to a newly allocated Special struct, preferring placement in s's segment.

func (Inode_attributes) SetDir

func (s Inode_attributes) SetDir(v SubDir) error

func (Inode_attributes) SetFile

func (s Inode_attributes) SetFile(v File) error
func (s Inode_attributes) SetLink(v Link) error

func (Inode_attributes) SetSpecial

func (s Inode_attributes) SetSpecial(v Special) error

func (Inode_attributes) Special

func (s Inode_attributes) Special() (Special, error)

func (Inode_attributes) Which

type Inode_attributes_Promise

type Inode_attributes_Promise struct{ *capnp.Pipeline }

Inode_attributes_Promise is a wrapper for a Inode_attributes promised by a client call.

func (Inode_attributes_Promise) Dir

func (Inode_attributes_Promise) File

func (Inode_attributes_Promise) Special

func (Inode_attributes_Promise) Struct

type Inode_attributes_Which

type Inode_attributes_Which uint16
const (
	Inode_attributes_Which_dir     Inode_attributes_Which = 0
	Inode_attributes_Which_file    Inode_attributes_Which = 1
	Inode_attributes_Which_link    Inode_attributes_Which = 2
	Inode_attributes_Which_special Inode_attributes_Which = 3
)

func (Inode_attributes_Which) String

func (w Inode_attributes_Which) String() string
type Link struct{ capnp.Struct }
func NewLink(s *capnp.Segment) (Link, error)
func NewRootLink(s *capnp.Segment) (Link, error)
func ReadRootLink(msg *capnp.Message) (Link, error)

func (Link) HasTarget

func (s Link) HasTarget() bool

func (Link) SetTarget

func (s Link) SetTarget(v string) error

func (Link) String

func (s Link) String() string

func (Link) Target

func (s Link) Target() (string, error)

func (Link) TargetBytes

func (s Link) TargetBytes() ([]byte, error)
type Link_List struct{ capnp.List }

Link_List is a list of Link.

func NewLink_List(s *capnp.Segment, sz int32) (Link_List, error)

NewLink creates a new list of Link.

func (s Link_List) At(i int) Link
func (s Link_List) Set(i int, v Link) error
type Link_Promise struct{ *capnp.Pipeline }

Link_Promise is a wrapper for a Link promised by a client call.

func (p Link_Promise) Struct() (Link, error)

type Special

type Special struct{ capnp.Struct }

func NewRootSpecial

func NewRootSpecial(s *capnp.Segment) (Special, error)

func NewSpecial

func NewSpecial(s *capnp.Segment) (Special, error)

func ReadRootSpecial

func ReadRootSpecial(msg *capnp.Message) (Special, error)

func (Special) Data

func (s Special) Data() ([]byte, error)

func (Special) HasData

func (s Special) HasData() bool

func (Special) SetData

func (s Special) SetData(v []byte) error

func (Special) SetType

func (s Special) SetType(v Special_Type)

func (Special) String

func (s Special) String() string

func (Special) Type

func (s Special) Type() Special_Type

type Special_List

type Special_List struct{ capnp.List }

Special_List is a list of Special.

func NewSpecial_List

func NewSpecial_List(s *capnp.Segment, sz int32) (Special_List, error)

NewSpecial creates a new list of Special.

func (Special_List) At

func (s Special_List) At(i int) Special

func (Special_List) Set

func (s Special_List) Set(i int, v Special) error

type Special_Promise

type Special_Promise struct{ *capnp.Pipeline }

Special_Promise is a wrapper for a Special promised by a client call.

func (Special_Promise) Struct

func (p Special_Promise) Struct() (Special, error)

type Special_Type

type Special_Type uint16
const (
	Special_Type_socket   Special_Type = 0
	Special_Type_block    Special_Type = 1
	Special_Type_chardev  Special_Type = 2
	Special_Type_fifopipe Special_Type = 3
	Special_Type_unknown  Special_Type = 4
)

Values of Special_Type.

func Special_TypeFromString

func Special_TypeFromString(c string) Special_Type

Special_TypeFromString returns the enum value with a name, or the zero value if there's no such value.

func (Special_Type) String

func (c Special_Type) String() string

String returns the enum's constant name.

type Special_Type_List

type Special_Type_List struct{ capnp.List }

func NewSpecial_Type_List

func NewSpecial_Type_List(s *capnp.Segment, sz int32) (Special_Type_List, error)

func (Special_Type_List) At

func (Special_Type_List) Set

func (l Special_Type_List) Set(i int, v Special_Type)

type SubDir

type SubDir struct{ capnp.Struct }

func NewRootSubDir

func NewRootSubDir(s *capnp.Segment) (SubDir, error)

func NewSubDir

func NewSubDir(s *capnp.Segment) (SubDir, error)

func ReadRootSubDir

func ReadRootSubDir(msg *capnp.Message) (SubDir, error)

func (SubDir) HasKey

func (s SubDir) HasKey() bool

func (SubDir) Key

func (s SubDir) Key() (string, error)

func (SubDir) KeyBytes

func (s SubDir) KeyBytes() ([]byte, error)

func (SubDir) SetKey

func (s SubDir) SetKey(v string) error

func (SubDir) String

func (s SubDir) String() string

type SubDir_List

type SubDir_List struct{ capnp.List }

SubDir_List is a list of SubDir.

func NewSubDir_List

func NewSubDir_List(s *capnp.Segment, sz int32) (SubDir_List, error)

NewSubDir creates a new list of SubDir.

func (SubDir_List) At

func (s SubDir_List) At(i int) SubDir

func (SubDir_List) Set

func (s SubDir_List) Set(i int, v SubDir) error

type SubDir_Promise

type SubDir_Promise struct{ *capnp.Pipeline }

SubDir_Promise is a wrapper for a SubDir promised by a client call.

func (SubDir_Promise) Struct

func (p SubDir_Promise) Struct() (SubDir, error)

type UserGroup

type UserGroup struct{ capnp.Struct }

func NewRootUserGroup

func NewRootUserGroup(s *capnp.Segment) (UserGroup, error)

func NewUserGroup

func NewUserGroup(s *capnp.Segment) (UserGroup, error)

func ReadRootUserGroup

func ReadRootUserGroup(msg *capnp.Message) (UserGroup, error)

func (UserGroup) HasIyoId

func (s UserGroup) HasIyoId() bool

func (UserGroup) HasName

func (s UserGroup) HasName() bool

func (UserGroup) IyoId

func (s UserGroup) IyoId() (string, error)

func (UserGroup) IyoIdBytes

func (s UserGroup) IyoIdBytes() ([]byte, error)

func (UserGroup) IyoInt

func (s UserGroup) IyoInt() uint64

func (UserGroup) Name

func (s UserGroup) Name() (string, error)

func (UserGroup) NameBytes

func (s UserGroup) NameBytes() ([]byte, error)

func (UserGroup) SetIyoId

func (s UserGroup) SetIyoId(v string) error

func (UserGroup) SetIyoInt

func (s UserGroup) SetIyoInt(v uint64)

func (UserGroup) SetName

func (s UserGroup) SetName(v string) error

func (UserGroup) String

func (s UserGroup) String() string

type UserGroup_List

type UserGroup_List struct{ capnp.List }

UserGroup_List is a list of UserGroup.

func NewUserGroup_List

func NewUserGroup_List(s *capnp.Segment, sz int32) (UserGroup_List, error)

NewUserGroup creates a new list of UserGroup.

func (UserGroup_List) At

func (s UserGroup_List) At(i int) UserGroup

func (UserGroup_List) Set

func (s UserGroup_List) Set(i int, v UserGroup) error

type UserGroup_Promise

type UserGroup_Promise struct{ *capnp.Pipeline }

UserGroup_Promise is a wrapper for a UserGroup promised by a client call.

func (UserGroup_Promise) Struct

func (p UserGroup_Promise) Struct() (UserGroup, error)

Jump to

Keyboard shortcuts

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