commands

package
v0.0.0-...-6ed8234 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

func (*Copy) Equal

func (this *Copy) Equal(that interface{}) bool

func (*Copy) GetDestination

func (m *Copy) GetDestination() string

func (*Copy) GetSource

func (m *Copy) GetSource() string

func (*Copy) GoString

func (this *Copy) GoString() string

func (*Copy) Marshal

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

func (*Copy) MarshalTo

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

func (*Copy) ProtoMessage

func (*Copy) ProtoMessage()

func (*Copy) Reset

func (m *Copy) Reset()

func (*Copy) Size

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

func (*Copy) String

func (this *Copy) String() string

func (*Copy) Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Delete) Equal

func (this *Delete) Equal(that interface{}) bool

func (*Delete) GetFileName

func (m *Delete) GetFileName() string

func (*Delete) GoString

func (this *Delete) GoString() string

func (*Delete) Marshal

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

func (*Delete) MarshalTo

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

func (*Delete) ProtoMessage

func (*Delete) ProtoMessage()

func (*Delete) Reset

func (m *Delete) Reset()

func (*Delete) Size

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

func (*Delete) String

func (this *Delete) String() string

func (*Delete) Unmarshal

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

type Describe

type Describe struct {
}

The Describe message is used to request information on a raft node.

func (*Describe) Descriptor

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

func (*Describe) Equal

func (this *Describe) Equal(that interface{}) bool

func (*Describe) GoString

func (this *Describe) GoString() string

func (*Describe) Marshal

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

func (*Describe) MarshalTo

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

func (*Describe) ProtoMessage

func (*Describe) ProtoMessage()

func (*Describe) Reset

func (m *Describe) Reset()

func (*Describe) Size

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

func (*Describe) String

func (this *Describe) String() string

func (*Describe) Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Dump) Equal

func (this *Dump) Equal(that interface{}) bool

func (*Dump) GoString

func (this *Dump) GoString() string

func (*Dump) Marshal

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

func (*Dump) MarshalTo

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

func (*Dump) ProtoMessage

func (*Dump) ProtoMessage()

func (*Dump) Reset

func (m *Dump) Reset()

func (*Dump) Size

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

func (*Dump) String

func (this *Dump) String() string

func (*Dump) Unmarshal

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

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) MarshalTo

func (m *GetMetadata) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Join) Equal

func (this *Join) Equal(that interface{}) bool

func (*Join) GetAddress

func (m *Join) GetAddress() string

func (*Join) GetNodeId

func (m *Join) GetNodeId() string

func (*Join) GoString

func (this *Join) GoString() string

func (*Join) Marshal

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

func (*Join) MarshalTo

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

func (*Join) ProtoMessage

func (*Join) ProtoMessage()

func (*Join) Reset

func (m *Join) Reset()

func (*Join) Size

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

func (*Join) String

func (this *Join) String() string

func (*Join) Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*List) Equal

func (this *List) Equal(that interface{}) bool

func (*List) GetName

func (m *List) GetName() string

func (*List) GoString

func (this *List) GoString() string

func (*List) Marshal

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

func (*List) MarshalTo

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

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) Reset

func (m *List) Reset()

func (*List) Size

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

func (*List) String

func (this *List) String() string

func (*List) Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Move) Equal

func (this *Move) Equal(that interface{}) bool

func (*Move) GetDestination

func (m *Move) GetDestination() string

func (*Move) GetSource

func (m *Move) GetSource() string

func (*Move) GoString

func (this *Move) GoString() string

func (*Move) Marshal

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

func (*Move) MarshalTo

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

func (*Move) ProtoMessage

func (*Move) ProtoMessage()

func (*Move) Reset

func (m *Move) Reset()

func (*Move) Size

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

func (*Move) String

func (this *Move) String() string

func (*Move) Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Read) Equal

func (this *Read) Equal(that interface{}) bool

func (*Read) GetFileName

func (m *Read) GetFileName() string

func (*Read) GoString

func (this *Read) GoString() string

func (*Read) Marshal

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

func (*Read) MarshalTo

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

func (*Read) ProtoMessage

func (*Read) ProtoMessage()

func (*Read) Reset

func (m *Read) Reset()

func (*Read) Size

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

func (*Read) String

func (this *Read) String() string

func (*Read) Unmarshal

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

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) MarshalTo

func (m *SearchMetadata) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *SetMetadata) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Stat) Equal

func (this *Stat) Equal(that interface{}) bool

func (*Stat) GetFileName

func (m *Stat) GetFileName() string

func (*Stat) GoString

func (this *Stat) GoString() string

func (*Stat) Marshal

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

func (*Stat) MarshalTo

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

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) Reset

func (m *Stat) Reset()

func (*Stat) Size

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

func (*Stat) String

func (this *Stat) String() string

func (*Stat) Unmarshal

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

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) MarshalTo

func (m *Statistics) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Write) Equal

func (this *Write) Equal(that interface{}) bool

func (*Write) GetFileData

func (m *Write) GetFileData() []byte

func (*Write) GetFileName

func (m *Write) GetFileName() string

func (*Write) GoString

func (this *Write) GoString() string

func (*Write) Marshal

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

func (*Write) MarshalTo

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

func (*Write) ProtoMessage

func (*Write) ProtoMessage()

func (*Write) Reset

func (m *Write) Reset()

func (*Write) Size

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

func (*Write) String

func (this *Write) String() string

func (*Write) Unmarshal

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

Jump to

Keyboard shortcuts

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