pb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventType_name = map[int32]string{
		0: "ENTRY_ADDED",
		1: "ENTRY_DELETED",
		2: "ENTRY_UPDATED",
	}
	EventType_value = map[string]int32{
		"ENTRY_ADDED":   0,
		"ENTRY_DELETED": 1,
		"ENTRY_UPDATED": 2,
	}
)

Enum value maps for EventType.

View Source
var File_space_proto protoreflect.FileDescriptor

Functions

func RegisterSpaceApiServer

func RegisterSpaceApiServer(s *grpc.Server, srv SpaceApiServer)

Types

type AddItemResult added in v0.0.3

type AddItemResult struct {
	SourcePath string `protobuf:"bytes,1,opt,name=sourcePath,proto3" json:"sourcePath,omitempty"`
	BucketPath string `protobuf:"bytes,2,opt,name=bucketPath,proto3" json:"bucketPath,omitempty"`
	Error      string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*AddItemResult) Descriptor deprecated added in v0.0.3

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

Deprecated: Use AddItemResult.ProtoReflect.Descriptor instead.

func (*AddItemResult) GetBucketPath added in v0.0.3

func (x *AddItemResult) GetBucketPath() string

func (*AddItemResult) GetError added in v0.0.3

func (x *AddItemResult) GetError() string

func (*AddItemResult) GetSourcePath added in v0.0.3

func (x *AddItemResult) GetSourcePath() string

func (*AddItemResult) ProtoMessage added in v0.0.3

func (*AddItemResult) ProtoMessage()

func (*AddItemResult) ProtoReflect added in v0.0.3

func (x *AddItemResult) ProtoReflect() protoreflect.Message

func (*AddItemResult) Reset added in v0.0.3

func (x *AddItemResult) Reset()

func (*AddItemResult) String added in v0.0.3

func (x *AddItemResult) String() string

type AddItemsRequest

type AddItemsRequest struct {
	SourcePaths []string `protobuf:"bytes,1,rep,name=sourcePaths,proto3" json:"sourcePaths,omitempty"` // full paths to file or Folder on FS. Needs to be a location available to the daemon
	TargetPath  string   `protobuf:"bytes,2,opt,name=targetPath,proto3" json:"targetPath,omitempty"`   // target path in bucket.
	// contains filtered or unexported fields
}

func (*AddItemsRequest) Descriptor deprecated

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

Deprecated: Use AddItemsRequest.ProtoReflect.Descriptor instead.

func (*AddItemsRequest) GetSourcePaths

func (x *AddItemsRequest) GetSourcePaths() []string

func (*AddItemsRequest) GetTargetPath

func (x *AddItemsRequest) GetTargetPath() string

func (*AddItemsRequest) ProtoMessage

func (*AddItemsRequest) ProtoMessage()

func (*AddItemsRequest) ProtoReflect

func (x *AddItemsRequest) ProtoReflect() protoreflect.Message

func (*AddItemsRequest) Reset

func (x *AddItemsRequest) Reset()

func (*AddItemsRequest) String

func (x *AddItemsRequest) String() string

type AddItemsResponse

type AddItemsResponse struct {
	Result   *AddItemResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Progress uint32         `protobuf:"varint,2,opt,name=progress,proto3" json:"progress,omitempty"`
	// contains filtered or unexported fields
}

func (*AddItemsResponse) Descriptor deprecated

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

Deprecated: Use AddItemsResponse.ProtoReflect.Descriptor instead.

func (*AddItemsResponse) GetProgress added in v0.0.3

func (x *AddItemsResponse) GetProgress() uint32

func (*AddItemsResponse) GetResult added in v0.0.3

func (x *AddItemsResponse) GetResult() *AddItemResult

func (*AddItemsResponse) ProtoMessage

func (*AddItemsResponse) ProtoMessage()

func (*AddItemsResponse) ProtoReflect

func (x *AddItemsResponse) ProtoReflect() protoreflect.Message

func (*AddItemsResponse) Reset

func (x *AddItemsResponse) Reset()

func (*AddItemsResponse) String

func (x *AddItemsResponse) String() string

type ConfigInfoResponse

