repr_proto

package
v0.0.0-...-01ee8fb Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package repr_proto is a generated protocol buffer package.

It is generated from these files:

comeback.proto

It has these top-level messages:

BlobInfoProto
TimeProto
FileInfoProto
DirectoryListingProto

Package repr_proto contains private protocol buffers used by repr. Do not touch.

Index

Constants

This section is empty.

Variables

View Source
var FileInfoProto_Type_name = map[int32]string{
	-1: "TYPE_UNKNOWN",
	0:  "TYPE_FILE",
	1:  "TYPE_DIRECTORY",
	2:  "TYPE_SYMLINK",
	3:  "TYPE_BLOCK_DEVICE",
	4:  "TYPE_CHAR_DEVICE",
	5:  "TYPE_NAMED_PIPE",
}
View Source
var FileInfoProto_Type_value = map[string]int32{
	"TYPE_UNKNOWN":      -1,
	"TYPE_FILE":         0,
	"TYPE_DIRECTORY":    1,
	"TYPE_SYMLINK":      2,
	"TYPE_BLOCK_DEVICE": 3,
	"TYPE_CHAR_DEVICE":  4,
	"TYPE_NAMED_PIPE":   5,
}

Functions

This section is empty.

Types

type BlobInfoProto

type BlobInfoProto struct {
	// The SHA-1 hash of the blob, in 20-byte 'raw' form.
	Hash             []byte `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*BlobInfoProto) GetHash

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

func (*BlobInfoProto) ProtoMessage

func (*BlobInfoProto) ProtoMessage()

func (*BlobInfoProto) Reset

func (m *BlobInfoProto) Reset()

func (*BlobInfoProto) String

func (m *BlobInfoProto) String() string

type DirectoryListingProto

type DirectoryListingProto struct {
	Entry            []*FileInfoProto `protobuf:"bytes,1,rep,name=entry" json:"entry,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*DirectoryListingProto) GetEntry

func (m *DirectoryListingProto) GetEntry() []*FileInfoProto

func (*DirectoryListingProto) ProtoMessage

func (*DirectoryListingProto) ProtoMessage()

func (*DirectoryListingProto) Reset

func (m *DirectoryListingProto) Reset()

func (*DirectoryListingProto) String

func (m *DirectoryListingProto) String() string

type FileInfoProto

type FileInfoProto struct {
	Type *FileInfoProto_Type `protobuf:"varint,1,opt,name=type,enum=repr_proto.FileInfoProto_Type" json:"type,omitempty"`
	// The permissions bits for this file, as described in the documentation for
	// fs.FileInfo, with values as in the golang os package.
	Permissions *uint32 `protobuf:"varint,2,opt,name=permissions" json:"permissions,omitempty"`
	// The owning user's UID, and their username if known.
	Uid      *uint32 `protobuf:"varint,3,opt,name=uid" json:"uid,omitempty"`
	Username *string `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"`
	// The owning user's GID, and their groupname if known.
	Gid       *uint32 `protobuf:"varint,5,opt,name=gid" json:"gid,omitempty"`
	Groupname *string `protobuf:"bytes,6,opt,name=groupname" json:"groupname,omitempty"`
	// The name of this child within its parent directory.
	Name *string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"`
	// The modification time.
	Mtime *TimeProto `protobuf:"bytes,8,opt,name=mtime" json:"mtime,omitempty"`
	// The zero or more blobs that make up a regular file's contents, to be
	// concatenated in order. Scores are present only if hard_link_target is not
	// present.
	Blob []*BlobInfoProto `protobuf:"bytes,9,rep,name=blob" json:"blob,omitempty"`
	// DEPRECATED: See notes on fs.FileInfo.HardLinkTarget.
	HardLinkTarget *string `protobuf:"bytes,10,opt,name=hard_link_target" json:"hard_link_target,omitempty"`
	// The target, if this is a symlink.
	Target *string `protobuf:"bytes,11,opt,name=target" json:"target,omitempty"`
	// The device number in a system-dependent format, if this is a device.
	DeviceNumber *int32 `protobuf:"varint,12,opt,name=device_number" json:"device_number,omitempty"`
	// The inode number. This may not be present in old backups.
	Inode *uint64 `protobuf:"varint,13,opt,name=inode" json:"inode,omitempty"`
	// The size in bytes. This may not be present in old backups.
	Size             *uint64 `protobuf:"varint,14,opt,name=size" json:"size,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*FileInfoProto) GetBlob

func (m *FileInfoProto) GetBlob() []*BlobInfoProto

func (*FileInfoProto) GetDeviceNumber

func (m *FileInfoProto) GetDeviceNumber() int32

func (*FileInfoProto) GetGid

func (m *FileInfoProto) GetGid() uint32

func (*FileInfoProto) GetGroupname

func (m *FileInfoProto) GetGroupname() string

func (*FileInfoProto) GetHardLinkTarget

func (m *FileInfoProto) GetHardLinkTarget() string

func (*FileInfoProto) GetInode

func (m *FileInfoProto) GetInode() uint64

func (*FileInfoProto) GetMtime

func (m *FileInfoProto) GetMtime() *TimeProto

func (*FileInfoProto) GetName

func (m *FileInfoProto) GetName() string

func (*FileInfoProto) GetPermissions

func (m *FileInfoProto) GetPermissions() uint32

func (*FileInfoProto) GetSize

func (m *FileInfoProto) GetSize() uint64

func (*FileInfoProto) GetTarget

func (m *FileInfoProto) GetTarget() string

func (*FileInfoProto) GetType

func (m *FileInfoProto) GetType() FileInfoProto_Type

func (*FileInfoProto) GetUid

func (m *FileInfoProto) GetUid() uint32

func (*FileInfoProto) GetUsername

func (m *FileInfoProto) GetUsername() string

func (*FileInfoProto) ProtoMessage

func (*FileInfoProto) ProtoMessage()

func (*FileInfoProto) Reset

func (m *FileInfoProto) Reset()

func (*FileInfoProto) String

func (m *FileInfoProto) String() string

type FileInfoProto_Type

type FileInfoProto_Type int32
const (
	// Sentinel for a missing value.
	FileInfoProto_TYPE_UNKNOWN      FileInfoProto_Type = -1
	FileInfoProto_TYPE_FILE         FileInfoProto_Type = 0
	FileInfoProto_TYPE_DIRECTORY    FileInfoProto_Type = 1
	FileInfoProto_TYPE_SYMLINK      FileInfoProto_Type = 2
	FileInfoProto_TYPE_BLOCK_DEVICE FileInfoProto_Type = 3
	FileInfoProto_TYPE_CHAR_DEVICE  FileInfoProto_Type = 4
	FileInfoProto_TYPE_NAMED_PIPE   FileInfoProto_Type = 5
)

func (FileInfoProto_Type) Enum

func (FileInfoProto_Type) String

func (x FileInfoProto_Type) String() string

func (*FileInfoProto_Type) UnmarshalJSON

func (x *FileInfoProto_Type) UnmarshalJSON(data []byte) error

type TimeProto

type TimeProto struct {
	// The number of seconds since the Unix time epoch.
	Second *int64 `protobuf:"varint,1,opt,name=second" json:"second,omitempty"`
	// A nanosecond in the second specified above. This must be in the range
	// [0, 1e9).
	Nanosecond       *uint32 `protobuf:"varint,2,opt,name=nanosecond" json:"nanosecond,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

An instant in time, with nanosecond resolution.

func (*TimeProto) GetNanosecond

func (m *TimeProto) GetNanosecond() uint32

func (*TimeProto) GetSecond

func (m *TimeProto) GetSecond() int64

func (*TimeProto) ProtoMessage

func (*TimeProto) ProtoMessage()

func (*TimeProto) Reset

func (m *TimeProto) Reset()

func (*TimeProto) String

func (m *TimeProto) String() string

Jump to

Keyboard shortcuts

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