Documentation ¶
Overview ¶
Package commands is a generated protocol buffer package.
Package commands contains messages used to perform actions against the file system.
It is generated from these files:
commands.proto
It has these top-level messages:
Read Stat Write Move Copy Delete Join List Describe Dump Statistics GetMetadata SetMetadata SearchMetadata
Index ¶
- Variables
- type Copy
- func (*Copy) Descriptor() ([]byte, []int)
- func (this *Copy) Equal(that interface{}) bool
- func (m *Copy) GetDestination() string
- func (m *Copy) GetSource() string
- func (this *Copy) GoString() string
- func (m *Copy) Marshal() (dAtA []byte, err error)
- func (m *Copy) MarshalTo(dAtA []byte) (int, error)
- func (*Copy) ProtoMessage()
- func (m *Copy) Reset()
- func (m *Copy) Size() (n int)
- func (this *Copy) String() string
- func (m *Copy) Unmarshal(dAtA []byte) error
- type Delete
- func (*Delete) Descriptor() ([]byte, []int)
- func (this *Delete) Equal(that interface{}) bool
- func (m *Delete) GetFileName() string
- func (this *Delete) GoString() string
- func (m *Delete) Marshal() (dAtA []byte, err error)
- func (m *Delete) MarshalTo(dAtA []byte) (int, error)
- func (*Delete) ProtoMessage()
- func (m *Delete) Reset()
- func (m *Delete) Size() (n int)
- func (this *Delete) String() string
- func (m *Delete) Unmarshal(dAtA []byte) error
- type Describe
- func (*Describe) Descriptor() ([]byte, []int)
- func (this *Describe) Equal(that interface{}) bool
- func (this *Describe) GoString() string
- func (m *Describe) Marshal() (dAtA []byte, err error)
- func (m *Describe) MarshalTo(dAtA []byte) (int, error)
- func (*Describe) ProtoMessage()
- func (m *Describe) Reset()
- func (m *Describe) Size() (n int)
- func (this *Describe) String() string
- func (m *Describe) Unmarshal(dAtA []byte) error
- type Dump
- func (*Dump) Descriptor() ([]byte, []int)
- func (this *Dump) Equal(that interface{}) bool
- func (this *Dump) GoString() string
- func (m *Dump) Marshal() (dAtA []byte, err error)
- func (m *Dump) MarshalTo(dAtA []byte) (int, error)
- func (*Dump) ProtoMessage()
- func (m *Dump) Reset()
- func (m *Dump) Size() (n int)
- func (this *Dump) String() string
- func (m *Dump) Unmarshal(dAtA []byte) error
- type GetMetadata
- func (*GetMetadata) Descriptor() ([]byte, []int)
- func (this *GetMetadata) Equal(that interface{}) bool
- func (m *GetMetadata) GetFileName() string
- func (this *GetMetadata) GoString() string
- func (m *GetMetadata) Marshal() (dAtA []byte, err error)
- func (m *GetMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*GetMetadata) ProtoMessage()
- func (m *GetMetadata) Reset()
- func (m *GetMetadata) Size() (n int)
- func (this *GetMetadata) String() string
- func (m *GetMetadata) Unmarshal(dAtA []byte) error
- type Join
- func (*Join) Descriptor() ([]byte, []int)
- func (this *Join) Equal(that interface{}) bool
- func (m *Join) GetAddress() string
- func (m *Join) GetNodeId() string
- func (this *Join) GoString() string
- func (m *Join) Marshal() (dAtA []byte, err error)
- func (m *Join) MarshalTo(dAtA []byte) (int, error)
- func (*Join) ProtoMessage()
- func (m *Join) Reset()
- func (m *Join) Size() (n int)
- func (this *Join) String() string
- func (m *Join) Unmarshal(dAtA []byte) error
- type List
- func (*List) Descriptor() ([]byte, []int)
- func (this *List) Equal(that interface{}) bool
- func (m *List) GetName() string
- func (this *List) GoString() string
- func (m *List) Marshal() (dAtA []byte, err error)
- func (m *List) MarshalTo(dAtA []byte) (int, error)
- func (*List) ProtoMessage()
- func (m *List) Reset()
- func (m *List) Size() (n int)
- func (this *List) String() string
- func (m *List) Unmarshal(dAtA []byte) error
- type Move
- func (*Move) Descriptor() ([]byte, []int)
- func (this *Move) Equal(that interface{}) bool
- func (m *Move) GetDestination() string
- func (m *Move) GetSource() string
- func (this *Move) GoString() string
- func (m *Move) Marshal() (dAtA []byte, err error)
- func (m *Move) MarshalTo(dAtA []byte) (int, error)
- func (*Move) ProtoMessage()
- func (m *Move) Reset()
- func (m *Move) Size() (n int)
- func (this *Move) String() string
- func (m *Move) Unmarshal(dAtA []byte) error
- type Read
- func (*Read) Descriptor() ([]byte, []int)
- func (this *Read) Equal(that interface{}) bool
- func (m *Read) GetFileName() string
- func (this *Read) GoString() string
- func (m *Read) Marshal() (dAtA []byte, err error)
- func (m *Read) MarshalTo(dAtA []byte) (int, error)
- func (*Read) ProtoMessage()
- func (m *Read) Reset()
- func (m *Read) Size() (n int)
- func (this *Read) String() string
- func (m *Read) Unmarshal(dAtA []byte) error
- type SearchMetadata
- func (*SearchMetadata) Descriptor() ([]byte, []int)
- func (this *SearchMetadata) Equal(that interface{}) bool
- func (m *SearchMetadata) GetTerm() string
- func (this *SearchMetadata) GoString() string
- func (m *SearchMetadata) Marshal() (dAtA []byte, err error)
- func (m *SearchMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*SearchMetadata) ProtoMessage()
- func (m *SearchMetadata) Reset()
- func (m *SearchMetadata) Size() (n int)
- func (this *SearchMetadata) String() string
- func (m *SearchMetadata) Unmarshal(dAtA []byte) error
- type SetMetadata
- func (*SetMetadata) Descriptor() ([]byte, []int)
- func (this *SetMetadata) Equal(that interface{}) bool
- func (m *SetMetadata) GetFileName() string
- func (m *SetMetadata) GetValues() map[string]string
- func (this *SetMetadata) GoString() string
- func (m *SetMetadata) Marshal() (dAtA []byte, err error)
- func (m *SetMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*SetMetadata) ProtoMessage()
- func (m *SetMetadata) Reset()
- func (m *SetMetadata) Size() (n int)
- func (this *SetMetadata) String() string
- func (m *SetMetadata) Unmarshal(dAtA []byte) error
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)
- func (this *Stat) Equal(that interface{}) bool
- func (m *Stat) GetFileName() string
- func (this *Stat) GoString() string
- func (m *Stat) Marshal() (dAtA []byte, err error)
- func (m *Stat) MarshalTo(dAtA []byte) (int, error)
- func (*Stat) ProtoMessage()
- func (m *Stat) Reset()
- func (m *Stat) Size() (n int)
- func (this *Stat) String() string
- func (m *Stat) Unmarshal(dAtA []byte) error
- type Statistics
- func (*Statistics) Descriptor() ([]byte, []int)
- func (this *Statistics) Equal(that interface{}) bool
- func (this *Statistics) GoString() string
- func (m *Statistics) Marshal() (dAtA []byte, err error)
- func (m *Statistics) MarshalTo(dAtA []byte) (int, error)
- func (*Statistics) ProtoMessage()
- func (m *Statistics) Reset()
- func (m *Statistics) Size() (n int)
- func (this *Statistics) String() string
- func (m *Statistics) Unmarshal(dAtA []byte) error
- type Write
- func (*Write) Descriptor() ([]byte, []int)
- func (this *Write) Equal(that interface{}) bool
- func (m *Write) GetFileData() []byte
- func (m *Write) GetFileName() string
- func (this *Write) GoString() string
- func (m *Write) Marshal() (dAtA []byte, err error)
- func (m *Write) MarshalTo(dAtA []byte) (int, error)
- func (*Write) ProtoMessage()
- func (m *Write) Reset()
- func (m *Write) Size() (n int)
- func (this *Write) String() string
- func (m *Write) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCommands = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommands = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Copy ¶
type Copy struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` }
The Copy message is used to copy data from a file to a new file
func (*Copy) Descriptor ¶
func (*Copy) GetDestination ¶
func (*Copy) ProtoMessage ¶
func (*Copy) ProtoMessage()
type Delete ¶
type Delete struct {
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
}
The Delete message is used to remove a file from the file system.
func (*Delete) Descriptor ¶
func (*Delete) GetFileName ¶
func (*Delete) ProtoMessage ¶
func (*Delete) ProtoMessage()
type Describe ¶
type Describe struct { }
The Describe message is used to request information on a raft node.
func (*Describe) Descriptor ¶
func (*Describe) ProtoMessage ¶
func (*Describe) ProtoMessage()
type Dump ¶
type Dump struct { }
The Dump message is used to obtain a full snapshot of the node's data.
func (*Dump) Descriptor ¶
func (*Dump) ProtoMessage ¶
func (*Dump) ProtoMessage()
type GetMetadata ¶
type GetMetadata struct {
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
}
The GetMetadata message is used to obtain metadata for a specific file.
func (*GetMetadata) Descriptor ¶
func (*GetMetadata) Descriptor() ([]byte, []int)
func (*GetMetadata) Equal ¶
func (this *GetMetadata) Equal(that interface{}) bool
func (*GetMetadata) GetFileName ¶
func (m *GetMetadata) GetFileName() string
func (*GetMetadata) GoString ¶
func (this *GetMetadata) GoString() string
func (*GetMetadata) Marshal ¶
func (m *GetMetadata) Marshal() (dAtA []byte, err error)
func (*GetMetadata) ProtoMessage ¶
func (*GetMetadata) ProtoMessage()
func (*GetMetadata) Reset ¶
func (m *GetMetadata) Reset()
func (*GetMetadata) Size ¶
func (m *GetMetadata) Size() (n int)
func (*GetMetadata) String ¶
func (this *GetMetadata) String() string
func (*GetMetadata) Unmarshal ¶
func (m *GetMetadata) Unmarshal(dAtA []byte) error
type Join ¶
type Join struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
The Join message is used to join the raft cluster
func (*Join) Descriptor ¶
func (*Join) GetAddress ¶
func (*Join) ProtoMessage ¶
func (*Join) ProtoMessage()
type List ¶
type List struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
The List message is used to list all files at a given location.
func (*List) Descriptor ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
type Move ¶
type Move struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` }
The Move message is used to move a file from one directory to another.
func (*Move) Descriptor ¶
func (*Move) GetDestination ¶
func (*Move) ProtoMessage ¶
func (*Move) ProtoMessage()
type Read ¶
type Read struct {
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
}
The Read message is used to open a file for reading.
func (*Read) Descriptor ¶
func (*Read) GetFileName ¶
func (*Read) ProtoMessage ¶
func (*Read) ProtoMessage()
type SearchMetadata ¶
type SearchMetadata struct {
Term string `protobuf:"bytes,1,opt,name=term,proto3" json:"term,omitempty"`
}
The SearchMetadata message is used to search for all file metadata using a given term.
func (*SearchMetadata) Descriptor ¶
func (*SearchMetadata) Descriptor() ([]byte, []int)
func (*SearchMetadata) Equal ¶
func (this *SearchMetadata) Equal(that interface{}) bool
func (*SearchMetadata) GetTerm ¶
func (m *SearchMetadata) GetTerm() string
func (*SearchMetadata) GoString ¶
func (this *SearchMetadata) GoString() string
func (*SearchMetadata) Marshal ¶
func (m *SearchMetadata) Marshal() (dAtA []byte, err error)
func (*SearchMetadata) ProtoMessage ¶
func (*SearchMetadata) ProtoMessage()
func (*SearchMetadata) Reset ¶
func (m *SearchMetadata) Reset()
func (*SearchMetadata) Size ¶
func (m *SearchMetadata) Size() (n int)
func (*SearchMetadata) String ¶
func (this *SearchMetadata) String() string
func (*SearchMetadata) Unmarshal ¶
func (m *SearchMetadata) Unmarshal(dAtA []byte) error
type SetMetadata ¶
type SetMetadata struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Values map[string]string `` /* 146-byte string literal not displayed */ }
The SetMetadata message is used to set metadata values for a specific file.
func (*SetMetadata) Descriptor ¶
func (*SetMetadata) Descriptor() ([]byte, []int)
func (*SetMetadata) Equal ¶
func (this *SetMetadata) Equal(that interface{}) bool
func (*SetMetadata) GetFileName ¶
func (m *SetMetadata) GetFileName() string
func (*SetMetadata) GetValues ¶
func (m *SetMetadata) GetValues() map[string]string
func (*SetMetadata) GoString ¶
func (this *SetMetadata) GoString() string
func (*SetMetadata) Marshal ¶
func (m *SetMetadata) Marshal() (dAtA []byte, err error)
func (*SetMetadata) ProtoMessage ¶
func (*SetMetadata) ProtoMessage()
func (*SetMetadata) Reset ¶
func (m *SetMetadata) Reset()
func (*SetMetadata) Size ¶
func (m *SetMetadata) Size() (n int)
func (*SetMetadata) String ¶
func (this *SetMetadata) String() string
func (*SetMetadata) Unmarshal ¶
func (m *SetMetadata) Unmarshal(dAtA []byte) error
type Stat ¶
type Stat struct {
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
}
The Stat message is used to get information on a file.
func (*Stat) Descriptor ¶
func (*Stat) GetFileName ¶
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
type Statistics ¶
type Statistics struct { }
The Statistics message is used to obtain all the raft statistics from the cluster.
func (*Statistics) Descriptor ¶
func (*Statistics) Descriptor() ([]byte, []int)
func (*Statistics) Equal ¶
func (this *Statistics) Equal(that interface{}) bool
func (*Statistics) GoString ¶
func (this *Statistics) GoString() string
func (*Statistics) Marshal ¶
func (m *Statistics) Marshal() (dAtA []byte, err error)
func (*Statistics) ProtoMessage ¶
func (*Statistics) ProtoMessage()
func (*Statistics) Reset ¶
func (m *Statistics) Reset()
func (*Statistics) Size ¶
func (m *Statistics) Size() (n int)
func (*Statistics) String ¶
func (this *Statistics) String() string
func (*Statistics) Unmarshal ¶
func (m *Statistics) Unmarshal(dAtA []byte) error
type Write ¶
type Write struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` FileData []byte `protobuf:"bytes,2,opt,name=file_data,json=fileData,proto3" json:"file_data,omitempty"` }
The Write message is used to write data to a file.
func (*Write) Descriptor ¶
func (*Write) GetFileData ¶
func (*Write) GetFileName ¶
func (*Write) ProtoMessage ¶
func (*Write) ProtoMessage()