type ConfigInfoResponse struct {
	Port    string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	AppPath string `protobuf:"bytes,2,opt,name=appPath,proto3" json:"appPath,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigInfoResponse) Descriptor deprecated

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

Deprecated: Use ConfigInfoResponse.ProtoReflect.Descriptor instead.

func (*ConfigInfoResponse) GetAppPath

func (x *ConfigInfoResponse) GetAppPath() string

func (*ConfigInfoResponse) GetPort

func (x *ConfigInfoResponse) GetPort() string

func (*ConfigInfoResponse) ProtoMessage

func (*ConfigInfoResponse) ProtoMessage()

func (*ConfigInfoResponse) ProtoReflect

func (x *ConfigInfoResponse) ProtoReflect() protoreflect.Message

func (*ConfigInfoResponse) Reset

func (x *ConfigInfoResponse) Reset()

func (*ConfigInfoResponse) String

func (x *ConfigInfoResponse) String() string

type CreateFolderRequest

type CreateFolderRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // target path in bucket to add new empty folder
	// contains filtered or unexported fields
}

func (*CreateFolderRequest) Descriptor deprecated

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

Deprecated: Use CreateFolderRequest.ProtoReflect.Descriptor instead.

func (*CreateFolderRequest) GetPath

func (x *CreateFolderRequest) GetPath() string

func (*CreateFolderRequest) ProtoMessage

func (*CreateFolderRequest) ProtoMessage()

func (*CreateFolderRequest) ProtoReflect

func (x *CreateFolderRequest) ProtoReflect() protoreflect.Message

func (*CreateFolderRequest) Reset

func (x *CreateFolderRequest) Reset()

func (*CreateFolderRequest) String

func (x *CreateFolderRequest) String() string

type CreateFolderResponse

type CreateFolderResponse struct {
	// contains filtered or unexported fields
}

not sure we need to return anything other than an error if we failed

func (*CreateFolderResponse) Descriptor deprecated

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

Deprecated: Use CreateFolderResponse.ProtoReflect.Descriptor instead.

func (*CreateFolderResponse) ProtoMessage

func (*CreateFolderResponse) ProtoMessage()

func (*CreateFolderResponse) ProtoReflect

func (x *CreateFolderResponse) ProtoReflect() protoreflect.Message

func (*CreateFolderResponse) Reset

func (x *CreateFolderResponse) Reset()

func (*CreateFolderResponse) String

func (x *CreateFolderResponse) String() string

type EventType

type EventType int32
const (
	EventType_ENTRY_ADDED   EventType = 0
	EventType_ENTRY_DELETED EventType = 1
	EventType_ENTRY_UPDATED EventType = 2
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type FileEventResponse

type FileEventResponse struct {
	Type  EventType           `protobuf:"varint,1,opt,name=type,proto3,enum=space.EventType" json:"type,omitempty"`
	Entry *ListDirectoryEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*FileEventResponse) Descriptor deprecated

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

Deprecated: Use FileEventResponse.ProtoReflect.Descriptor instead.

func (*FileEventResponse) GetEntry

func (x *FileEventResponse) GetEntry() *ListDirectoryEntry

func (*FileEventResponse) GetType

func (x *FileEventResponse) GetType() EventType

func (*FileEventResponse) ProtoMessage

func (*FileEventResponse) ProtoMessage()

func (*FileEventResponse) ProtoReflect

func (x *FileEventResponse) ProtoReflect() protoreflect.Message

func (*FileEventResponse) Reset

func (x *FileEventResponse) Reset()

func (*FileEventResponse) String

func (x *FileEventResponse) String() string

type GenerateKeyPairRequest

type GenerateKeyPairRequest struct {
	// contains filtered or unexported fields
}

func (*GenerateKeyPairRequest) Descriptor deprecated

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

Deprecated: Use GenerateKeyPairRequest.ProtoReflect.Descriptor instead.

func (*GenerateKeyPairRequest) ProtoMessage

func (*GenerateKeyPairRequest) ProtoMessage()

func (*GenerateKeyPairRequest) ProtoReflect

func (x *GenerateKeyPairRequest) ProtoReflect() protoreflect.Message

func (*GenerateKeyPairRequest) Reset

func (x *GenerateKeyPairRequest) Reset()

func (*GenerateKeyPairRequest) String

func (x *GenerateKeyPairRequest) String() string

type GenerateKeyPairResponse

type GenerateKeyPairResponse struct {
	PublicKey  string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateKeyPairResponse) Descriptor deprecated

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

Deprecated: Use GenerateKeyPairResponse.ProtoReflect.Descriptor instead.

func (*GenerateKeyPairResponse) GetPrivateKey

func (x *GenerateKeyPairResponse) GetPrivateKey() string

func (*GenerateKeyPairResponse) GetPublicKey

func (x *GenerateKeyPairResponse) GetPublicKey() string

func (*GenerateKeyPairResponse) ProtoMessage

func (*GenerateKeyPairResponse) ProtoMessage()

func (*GenerateKeyPairResponse) ProtoReflect

func (x *GenerateKeyPairResponse) ProtoReflect() protoreflect.Message

func (*GenerateKeyPairResponse) Reset

func (x *GenerateKeyPairResponse) Reset()

func (*GenerateKeyPairResponse) String

func (x *GenerateKeyPairResponse) String() string

type ListDirectoriesRequest

type ListDirectoriesRequest struct {
	// contains filtered or unexported fields
}

func (*ListDirectoriesRequest) Descriptor deprecated

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

Deprecated: Use ListDirectoriesRequest.ProtoReflect.Descriptor instead.

func (*ListDirectoriesRequest) ProtoMessage

func (*ListDirectoriesRequest) ProtoMessage()

func (*ListDirectoriesRequest) ProtoReflect

func (x *ListDirectoriesRequest) ProtoReflect() protoreflect.Message

func (*ListDirectoriesRequest) Reset

func (x *ListDirectoriesRequest) Reset()

func (*ListDirectoriesRequest) String

func (x *ListDirectoriesRequest) String() string

type ListDirectoriesResponse

type ListDirectoriesResponse struct {
	Entries []*ListDirectoryEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDirectoriesResponse) Descriptor deprecated

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

Deprecated: Use ListDirectoriesResponse.ProtoReflect.Descriptor instead.

func (*ListDirectoriesResponse) GetEntries

func (x *ListDirectoriesResponse) GetEntries() []*ListDirectoryEntry

func (*ListDirectoriesResponse) ProtoMessage

func (*ListDirectoriesResponse) ProtoMessage()

func (*ListDirectoriesResponse) ProtoReflect

func (x *ListDirectoriesResponse) ProtoReflect() protoreflect.Message

func (*ListDirectoriesResponse) Reset

func (x *ListDirectoriesResponse) Reset()

func (*ListDirectoriesResponse) String

func (x *ListDirectoriesResponse) String() string

type ListDirectoryEntry

type ListDirectoryEntry struct {
	Path          string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	IsDir         bool   `protobuf:"varint,2,opt,name=isDir,proto3" json:"isDir,omitempty"`
	Name          string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	SizeInBytes   string `protobuf:"bytes,4,opt,name=sizeInBytes,proto3" json:"sizeInBytes,omitempty"`
	Created       string `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
	Updated       string `protobuf:"bytes,6,opt,name=updated,proto3" json:"updated,omitempty"`
	FileExtension string `protobuf:"bytes,7,opt,name=fileExtension,proto3" json:"fileExtension,omitempty"`
	IpfsHash      string `protobuf:"bytes,8,opt,name=ipfsHash,proto3" json:"ipfsHash,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDirectoryEntry) Descriptor deprecated

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

Deprecated: Use ListDirectoryEntry.ProtoReflect.Descriptor instead.

func (*ListDirectoryEntry) GetCreated

func (x *ListDirectoryEntry) GetCreated() string

func (*ListDirectoryEntry) GetFileExtension

func (x *ListDirectoryEntry) GetFileExtension() string

func (*ListDirectoryEntry) GetIpfsHash

func (x *ListDirectoryEntry) GetIpfsHash() string

func (*ListDirectoryEntry) GetIsDir

func (x *ListDirectoryEntry) GetIsDir() bool

func (*ListDirectoryEntry) GetName

func (x *ListDirectoryEntry) GetName() string

func (*ListDirectoryEntry) GetPath

func (x *ListDirectoryEntry) GetPath() string

func (*ListDirectoryEntry) GetSizeInBytes

func (x *ListDirectoryEntry) GetSizeInBytes() string

func (*ListDirectoryEntry) GetUpdated

func (x *ListDirectoryEntry) GetUpdated() string

func (*ListDirectoryEntry) ProtoMessage

func (*ListDirectoryEntry) ProtoMessage()

func (*ListDirectoryEntry) ProtoReflect

func (x *ListDirectoryEntry) ProtoReflect() protoreflect.Message

func (*ListDirectoryEntry) Reset

func (x *ListDirectoryEntry) Reset()

func (*ListDirectoryEntry) String

func (x *ListDirectoryEntry) String() string

type OpenFileRequest

type OpenFileRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenFileRequest) Descriptor deprecated

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

Deprecated: Use OpenFileRequest.ProtoReflect.Descriptor instead.

func (*OpenFileRequest) GetPath

func (x *OpenFileRequest) GetPath() string

func (*OpenFileRequest) ProtoMessage

func (*OpenFileRequest) ProtoMessage()

func (*OpenFileRequest) ProtoReflect

func (x *OpenFileRequest) ProtoReflect() protoreflect.Message

func (*OpenFileRequest) Reset

func (x *OpenFileRequest) Reset()

func (*OpenFileRequest) String

func (x *OpenFileRequest) String() string

type OpenFileResponse

type OpenFileResponse struct {
	Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenFileResponse) Descriptor deprecated

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

Deprecated: Use OpenFileResponse.ProtoReflect.Descriptor instead.

func (*OpenFileResponse) GetLocation

func (x *OpenFileResponse) GetLocation() string

func (*OpenFileResponse) ProtoMessage

func (*OpenFileResponse) ProtoMessage()

func (*OpenFileResponse) ProtoReflect

func (x *OpenFileResponse) ProtoReflect() protoreflect.Message

func (*OpenFileResponse) Reset

func (x *OpenFileResponse) Reset()

func (*OpenFileResponse) String

func (x *OpenFileResponse) String() string

type SpaceApiClient

type SpaceApiClient interface {
	ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (*ListDirectoriesResponse, error)
	GetConfigInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ConfigInfoResponse, error)
	GenerateKeyPair(ctx context.Context, in *GenerateKeyPairRequest, opts ...grpc.CallOption) (*GenerateKeyPairResponse, error)
	GenerateKeyPairWithForce(ctx context.Context, in *GenerateKeyPairRequest, opts ...grpc.CallOption) (*GenerateKeyPairResponse, error)
	Subscribe(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (SpaceApi_SubscribeClient, error)
	TxlSubscribe(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (SpaceApi_TxlSubscribeClient, error)
	OpenFile(ctx context.Context, in *OpenFileRequest, opts ...grpc.CallOption) (*OpenFileResponse, error)
	AddItems(ctx context.Context, in *AddItemsRequest, opts ...grpc.CallOption) (SpaceApi_AddItemsClient, error)
	CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*CreateFolderResponse, error)
}

SpaceApiClient is the client API for SpaceApi service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSpaceApiClient

func NewSpaceApiClient(cc grpc.ClientConnInterface) SpaceApiClient

type SpaceApi_AddItemsClient added in v0.0.3

type SpaceApi_AddItemsClient interface {
	Recv() (*AddItemsResponse, error)
	grpc.ClientStream
}

type SpaceApi_AddItemsServer added in v0.0.3

type SpaceApi_AddItemsServer interface {
	Send(*AddItemsResponse) error
	grpc.ServerStream
}

type SpaceApi_SubscribeClient

type SpaceApi_SubscribeClient interface {
	Recv() (*FileEventResponse, error)
	grpc.ClientStream
}

type SpaceApi_SubscribeServer

type SpaceApi_SubscribeServer interface {
	Send(*FileEventResponse) error
	grpc.ServerStream
}

type SpaceApi_TxlSubscribeClient added in v0.0.3

type SpaceApi_TxlSubscribeClient interface {
	Recv() (*TextileEventResponse, error)
	grpc.ClientStream
}

type SpaceApi_TxlSubscribeServer added in v0.0.3

type SpaceApi_TxlSubscribeServer interface {
	Send(*TextileEventResponse) error
	grpc.ServerStream
}

type TextileEventResponse added in v0.0.3

type TextileEventResponse struct {
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

func (*TextileEventResponse) Descriptor deprecated added in v0.0.3

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

Deprecated: Use TextileEventResponse.ProtoReflect.Descriptor instead.

func (*TextileEventResponse) GetBucket added in v0.0.3

func (x *TextileEventResponse) GetBucket() string

func (*TextileEventResponse) ProtoMessage added in v0.0.3

func (*TextileEventResponse) ProtoMessage()

func (*TextileEventResponse) ProtoReflect added in v0.0.3

func (x *TextileEventResponse) ProtoReflect() protoreflect.Message

func (*TextileEventResponse) Reset added in v0.0.3

func (x *TextileEventResponse) Reset()

func (*TextileEventResponse) String added in v0.0.3

func (x *TextileEventResponse) String() string

type UnimplementedSpaceApiServer

type UnimplementedSpaceApiServer struct {
}

UnimplementedSpaceApiServer can be embedded to have forward compatible implementations.

func (*UnimplementedSpaceApiServer) AddItems

func (*UnimplementedSpaceApiServer) CreateFolder

func (*UnimplementedSpaceApiServer) GenerateKeyPair

func (*UnimplementedSpaceApiServer) GenerateKeyPairWithForce

func (*UnimplementedSpaceApiServer) GetConfigInfo

func (*UnimplementedSpaceApiServer) ListDirectories

func (*UnimplementedSpaceApiServer) OpenFile

func (*UnimplementedSpaceApiServer) Subscribe

func (*UnimplementedSpaceApiServer) TxlSubscribe added in v0.0.3

Jump to

Keyboard shortcuts

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