pachyderm: github.com/pachyderm/pachyderm/src/client/admin/1_7/hashtree Index | Files

package hashtree

import "github.com/pachyderm/pachyderm/src/client/admin/1_7/hashtree"

Index

Package Files

hashtree.pb.go

Variables

var (
    ErrInvalidLengthHashtree = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowHashtree   = fmt.Errorf("proto: integer overflow")
)

type DirectoryNodeProto Uses

type DirectoryNodeProto struct {
    // Children of this directory. Note that paths are relative, so if "/foo/bar"
    // has a child "baz", that means that there is a file at "/foo/bar/baz".
    //
    // 'Children' is ordered alphabetically, to quickly check if a new file is
    // overwriting an existing one.
    Children             []string    `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"`
    Header               *pfs.Object `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
    Footer               *pfs.Object `protobuf:"bytes,5,opt,name=footer,proto3" json:"footer,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

DirectoryNodeProto is a node corresponding to a directory.

func (*DirectoryNodeProto) Descriptor Uses

func (*DirectoryNodeProto) Descriptor() ([]byte, []int)

func (*DirectoryNodeProto) GetChildren Uses

func (m *DirectoryNodeProto) GetChildren() []string

func (*DirectoryNodeProto) GetFooter Uses

func (m *DirectoryNodeProto) GetFooter() *pfs.Object

func (*DirectoryNodeProto) GetHeader Uses

func (m *DirectoryNodeProto) GetHeader() *pfs.Object

func (*DirectoryNodeProto) Marshal Uses

func (m *DirectoryNodeProto) Marshal() (dAtA []byte, err error)

func (*DirectoryNodeProto) MarshalTo Uses

func (m *DirectoryNodeProto) MarshalTo(dAtA []byte) (int, error)

func (*DirectoryNodeProto) ProtoMessage Uses

func (*DirectoryNodeProto) ProtoMessage()

func (*DirectoryNodeProto) Reset Uses

func (m *DirectoryNodeProto) Reset()

func (*DirectoryNodeProto) Size Uses

func (m *DirectoryNodeProto) Size() (n int)

func (*DirectoryNodeProto) String Uses

func (m *DirectoryNodeProto) String() string

func (*DirectoryNodeProto) Unmarshal Uses

func (m *DirectoryNodeProto) Unmarshal(dAtA []byte) error

func (*DirectoryNodeProto) XXX_DiscardUnknown Uses

func (m *DirectoryNodeProto) XXX_DiscardUnknown()

func (*DirectoryNodeProto) XXX_Marshal Uses

func (m *DirectoryNodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DirectoryNodeProto) XXX_Merge Uses

func (m *DirectoryNodeProto) XXX_Merge(src proto.Message)

func (*DirectoryNodeProto) XXX_Size Uses

func (m *DirectoryNodeProto) XXX_Size() int

func (*DirectoryNodeProto) XXX_Unmarshal Uses

func (m *DirectoryNodeProto) XXX_Unmarshal(b []byte) error

type FileNodeProto Uses

type FileNodeProto struct {
    // Object references an object in the object store which contains the content
    // of the data.
    Objects              []*pfs.Object `protobuf:"bytes,4,rep,name=objects,proto3" json:"objects,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

FileNodeProto is a node corresponding to a file (which is also a leaf node).

func (*FileNodeProto) Descriptor Uses

func (*FileNodeProto) Descriptor() ([]byte, []int)

func (*FileNodeProto) GetObjects Uses

func (m *FileNodeProto) GetObjects() []*pfs.Object

func (*FileNodeProto) Marshal Uses

func (m *FileNodeProto) Marshal() (dAtA []byte, err error)

func (*FileNodeProto) MarshalTo Uses

func (m *FileNodeProto) MarshalTo(dAtA []byte) (int, error)

func (*FileNodeProto) ProtoMessage Uses

func (*FileNodeProto) ProtoMessage()

func (*FileNodeProto) Reset Uses

func (m *FileNodeProto) Reset()

func (*FileNodeProto) Size Uses

func (m *FileNodeProto) Size() (n int)

func (*FileNodeProto) String Uses

func (m *FileNodeProto) String() string

func (*FileNodeProto) Unmarshal Uses

func (m *FileNodeProto) Unmarshal(dAtA []byte) error

func (*FileNodeProto) XXX_DiscardUnknown Uses

func (m *FileNodeProto) XXX_DiscardUnknown()

func (*FileNodeProto) XXX_Marshal Uses

func (m *FileNodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileNodeProto) XXX_Merge Uses

func (m *FileNodeProto) XXX_Merge(src proto.Message)

func (*FileNodeProto) XXX_Size Uses

func (m *FileNodeProto) XXX_Size() int

func (*FileNodeProto) XXX_Unmarshal Uses

func (m *FileNodeProto) XXX_Unmarshal(b []byte) error

type HashTreeProto Uses

type HashTreeProto struct {
    // Version is an arbitrary version number, set by the corresponding library
    // in hashtree.go.  This ensures that if the hash function used to create
    // these trees is changed, we won't run into errors when deserializing old
    // trees. The current version is 1.
    Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
    // Fs maps each node's path to the NodeProto with that node's details.
    // See "Potential Optimizations" at the end for a compression scheme that
    // could be useful if this map gets too large.
    //
    // Note that the key must end in "/" if an only if the value has .dir_node set
    // (i.e. iff the path points to a directory).
    Fs                   map[string]*NodeProto `protobuf:"bytes,2,rep,name=fs,proto3" json:"fs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

HashTreeProto is a tree corresponding to the complete file contents of a pachyderm repo at a given commit (based on a Merkle Tree). We store one HashTree for every PFS commit.

func (*HashTreeProto) Descriptor Uses

func (*HashTreeProto) Descriptor() ([]byte, []int)

func (*HashTreeProto) GetFs Uses

func (m *HashTreeProto) GetFs() map[string]*NodeProto

func (*HashTreeProto) GetVersion Uses

func (m *HashTreeProto) GetVersion() int32

func (*HashTreeProto) Marshal Uses

func (m *HashTreeProto) Marshal() (dAtA []byte, err error)

func (*HashTreeProto) MarshalTo Uses

func (m *HashTreeProto) MarshalTo(dAtA []byte) (int, error)

func (*HashTreeProto) ProtoMessage Uses

func (*HashTreeProto) ProtoMessage()

func (*HashTreeProto) Reset Uses

func (m *HashTreeProto) Reset()

func (*HashTreeProto) Size Uses

func (m *HashTreeProto) Size() (n int)

func (*HashTreeProto) String Uses

func (m *HashTreeProto) String() string

func (*HashTreeProto) Unmarshal Uses

func (m *HashTreeProto) Unmarshal(dAtA []byte) error

func (*HashTreeProto) XXX_DiscardUnknown Uses

func (m *HashTreeProto) XXX_DiscardUnknown()

func (*HashTreeProto) XXX_Marshal Uses

func (m *HashTreeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashTreeProto) XXX_Merge Uses

func (m *HashTreeProto) XXX_Merge(src proto.Message)

func (*HashTreeProto) XXX_Size Uses

func (m *HashTreeProto) XXX_Size() int

func (*HashTreeProto) XXX_Unmarshal Uses

func (m *HashTreeProto) XXX_Unmarshal(b []byte) error

type NodeProto Uses

type NodeProto struct {
    // Name is the name (not path) of the file/directory (e.g. /lib).
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Hash is a hash of the node's name and contents (which includes the
    // BlockRefs of a file and the Children of a directory). This can be used to
    // detect if the name or contents have changed between versions.
    Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
    // subtree_size is the of the subtree under node; i.e. if this is a directory,
    // subtree_size includes all children.
    SubtreeSize int64 `protobuf:"varint,3,opt,name=subtree_size,json=subtreeSize,proto3" json:"subtree_size,omitempty"`
    // Exactly one of the following fields must be set. The type of this node will
    // be determined by which field is set.
    FileNode             *FileNodeProto      `protobuf:"bytes,4,opt,name=file_node,json=fileNode,proto3" json:"file_node,omitempty"`
    DirNode              *DirectoryNodeProto `protobuf:"bytes,5,opt,name=dir_node,json=dirNode,proto3" json:"dir_node,omitempty"`
    XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    XXX_unrecognized     []byte              `json:"-"`
    XXX_sizecache        int32               `json:"-"`
}

NodeProto is a node in the file tree (either a file or a directory)

func (*NodeProto) Descriptor Uses

func (*NodeProto) Descriptor() ([]byte, []int)

func (*NodeProto) GetDirNode Uses

func (m *NodeProto) GetDirNode() *DirectoryNodeProto

func (*NodeProto) GetFileNode Uses

func (m *NodeProto) GetFileNode() *FileNodeProto

func (*NodeProto) GetHash Uses

func (m *NodeProto) GetHash() []byte

func (*NodeProto) GetName Uses

func (m *NodeProto) GetName() string

func (*NodeProto) GetSubtreeSize Uses

func (m *NodeProto) GetSubtreeSize() int64

func (*NodeProto) Marshal Uses

func (m *NodeProto) Marshal() (dAtA []byte, err error)

func (*NodeProto) MarshalTo Uses

func (m *NodeProto) MarshalTo(dAtA []byte) (int, error)

func (*NodeProto) ProtoMessage Uses

func (*NodeProto) ProtoMessage()

func (*NodeProto) Reset Uses

func (m *NodeProto) Reset()

func (*NodeProto) Size Uses

func (m *NodeProto) Size() (n int)

func (*NodeProto) String Uses

func (m *NodeProto) String() string

func (*NodeProto) Unmarshal Uses

func (m *NodeProto) Unmarshal(dAtA []byte) error

func (*NodeProto) XXX_DiscardUnknown Uses

func (m *NodeProto) XXX_DiscardUnknown()

func (*NodeProto) XXX_Marshal Uses

func (m *NodeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeProto) XXX_Merge Uses

func (m *NodeProto) XXX_Merge(src proto.Message)

func (*NodeProto) XXX_Size Uses

func (m *NodeProto) XXX_Size() int

func (*NodeProto) XXX_Unmarshal Uses

func (m *NodeProto) XXX_Unmarshal(b []byte) error

Package hashtree imports 6 packages (graph) and is imported by 1 packages. Updated 2019-06-14. Refresh now. Tools for package owners.