Documentation ¶
Index ¶
- Constants
- type Commit
- func (s Commit) Author() (string, error)
- func (s Commit) AuthorBytes() ([]byte, error)
- func (s Commit) HasAuthor() bool
- func (s Commit) HasMessage() bool
- func (s Commit) HasParent() bool
- func (s Commit) HasRoot() bool
- func (s Commit) Index() int64
- func (s Commit) Merge() Commit_merge
- func (s Commit) Message() (string, error)
- func (s Commit) MessageBytes() ([]byte, error)
- func (s Commit) Parent() ([]byte, error)
- func (s Commit) Root() ([]byte, error)
- func (s Commit) SetAuthor(v string) error
- func (s Commit) SetIndex(v int64)
- func (s Commit) SetMessage(v string) error
- func (s Commit) SetParent(v []byte) error
- func (s Commit) SetRoot(v []byte) error
- func (s Commit) String() string
- type Commit_List
- type Commit_Promise
- type Commit_merge
- func (s Commit_merge) HasHead() bool
- func (s Commit_merge) HasWith() bool
- func (s Commit_merge) Head() ([]byte, error)
- func (s Commit_merge) SetHead(v []byte) error
- func (s Commit_merge) SetWith(v string) error
- func (s Commit_merge) With() (string, error)
- func (s Commit_merge) WithBytes() ([]byte, error)
- type Commit_merge_Promise
- type DirEntry
- func (s DirEntry) HasHash() bool
- func (s DirEntry) HasName() bool
- func (s DirEntry) Hash() ([]byte, error)
- func (s DirEntry) Name() (string, error)
- func (s DirEntry) NameBytes() ([]byte, error)
- func (s DirEntry) SetHash(v []byte) error
- func (s DirEntry) SetName(v string) error
- func (s DirEntry) String() string
- type DirEntry_List
- type DirEntry_Promise
- type Directory
- func (s Directory) Children() (DirEntry_List, error)
- func (s Directory) HasChildren() bool
- func (s Directory) HasParent() bool
- func (s Directory) NewChildren(n int32) (DirEntry_List, error)
- func (s Directory) Parent() (string, error)
- func (s Directory) ParentBytes() ([]byte, error)
- func (s Directory) SetChildren(v DirEntry_List) error
- func (s Directory) SetParent(v string) error
- func (s Directory) SetSize(v uint64)
- func (s Directory) Size() uint64
- func (s Directory) String() string
- type Directory_List
- type Directory_Promise
- type File
- func (s File) HasKey() bool
- func (s File) HasParent() bool
- func (s File) Key() ([]byte, error)
- func (s File) Parent() (string, error)
- func (s File) ParentBytes() ([]byte, error)
- func (s File) SetKey(v []byte) error
- func (s File) SetParent(v string) error
- func (s File) SetSize(v uint64)
- func (s File) Size() uint64
- func (s File) String() string
- type File_List
- type File_Promise
- type Ghost
- func (s Ghost) Commit() (Commit, error)
- func (s Ghost) Directory() (Directory, error)
- func (s Ghost) File() (File, error)
- func (s Ghost) GhostInode() uint64
- func (s Ghost) GhostPath() (string, error)
- func (s Ghost) GhostPathBytes() ([]byte, error)
- func (s Ghost) HasCommit() bool
- func (s Ghost) HasDirectory() bool
- func (s Ghost) HasFile() bool
- func (s Ghost) HasGhostPath() bool
- func (s Ghost) NewCommit() (Commit, error)
- func (s Ghost) NewDirectory() (Directory, error)
- func (s Ghost) NewFile() (File, error)
- func (s Ghost) SetCommit(v Commit) error
- func (s Ghost) SetDirectory(v Directory) error
- func (s Ghost) SetFile(v File) error
- func (s Ghost) SetGhostInode(v uint64)
- func (s Ghost) SetGhostPath(v string) error
- func (s Ghost) String() string
- func (s Ghost) Which() Ghost_Which
- type Ghost_List
- type Ghost_Promise
- type Ghost_Which
- type Node
- func (s Node) BackendHash() ([]byte, error)
- func (s Node) Commit() (Commit, error)
- func (s Node) ContentHash() ([]byte, error)
- func (s Node) Directory() (Directory, error)
- func (s Node) File() (File, error)
- func (s Node) Ghost() (Ghost, error)
- func (s Node) HasBackendHash() bool
- func (s Node) HasCommit() bool
- func (s Node) HasContentHash() bool
- func (s Node) HasDirectory() bool
- func (s Node) HasFile() bool
- func (s Node) HasGhost() bool
- func (s Node) HasModTime() bool
- func (s Node) HasName() bool
- func (s Node) HasTreeHash() bool
- func (s Node) HasUser() bool
- func (s Node) Inode() uint64
- func (s Node) ModTime() (string, error)
- func (s Node) ModTimeBytes() ([]byte, error)
- func (s Node) Name() (string, error)
- func (s Node) NameBytes() ([]byte, error)
- func (s Node) NewCommit() (Commit, error)
- func (s Node) NewDirectory() (Directory, error)
- func (s Node) NewFile() (File, error)
- func (s Node) NewGhost() (Ghost, error)
- func (s Node) SetBackendHash(v []byte) error
- func (s Node) SetCommit(v Commit) error
- func (s Node) SetContentHash(v []byte) error
- func (s Node) SetDirectory(v Directory) error
- func (s Node) SetFile(v File) error
- func (s Node) SetGhost(v Ghost) error
- func (s Node) SetInode(v uint64)
- func (s Node) SetModTime(v string) error
- func (s Node) SetName(v string) error
- func (s Node) SetTreeHash(v []byte) error
- func (s Node) SetUser(v string) error
- func (s Node) String() string
- func (s Node) TreeHash() ([]byte, error)
- func (s Node) User() (string, error)
- func (s Node) UserBytes() ([]byte, error)
- func (s Node) Which() Node_Which
- type Node_List
- type Node_Promise
- type Node_Which
Constants ¶
const Commit_TypeID = 0x8da013c66e545daf
Commit_TypeID is the unique identifier for the type Commit.
const DirEntry_TypeID = 0x8b15ee76774b1f9d
DirEntry_TypeID is the unique identifier for the type DirEntry.
const Directory_TypeID = 0xe24c59306c829c01
Directory_TypeID is the unique identifier for the type Directory.
const File_TypeID = 0x8ea7393d37893155
File_TypeID is the unique identifier for the type File.
const Ghost_TypeID = 0x80c828d7e89c12ea
Ghost_TypeID is the unique identifier for the type Ghost.
const Node_TypeID = 0xa629eb7f7066fae3
Node_TypeID is the unique identifier for the type Node.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
Commit is a set of changes to nodes
func (Commit) AuthorBytes ¶
func (Commit) HasMessage ¶
func (Commit) Merge ¶
func (s Commit) Merge() Commit_merge
func (Commit) MessageBytes ¶
func (Commit) SetMessage ¶
type Commit_List ¶
Commit_List is a list of Commit.
func NewCommit_List ¶
func NewCommit_List(s *capnp.Segment, sz int32) (Commit_List, error)
NewCommit creates a new list of Commit.
func (Commit_List) At ¶
func (s Commit_List) At(i int) Commit
func (Commit_List) String ¶
func (s Commit_List) String() string
type Commit_Promise ¶
Commit_Promise is a wrapper for a Commit promised by a client call.
func (Commit_Promise) Merge ¶
func (p Commit_Promise) Merge() Commit_merge_Promise
func (Commit_Promise) Struct ¶
func (p Commit_Promise) Struct() (Commit, error)
type Commit_merge ¶
type Commit_merge Commit
func (Commit_merge) HasHead ¶
func (s Commit_merge) HasHead() bool
func (Commit_merge) HasWith ¶
func (s Commit_merge) HasWith() bool
func (Commit_merge) Head ¶
func (s Commit_merge) Head() ([]byte, error)
func (Commit_merge) SetHead ¶
func (s Commit_merge) SetHead(v []byte) error
func (Commit_merge) SetWith ¶
func (s Commit_merge) SetWith(v string) error
func (Commit_merge) With ¶
func (s Commit_merge) With() (string, error)
func (Commit_merge) WithBytes ¶
func (s Commit_merge) WithBytes() ([]byte, error)
type Commit_merge_Promise ¶
Commit_merge_Promise is a wrapper for a Commit_merge promised by a client call.
func (Commit_merge_Promise) Struct ¶
func (p Commit_merge_Promise) Struct() (Commit_merge, error)
type DirEntry_List ¶
DirEntry_List is a list of DirEntry.
func NewDirEntry_List ¶
func NewDirEntry_List(s *capnp.Segment, sz int32) (DirEntry_List, error)
NewDirEntry creates a new list of DirEntry.
func (DirEntry_List) At ¶
func (s DirEntry_List) At(i int) DirEntry
func (DirEntry_List) String ¶
func (s DirEntry_List) String() string
type DirEntry_Promise ¶
DirEntry_Promise is a wrapper for a DirEntry promised by a client call.
func (DirEntry_Promise) Struct ¶
func (p DirEntry_Promise) Struct() (DirEntry, error)
type Directory ¶
Directory contains one or more directories or files
func (Directory) Children ¶
func (s Directory) Children() (DirEntry_List, error)
func (Directory) HasChildren ¶
func (Directory) NewChildren ¶
func (s Directory) NewChildren(n int32) (DirEntry_List, error)
NewChildren sets the children field to a newly allocated DirEntry_List, preferring placement in s's segment.
func (Directory) ParentBytes ¶
func (Directory) SetChildren ¶
func (s Directory) SetChildren(v DirEntry_List) error
type Directory_List ¶
Directory_List is a list of Directory.
func NewDirectory_List ¶
func NewDirectory_List(s *capnp.Segment, sz int32) (Directory_List, error)
NewDirectory creates a new list of Directory.
func (Directory_List) At ¶
func (s Directory_List) At(i int) Directory
func (Directory_List) String ¶
func (s Directory_List) String() string
type Directory_Promise ¶
Directory_Promise is a wrapper for a Directory promised by a client call.
func (Directory_Promise) Struct ¶
func (p Directory_Promise) Struct() (Directory, error)
type File_List ¶
File_List is a list of File.
func NewFile_List ¶
NewFile creates a new list of File.
type File_Promise ¶
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 Ghost ¶
Ghost indicates that a certain node was at this path once
func (Ghost) GhostInode ¶
func (Ghost) GhostPathBytes ¶
func (Ghost) HasDirectory ¶
func (Ghost) HasGhostPath ¶
func (Ghost) NewCommit ¶
NewCommit sets the commit field to a newly allocated Commit struct, preferring placement in s's segment.
func (Ghost) NewDirectory ¶
NewDirectory sets the directory field to a newly allocated Directory struct, preferring placement in s's segment.
func (Ghost) NewFile ¶
NewFile sets the file field to a newly allocated File struct, preferring placement in s's segment.
func (Ghost) SetDirectory ¶
func (Ghost) SetGhostInode ¶
func (Ghost) SetGhostPath ¶
func (Ghost) Which ¶
func (s Ghost) Which() Ghost_Which
type Ghost_List ¶
Ghost_List is a list of Ghost.
func NewGhost_List ¶
func NewGhost_List(s *capnp.Segment, sz int32) (Ghost_List, error)
NewGhost creates a new list of Ghost.
func (Ghost_List) At ¶
func (s Ghost_List) At(i int) Ghost
func (Ghost_List) String ¶
func (s Ghost_List) String() string
type Ghost_Promise ¶
Ghost_Promise is a wrapper for a Ghost promised by a client call.
func (Ghost_Promise) Commit ¶
func (p Ghost_Promise) Commit() Commit_Promise
func (Ghost_Promise) Directory ¶
func (p Ghost_Promise) Directory() Directory_Promise
func (Ghost_Promise) File ¶
func (p Ghost_Promise) File() File_Promise
func (Ghost_Promise) Struct ¶
func (p Ghost_Promise) Struct() (Ghost, error)
type Ghost_Which ¶
type Ghost_Which uint16
const ( Ghost_Which_commit Ghost_Which = 0 Ghost_Which_directory Ghost_Which = 1 Ghost_Which_file Ghost_Which = 2 )
func (Ghost_Which) String ¶
func (w Ghost_Which) String() string
type Node ¶
Node is a node in the merkle dag of brig
func (Node) BackendHash ¶
func (Node) ContentHash ¶
func (Node) HasBackendHash ¶
func (Node) HasContentHash ¶
func (Node) HasDirectory ¶
func (Node) HasModTime ¶
func (Node) HasTreeHash ¶
func (Node) ModTimeBytes ¶
func (Node) NewCommit ¶
NewCommit sets the commit field to a newly allocated Commit struct, preferring placement in s's segment.
func (Node) NewDirectory ¶
NewDirectory sets the directory field to a newly allocated Directory struct, preferring placement in s's segment.
func (Node) NewFile ¶
NewFile sets the file field to a newly allocated File struct, preferring placement in s's segment.
func (Node) NewGhost ¶
NewGhost sets the ghost field to a newly allocated Ghost struct, preferring placement in s's segment.
func (Node) SetBackendHash ¶
func (Node) SetContentHash ¶
func (Node) SetDirectory ¶
func (Node) SetModTime ¶
func (Node) SetTreeHash ¶
func (Node) Which ¶
func (s Node) Which() Node_Which
type Node_List ¶
Node_List is a list of Node.
func NewNode_List ¶
NewNode creates a new list of Node.
type Node_Promise ¶
Node_Promise is a wrapper for a Node promised by a client call.
func (Node_Promise) Commit ¶
func (p Node_Promise) Commit() Commit_Promise
func (Node_Promise) Directory ¶
func (p Node_Promise) Directory() Directory_Promise
func (Node_Promise) File ¶
func (p Node_Promise) File() File_Promise
func (Node_Promise) Ghost ¶
func (p Node_Promise) Ghost() Ghost_Promise
func (Node_Promise) Struct ¶
func (p Node_Promise) Struct() (Node, error)
type Node_Which ¶
type Node_Which uint16
const ( Node_Which_commit Node_Which = 0 Node_Which_directory Node_Which = 1 Node_Which_file Node_Which = 2 Node_Which_ghost Node_Which = 3 )
func (Node_Which) String ¶
func (w Node_Which) String() string