pb

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

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 (
	IdentityType_name = map[int32]string{
		0: "USERNAME",
		1: "EMAIL",
	}
	IdentityType_value = map[string]int32{
		"USERNAME": 0,
		"EMAIL":    1,
	}
)

Enum value maps for IdentityType.

View Source
var File_space_proto protoreflect.FileDescriptor

Functions

func RegisterSpaceApiHandler

func RegisterSpaceApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSpaceApiHandler registers the http handlers for service SpaceApi to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSpaceApiHandlerClient

func RegisterSpaceApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpaceApiClient) error

RegisterSpaceApiHandlerClient registers the http handlers for service SpaceApi to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SpaceApiClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SpaceApiClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SpaceApiClient" to call the correct interceptors.

func RegisterSpaceApiHandlerFromEndpoint

func RegisterSpaceApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSpaceApiHandlerFromEndpoint is same as RegisterSpaceApiHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSpaceApiHandlerServer

func RegisterSpaceApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpaceApiServer) error

RegisterSpaceApiHandlerServer registers the http handlers for service SpaceApi to "mux". UnaryRPC :call SpaceApiServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterSpaceApiHandlerFromEndpoint instead.

func RegisterSpaceApiServer

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

Types

type AddItemResult

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

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

Deprecated: Use AddItemResult.ProtoReflect.Descriptor instead.

func (*AddItemResult) GetBucketPath

func (x *AddItemResult) GetBucketPath() string

func (*AddItemResult) GetError

func (x *AddItemResult) GetError() string

func (*AddItemResult) GetSourcePath

func (x *AddItemResult) GetSourcePath() string

func (*AddItemResult) ProtoMessage

func (*AddItemResult) ProtoMessage()

func (*AddItemResult) ProtoReflect

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

func (*AddItemResult) Reset

func (x *AddItemResult) Reset()

func (*AddItemResult) String

func (x *AddItemResult) String() string

type AddItemsRequest

type AddItemsRequest struct {

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

func (*AddItemsRequest) Descriptor deprecated

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

Deprecated: Use AddItemsRequest.ProtoReflect.Descriptor instead.

func (*AddItemsRequest) GetBucket added in v0.0.8

func (x *AddItemsRequest) GetBucket() string

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"`
	TotalFiles     int64          `protobuf:"varint,2,opt,name=totalFiles,proto3" json:"totalFiles,omitempty"`
	TotalBytes     int64          `protobuf:"varint,3,opt,name=totalBytes,proto3" json:"totalBytes,omitempty"`
	CompletedFiles int64          `protobuf:"varint,4,opt,name=completedFiles,proto3" json:"completedFiles,omitempty"`
	CompletedBytes int64          `protobuf:"varint,5,opt,name=completedBytes,proto3" json:"completedBytes,omitempty"`
	// contains filtered or unexported fields
}

func (*AddItemsResponse) Descriptor deprecated

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

Deprecated: Use AddItemsResponse.ProtoReflect.Descriptor instead.

func (*AddItemsResponse) GetCompletedBytes

func (x *AddItemsResponse) GetCompletedBytes() int64

func (*AddItemsResponse) GetCompletedFiles

func (x *AddItemsResponse) GetCompletedFiles() int64

func (*AddItemsResponse) GetResult

func (x *AddItemsResponse) GetResult() *AddItemResult

func (*AddItemsResponse) GetTotalBytes

func (x *AddItemsResponse) GetTotalBytes() int64

func (*AddItemsResponse) GetTotalFiles

func (x *AddItemsResponse) GetTotalFiles() int64

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 BackupKeysByPassphraseRequest

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

func (*BackupKeysByPassphraseRequest) Descriptor deprecated

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

Deprecated: Use BackupKeysByPassphraseRequest.ProtoReflect.Descriptor instead.

func (*BackupKeysByPassphraseRequest) GetPassphrase

func (x *BackupKeysByPassphraseRequest) GetPassphrase() string

func (*BackupKeysByPassphraseRequest) ProtoMessage

func (*BackupKeysByPassphraseRequest) ProtoMessage()

func (*BackupKeysByPassphraseRequest) ProtoReflect

func (*BackupKeysByPassphraseRequest) Reset

func (x *BackupKeysByPassphraseRequest) Reset()

func (*BackupKeysByPassphraseRequest) String

type BackupKeysByPassphraseResponse

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

func (*BackupKeysByPassphraseResponse) Descriptor deprecated

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

Deprecated: Use BackupKeysByPassphraseResponse.ProtoReflect.Descriptor instead.

func (*BackupKeysByPassphraseResponse) ProtoMessage

func (*BackupKeysByPassphraseResponse) ProtoMessage()

func (*BackupKeysByPassphraseResponse) ProtoReflect

func (*BackupKeysByPassphraseResponse) Reset

func (x *BackupKeysByPassphraseResponse) Reset()

func (*BackupKeysByPassphraseResponse) String

type Bucket

type Bucket struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Path      string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	CreatedAt int64  `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt int64  `protobuf:"varint,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

TODO: import from textile instead

func (*Bucket) Descriptor deprecated

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

Deprecated: Use Bucket.ProtoReflect.Descriptor instead.

func (*Bucket) GetCreatedAt

func (x *Bucket) GetCreatedAt() int64

func (*Bucket) GetKey

func (x *Bucket) GetKey() string

func (*Bucket) GetName

func (x *Bucket) GetName() string

func (*Bucket) GetPath

func (x *Bucket) GetPath() string

func (*Bucket) GetUpdatedAt

func (x *Bucket) GetUpdatedAt() int64

func (*Bucket) ProtoMessage

func (*Bucket) ProtoMessage()

func (*Bucket) ProtoReflect

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

func (*Bucket) Reset

func (x *Bucket) Reset()

func (*Bucket) String

func (x *Bucket) 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 CreateBucketRequest

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

func (*CreateBucketRequest) Descriptor deprecated

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

Deprecated: Use CreateBucketRequest.ProtoReflect.Descriptor instead.

func (*CreateBucketRequest) GetSlug

func (x *CreateBucketRequest) GetSlug() string

func (*CreateBucketRequest) ProtoMessage

func (*CreateBucketRequest) ProtoMessage()

func (*CreateBucketRequest) ProtoReflect

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

func (*CreateBucketRequest) Reset

func (x *CreateBucketRequest) Reset()

func (*CreateBucketRequest) String

func (x *CreateBucketRequest) String() string

type CreateBucketResponse

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

func (*CreateBucketResponse) Descriptor deprecated

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

Deprecated: Use CreateBucketResponse.ProtoReflect.Descriptor instead.

func (*CreateBucketResponse) GetBucket

func (x *CreateBucketResponse) GetBucket() *Bucket

func (*CreateBucketResponse) ProtoMessage

func (*CreateBucketResponse) ProtoMessage()

func (*CreateBucketResponse) ProtoReflect

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

func (*CreateBucketResponse) Reset

func (x *CreateBucketResponse) Reset()

func (*CreateBucketResponse) String

func (x *CreateBucketResponse) String() string

type CreateFolderRequest

type CreateFolderRequest struct {

	// target path in bucket to add new empty folder
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The bucket in which to add the folder
	Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFolderRequest) Descriptor deprecated

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

Deprecated: Use CreateFolderRequest.ProtoReflect.Descriptor instead.

func (*CreateFolderRequest) GetBucket added in v0.0.8

func (x *CreateFolderRequest) GetBucket() string

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 CreateUsernameAndEmailRequest

type CreateUsernameAndEmailRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// Optional. Send "" to skip.
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUsernameAndEmailRequest) Descriptor deprecated

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

Deprecated: Use CreateUsernameAndEmailRequest.ProtoReflect.Descriptor instead.

func (*CreateUsernameAndEmailRequest) GetEmail

func (x *CreateUsernameAndEmailRequest) GetEmail() string

func (*CreateUsernameAndEmailRequest) GetUsername

func (x *CreateUsernameAndEmailRequest) GetUsername() string

func (*CreateUsernameAndEmailRequest) ProtoMessage

func (*CreateUsernameAndEmailRequest) ProtoMessage()

func (*CreateUsernameAndEmailRequest) ProtoReflect

func (*CreateUsernameAndEmailRequest) Reset

func (x *CreateUsernameAndEmailRequest) Reset()

func (*CreateUsernameAndEmailRequest) String

type CreateUsernameAndEmailResponse

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

func (*CreateUsernameAndEmailResponse) Descriptor deprecated

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

Deprecated: Use CreateUsernameAndEmailResponse.ProtoReflect.Descriptor instead.

func (*CreateUsernameAndEmailResponse) ProtoMessage

func (*CreateUsernameAndEmailResponse) ProtoMessage()

func (*CreateUsernameAndEmailResponse) ProtoReflect

func (*CreateUsernameAndEmailResponse) Reset

func (x *CreateUsernameAndEmailResponse) Reset()

func (*CreateUsernameAndEmailResponse) 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 FuseDriveResponse

type FuseDriveResponse struct {
	FuseDriveMounted bool `protobuf:"varint,1,opt,name=fuseDriveMounted,proto3" json:"fuseDriveMounted,omitempty"`
	// contains filtered or unexported fields
}

func (*FuseDriveResponse) Descriptor deprecated

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

Deprecated: Use FuseDriveResponse.ProtoReflect.Descriptor instead.

func (*FuseDriveResponse) GetFuseDriveMounted

func (x *FuseDriveResponse) GetFuseDriveMounted() bool

func (*FuseDriveResponse) ProtoMessage

func (*FuseDriveResponse) ProtoMessage()

func (*FuseDriveResponse) ProtoReflect

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

func (*FuseDriveResponse) Reset

func (x *FuseDriveResponse) Reset()

func (*FuseDriveResponse) String

func (x *FuseDriveResponse) String() string

type GenerateFileShareLinkRequest

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

func (*GenerateFileShareLinkRequest) Descriptor deprecated

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

Deprecated: Use GenerateFileShareLinkRequest.ProtoReflect.Descriptor instead.

func (*GenerateFileShareLinkRequest) GetBucket

func (x *GenerateFileShareLinkRequest) GetBucket() string

func (*GenerateFileShareLinkRequest) GetFilePath

func (x *GenerateFileShareLinkRequest) GetFilePath() string

func (*GenerateFileShareLinkRequest) ProtoMessage

func (*GenerateFileShareLinkRequest) ProtoMessage()

func (*GenerateFileShareLinkRequest) ProtoReflect

func (*GenerateFileShareLinkRequest) Reset

func (x *GenerateFileShareLinkRequest) Reset()

func (*GenerateFileShareLinkRequest) String

type GenerateFileShareLinkResponse

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

func (*GenerateFileShareLinkResponse) Descriptor deprecated

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

Deprecated: Use GenerateFileShareLinkResponse.ProtoReflect.Descriptor instead.

func (*GenerateFileShareLinkResponse) ProtoMessage

func (*GenerateFileShareLinkResponse) ProtoMessage()

func (*GenerateFileShareLinkResponse) ProtoReflect

func (*GenerateFileShareLinkResponse) Reset

func (x *GenerateFileShareLinkResponse) Reset()

func (*GenerateFileShareLinkResponse) 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 GetIdentityByUsernameRequest

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

func (*GetIdentityByUsernameRequest) Descriptor deprecated

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

Deprecated: Use GetIdentityByUsernameRequest.ProtoReflect.Descriptor instead.

func (*GetIdentityByUsernameRequest) GetUsername

func (x *GetIdentityByUsernameRequest) GetUsername() string

func (*GetIdentityByUsernameRequest) ProtoMessage

func (*GetIdentityByUsernameRequest) ProtoMessage()

func (*GetIdentityByUsernameRequest) ProtoReflect

func (*GetIdentityByUsernameRequest) Reset

func (x *GetIdentityByUsernameRequest) Reset()

func (*GetIdentityByUsernameRequest) String

type GetIdentityByUsernameResponse

type GetIdentityByUsernameResponse struct {
	Identity *Identity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIdentityByUsernameResponse) Descriptor deprecated

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

Deprecated: Use GetIdentityByUsernameResponse.ProtoReflect.Descriptor instead.

func (*GetIdentityByUsernameResponse) GetIdentity

func (x *GetIdentityByUsernameResponse) GetIdentity() *Identity

func (*GetIdentityByUsernameResponse) ProtoMessage

func (*GetIdentityByUsernameResponse) ProtoMessage()

func (*GetIdentityByUsernameResponse) ProtoReflect

func (*GetIdentityByUsernameResponse) Reset

func (x *GetIdentityByUsernameResponse) Reset()

func (*GetIdentityByUsernameResponse) String

type Identity

type Identity struct {
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	Username  string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*Identity) Descriptor deprecated

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

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetAddress

func (x *Identity) GetAddress() string

func (*Identity) GetPublicKey

func (x *Identity) GetPublicKey() string

func (*Identity) GetUsername

func (x *Identity) GetUsername() string

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) ProtoReflect

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

func (*Identity) Reset

func (x *Identity) Reset()

func (*Identity) String

func (x *Identity) String() string

type IdentityType

type IdentityType int32
const (
	IdentityType_USERNAME IdentityType = 0
	IdentityType_EMAIL    IdentityType = 1
)

func (IdentityType) Descriptor

func (IdentityType) Enum

func (x IdentityType) Enum() *IdentityType

func (IdentityType) EnumDescriptor deprecated

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

Deprecated: Use IdentityType.Descriptor instead.

func (IdentityType) Number

func (IdentityType) String

func (x IdentityType) String() string

func (IdentityType) Type

type JoinBucketRequest added in v0.0.8

type JoinBucketRequest struct {
	Threadinfo *ThreadInfo `protobuf:"bytes,1,opt,name=threadinfo,proto3" json:"threadinfo,omitempty"`
	Bucket     string      `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinBucketRequest) Descriptor deprecated added in v0.0.8

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

Deprecated: Use JoinBucketRequest.ProtoReflect.Descriptor instead.

func (*JoinBucketRequest) GetBucket added in v0.0.8

func (x *JoinBucketRequest) GetBucket() string

func (*JoinBucketRequest) GetThreadinfo added in v0.0.8

func (x *JoinBucketRequest) GetThreadinfo() *ThreadInfo

func (*JoinBucketRequest) ProtoMessage added in v0.0.8

func (*JoinBucketRequest) ProtoMessage()

func (*JoinBucketRequest) ProtoReflect added in v0.0.8

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

func (*JoinBucketRequest) Reset added in v0.0.8

func (x *JoinBucketRequest) Reset()

func (*JoinBucketRequest) String added in v0.0.8

func (x *JoinBucketRequest) String() string

type JoinBucketResponse added in v0.0.8

type JoinBucketResponse struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinBucketResponse) Descriptor deprecated added in v0.0.8

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

Deprecated: Use JoinBucketResponse.ProtoReflect.Descriptor instead.

func (*JoinBucketResponse) GetResult added in v0.0.8

func (x *JoinBucketResponse) GetResult() bool

func (*JoinBucketResponse) ProtoMessage added in v0.0.8

func (*JoinBucketResponse) ProtoMessage()

func (*JoinBucketResponse) ProtoReflect added in v0.0.8

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

func (*JoinBucketResponse) Reset added in v0.0.8

func (x *JoinBucketResponse) Reset()

func (*JoinBucketResponse) String added in v0.0.8

func (x *JoinBucketResponse) String() string

type ListBucketsRequest added in v0.0.8

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

func (*ListBucketsRequest) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ListBucketsRequest.ProtoReflect.Descriptor instead.

func (*ListBucketsRequest) ProtoMessage added in v0.0.8

func (*ListBucketsRequest) ProtoMessage()

func (*ListBucketsRequest) ProtoReflect added in v0.0.8

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

func (*ListBucketsRequest) Reset added in v0.0.8

func (x *ListBucketsRequest) Reset()

func (*ListBucketsRequest) String added in v0.0.8

func (x *ListBucketsRequest) String() string

type ListBucketsResponse added in v0.0.8

type ListBucketsResponse struct {
	Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBucketsResponse) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ListBucketsResponse.ProtoReflect.Descriptor instead.

func (*ListBucketsResponse) GetBuckets added in v0.0.8

func (x *ListBucketsResponse) GetBuckets() []*Bucket

func (*ListBucketsResponse) ProtoMessage added in v0.0.8

func (*ListBucketsResponse) ProtoMessage()

func (*ListBucketsResponse) ProtoReflect added in v0.0.8

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

func (*ListBucketsResponse) Reset added in v0.0.8

func (x *ListBucketsResponse) Reset()

func (*ListBucketsResponse) String added in v0.0.8

func (x *ListBucketsResponse) String() string

type ListDirectoriesRequest

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

func (*ListDirectoriesRequest) Descriptor deprecated

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

Deprecated: Use ListDirectoriesRequest.ProtoReflect.Descriptor instead.

func (*ListDirectoriesRequest) GetBucket added in v0.0.8

func (x *ListDirectoriesRequest) GetBucket() string

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 ListDirectoryRequest

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

func (*ListDirectoryRequest) Descriptor deprecated

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

Deprecated: Use ListDirectoryRequest.ProtoReflect.Descriptor instead.

func (*ListDirectoryRequest) GetBucket added in v0.0.8

func (x *ListDirectoryRequest) GetBucket() string

func (*ListDirectoryRequest) GetPath

func (x *ListDirectoryRequest) GetPath() string

func (*ListDirectoryRequest) ProtoMessage

func (*ListDirectoryRequest) ProtoMessage()

func (*ListDirectoryRequest) ProtoReflect

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

func (*ListDirectoryRequest) Reset

func (x *ListDirectoryRequest) Reset()

func (*ListDirectoryRequest) String

func (x *ListDirectoryRequest) String() string

type ListDirectoryResponse

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

func (*ListDirectoryResponse) Descriptor deprecated

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

Deprecated: Use ListDirectoryResponse.ProtoReflect.Descriptor instead.

func (*ListDirectoryResponse) GetEntries

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

func (*ListDirectoryResponse) ProtoMessage

func (*ListDirectoryResponse) ProtoMessage()

func (*ListDirectoryResponse) ProtoReflect

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

func (*ListDirectoryResponse) Reset

func (x *ListDirectoryResponse) Reset()

func (*ListDirectoryResponse) String

func (x *ListDirectoryResponse) String() string

type OpenFileRequest

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

func (*OpenFileRequest) Descriptor deprecated

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

Deprecated: Use OpenFileRequest.ProtoReflect.Descriptor instead.

func (*OpenFileRequest) GetBucket added in v0.0.8

func (x *OpenFileRequest) GetBucket() string

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 RecoverKeysByPassphraseRequest

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

func (*RecoverKeysByPassphraseRequest) Descriptor deprecated

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

Deprecated: Use RecoverKeysByPassphraseRequest.ProtoReflect.Descriptor instead.

func (*RecoverKeysByPassphraseRequest) GetPassphrase

func (x *RecoverKeysByPassphraseRequest) GetPassphrase() string

func (*RecoverKeysByPassphraseRequest) ProtoMessage

func (*RecoverKeysByPassphraseRequest) ProtoMessage()

func (*RecoverKeysByPassphraseRequest) ProtoReflect

func (*RecoverKeysByPassphraseRequest) Reset

func (x *RecoverKeysByPassphraseRequest) Reset()

func (*RecoverKeysByPassphraseRequest) String

type RecoverKeysByPassphraseResponse

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

func (*RecoverKeysByPassphraseResponse) Descriptor deprecated

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

Deprecated: Use RecoverKeysByPassphraseResponse.ProtoReflect.Descriptor instead.

func (*RecoverKeysByPassphraseResponse) ProtoMessage

func (*RecoverKeysByPassphraseResponse) ProtoMessage()

func (*RecoverKeysByPassphraseResponse) ProtoReflect

func (*RecoverKeysByPassphraseResponse) Reset

func (*RecoverKeysByPassphraseResponse) String

type ShareBucketRequest added in v0.0.8

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

func (*ShareBucketRequest) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ShareBucketRequest.ProtoReflect.Descriptor instead.

func (*ShareBucketRequest) GetBucket added in v0.0.8

func (x *ShareBucketRequest) GetBucket() string

func (*ShareBucketRequest) ProtoMessage added in v0.0.8

func (*ShareBucketRequest) ProtoMessage()

func (*ShareBucketRequest) ProtoReflect added in v0.0.8

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

func (*ShareBucketRequest) Reset added in v0.0.8

func (x *ShareBucketRequest) Reset()

func (*ShareBucketRequest) String added in v0.0.8

func (x *ShareBucketRequest) String() string

type ShareBucketResponse added in v0.0.8

type ShareBucketResponse struct {
	Threadinfo *ThreadInfo `protobuf:"bytes,1,opt,name=threadinfo,proto3" json:"threadinfo,omitempty"`
	// contains filtered or unexported fields
}

func (*ShareBucketResponse) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ShareBucketResponse.ProtoReflect.Descriptor instead.

func (*ShareBucketResponse) GetThreadinfo added in v0.0.8

func (x *ShareBucketResponse) GetThreadinfo() *ThreadInfo

func (*ShareBucketResponse) ProtoMessage added in v0.0.8

func (*ShareBucketResponse) ProtoMessage()

func (*ShareBucketResponse) ProtoReflect added in v0.0.8

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

func (*ShareBucketResponse) Reset added in v0.0.8

func (x *ShareBucketResponse) Reset()

func (*ShareBucketResponse) String added in v0.0.8

func (x *ShareBucketResponse) String() string

type ShareBucketViaEmailRequest

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

func (*ShareBucketViaEmailRequest) Descriptor deprecated

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

Deprecated: Use ShareBucketViaEmailRequest.ProtoReflect.Descriptor instead.

func (*ShareBucketViaEmailRequest) GetBucket

func (x *ShareBucketViaEmailRequest) GetBucket() string

func (*ShareBucketViaEmailRequest) GetEmail

func (x *ShareBucketViaEmailRequest) GetEmail() string

func (*ShareBucketViaEmailRequest) ProtoMessage

func (*ShareBucketViaEmailRequest) ProtoMessage()

func (*ShareBucketViaEmailRequest) ProtoReflect

func (*ShareBucketViaEmailRequest) Reset

func (x *ShareBucketViaEmailRequest) Reset()

func (*ShareBucketViaEmailRequest) String

func (x *ShareBucketViaEmailRequest) String() string

type ShareBucketViaEmailResponse

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

func (*ShareBucketViaEmailResponse) Descriptor deprecated

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

Deprecated: Use ShareBucketViaEmailResponse.ProtoReflect.Descriptor instead.

func (*ShareBucketViaEmailResponse) ProtoMessage

func (*ShareBucketViaEmailResponse) ProtoMessage()

func (*ShareBucketViaEmailResponse) ProtoReflect

func (*ShareBucketViaEmailResponse) Reset

func (x *ShareBucketViaEmailResponse) Reset()

func (*ShareBucketViaEmailResponse) String

func (x *ShareBucketViaEmailResponse) String() string

type ShareBucketViaIdentityRequest

type ShareBucketViaIdentityRequest struct {

	// identityType is either USERNAME or EMAIL
	IdentityType IdentityType `protobuf:"varint,1,opt,name=identityType,proto3,enum=space.IdentityType" json:"identityType,omitempty"`
	// E.g. if identityType is USERNAME, identityValue is the actual username
	IdentityValue string `protobuf:"bytes,2,opt,name=identityValue,proto3" json:"identityValue,omitempty"`
	Bucket        string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

func (*ShareBucketViaIdentityRequest) Descriptor deprecated

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

Deprecated: Use ShareBucketViaIdentityRequest.ProtoReflect.Descriptor instead.

func (*ShareBucketViaIdentityRequest) GetBucket

func (x *ShareBucketViaIdentityRequest) GetBucket() string

func (*ShareBucketViaIdentityRequest) GetIdentityType

func (x *ShareBucketViaIdentityRequest) GetIdentityType() IdentityType

func (*ShareBucketViaIdentityRequest) GetIdentityValue

func (x *ShareBucketViaIdentityRequest) GetIdentityValue() string

func (*ShareBucketViaIdentityRequest) ProtoMessage

func (*ShareBucketViaIdentityRequest) ProtoMessage()

func (*ShareBucketViaIdentityRequest) ProtoReflect

func (*ShareBucketViaIdentityRequest) Reset

func (x *ShareBucketViaIdentityRequest) Reset()

func (*ShareBucketViaIdentityRequest) String

type ShareBucketViaIdentityResponse

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

func (*ShareBucketViaIdentityResponse) Descriptor deprecated

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

Deprecated: Use ShareBucketViaIdentityResponse.ProtoReflect.Descriptor instead.

func (*ShareBucketViaIdentityResponse) ProtoMessage

func (*ShareBucketViaIdentityResponse) ProtoMessage()

func (*ShareBucketViaIdentityResponse) ProtoReflect

func (*ShareBucketViaIdentityResponse) Reset

func (x *ShareBucketViaIdentityResponse) Reset()

func (*ShareBucketViaIdentityResponse) String

type SpaceApiClient

type SpaceApiClient interface {
	// Get all folder or files in the default bucket. It fetches all subdirectories too.
	ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (*ListDirectoriesResponse, error)
	// Get the folder or files in the path directory.
	// Unlike ListDirectories, this only returns immediate children at path.
	ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...grpc.CallOption) (*ListDirectoryResponse, error)
	// Get Config information installed daemon
	GetConfigInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ConfigInfoResponse, error)
	// Generate Key Pair for current account.
	// This will return error if daemon account already has keypairs
	GenerateKeyPair(ctx context.Context, in *GenerateKeyPairRequest, opts ...grpc.CallOption) (*GenerateKeyPairResponse, error)
	// Force Generation of KeyPair. This will override existing keys stored in daemon.
	GenerateKeyPairWithForce(ctx context.Context, in *GenerateKeyPairRequest, opts ...grpc.CallOption) (*GenerateKeyPairResponse, error)
	// Subscribe to file events. This streams responses to the caller
	Subscribe(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (SpaceApi_SubscribeClient, error)
	// Subscribe to textile events. This streams responses to the caller
	TxlSubscribe(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (SpaceApi_TxlSubscribeClient, error)
	// Open a file in the daemon.
	// Daemon keeps track of all open files and closes them if no activity is noticed after a while
	OpenFile(ctx context.Context, in *OpenFileRequest, opts ...grpc.CallOption) (*OpenFileResponse, error)
	// Adds items (files/folders) to be uploaded to the bucket.
	AddItems(ctx context.Context, in *AddItemsRequest, opts ...grpc.CallOption) (SpaceApi_AddItemsClient, error)
	// Creates a folder/directory at the specified path
	CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*CreateFolderResponse, error)
	// Toggle FUSE drive to be mounted or unmounted
	ToggleFuseDrive(ctx context.Context, in *ToggleFuseRequest, opts ...grpc.CallOption) (*FuseDriveResponse, error)
	// Get status of FUSE drive. If mounted or unmounted
	GetFuseDriveStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FuseDriveResponse, error)
	// Create a new bucket owned by current user (aka keypair)
	CreateBucket(ctx context.Context, in *CreateBucketRequest, opts ...grpc.CallOption) (*CreateBucketResponse, error)
	// Get Identity by Username
	GetIdentityByUsername(ctx context.Context, in *GetIdentityByUsernameRequest, opts ...grpc.CallOption) (*GetIdentityByUsernameResponse, error)
	// Create a new user identity. Username and Email required.
	CreateUsernameAndEmail(ctx context.Context, in *CreateUsernameAndEmailRequest, opts ...grpc.CallOption) (*CreateUsernameAndEmailResponse, error)
	// Backup Key by Passphrase
	BackupKeysByPassphrase(ctx context.Context, in *BackupKeysByPassphraseRequest, opts ...grpc.CallOption) (*BackupKeysByPassphraseResponse, error)
	// Recover Keys by Passphrase
	RecoverKeysByPassphrase(ctx context.Context, in *RecoverKeysByPassphraseRequest, opts ...grpc.CallOption) (*RecoverKeysByPassphraseResponse, error)
	// Share bucket
	ShareBucket(ctx context.Context, in *ShareBucketRequest, opts ...grpc.CallOption) (*ShareBucketResponse, error)
	// Join bucket
	JoinBucket(ctx context.Context, in *JoinBucketRequest, opts ...grpc.CallOption) (*JoinBucketResponse, error)
	// Share bucket via email
	ShareBucketViaEmail(ctx context.Context, in *ShareBucketViaEmailRequest, opts ...grpc.CallOption) (*ShareBucketViaEmailResponse, error)
	// Share bucket via identity information
	ShareBucketViaIdentity(ctx context.Context, in *ShareBucketViaIdentityRequest, opts ...grpc.CallOption) (*ShareBucketViaIdentityResponse, error)
	// Generate sharing link for file in bucket
	GenerateFileShareLink(ctx context.Context, in *GenerateFileShareLinkRequest, opts ...grpc.CallOption) (*GenerateFileShareLinkResponse, error)
	ListBuckets(ctx context.Context, in *ListBucketsRequest, opts ...grpc.CallOption) (*ListBucketsResponse, 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 SpaceApiServer

type SpaceApiServer interface {
	// Get all folder or files in the default bucket. It fetches all subdirectories too.
	ListDirectories(context.Context, *ListDirectoriesRequest) (*ListDirectoriesResponse, error)
	// Get the folder or files in the path directory.
	// Unlike ListDirectories, this only returns immediate children at path.
	ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error)
	// Get Config information installed daemon
	GetConfigInfo(context.Context, *empty.Empty) (*ConfigInfoResponse, error)
	// Generate Key Pair for current account.
	// This will return error if daemon account already has keypairs
	GenerateKeyPair(context.Context, *GenerateKeyPairRequest) (*GenerateKeyPairResponse, error)
	// Force Generation of KeyPair. This will override existing keys stored in daemon.
	GenerateKeyPairWithForce(context.Context, *GenerateKeyPairRequest) (*GenerateKeyPairResponse, error)
	// Subscribe to file events. This streams responses to the caller
	Subscribe(*empty.Empty, SpaceApi_SubscribeServer) error
	// Subscribe to textile events. This streams responses to the caller
	TxlSubscribe(*empty.Empty, SpaceApi_TxlSubscribeServer) error
	// Open a file in the daemon.
	// Daemon keeps track of all open files and closes them if no activity is noticed after a while
	OpenFile(context.Context, *OpenFileRequest) (*OpenFileResponse, error)
	// Adds items (files/folders) to be uploaded to the bucket.
	AddItems(*AddItemsRequest, SpaceApi_AddItemsServer) error
	// Creates a folder/directory at the specified path
	CreateFolder(context.Context, *CreateFolderRequest) (*CreateFolderResponse, error)
	// Toggle FUSE drive to be mounted or unmounted
	ToggleFuseDrive(context.Context, *ToggleFuseRequest) (*FuseDriveResponse, error)
	// Get status of FUSE drive. If mounted or unmounted
	GetFuseDriveStatus(context.Context, *empty.Empty) (*FuseDriveResponse, error)
	// Create a new bucket owned by current user (aka keypair)
	CreateBucket(context.Context, *CreateBucketRequest) (*CreateBucketResponse, error)
	// Get Identity by Username
	GetIdentityByUsername(context.Context, *GetIdentityByUsernameRequest) (*GetIdentityByUsernameResponse, error)
	// Create a new user identity. Username and Email required.
	CreateUsernameAndEmail(context.Context, *CreateUsernameAndEmailRequest) (*CreateUsernameAndEmailResponse, error)
	// Backup Key by Passphrase
	BackupKeysByPassphrase(context.Context, *BackupKeysByPassphraseRequest) (*BackupKeysByPassphraseResponse, error)
	// Recover Keys by Passphrase
	RecoverKeysByPassphrase(context.Context, *RecoverKeysByPassphraseRequest) (*RecoverKeysByPassphraseResponse, error)
	// Share bucket
	ShareBucket(context.Context, *ShareBucketRequest) (*ShareBucketResponse, error)
	// Join bucket
	JoinBucket(context.Context, *JoinBucketRequest) (*JoinBucketResponse, error)
	// Share bucket via email
	ShareBucketViaEmail(context.Context, *ShareBucketViaEmailRequest) (*ShareBucketViaEmailResponse, error)
	// Share bucket via identity information
	ShareBucketViaIdentity(context.Context, *ShareBucketViaIdentityRequest) (*ShareBucketViaIdentityResponse, error)
	// Generate sharing link for file in bucket
	GenerateFileShareLink(context.Context, *GenerateFileShareLinkRequest) (*GenerateFileShareLinkResponse, error)
	ListBuckets(context.Context, *ListBucketsRequest) (*ListBucketsResponse, error)
}

SpaceApiServer is the server API for SpaceApi service.

type SpaceApi_AddItemsClient

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

type SpaceApi_AddItemsServer

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

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

type SpaceApi_TxlSubscribeServer

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

type TextileEventResponse

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

func (*TextileEventResponse) Descriptor deprecated

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

Deprecated: Use TextileEventResponse.ProtoReflect.Descriptor instead.

func (*TextileEventResponse) GetBucket

func (x *TextileEventResponse) GetBucket() string

func (*TextileEventResponse) ProtoMessage

func (*TextileEventResponse) ProtoMessage()

func (*TextileEventResponse) ProtoReflect

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

func (*TextileEventResponse) Reset

func (x *TextileEventResponse) Reset()

func (*TextileEventResponse) String

func (x *TextileEventResponse) String() string

type ThreadInfo added in v0.0.8

type ThreadInfo struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	Key       string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*ThreadInfo) Descriptor deprecated added in v0.0.8

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

Deprecated: Use ThreadInfo.ProtoReflect.Descriptor instead.

func (*ThreadInfo) GetAddresses added in v0.0.8

func (x *ThreadInfo) GetAddresses() []string

func (*ThreadInfo) GetKey added in v0.0.8

func (x *ThreadInfo) GetKey() string

func (*ThreadInfo) ProtoMessage added in v0.0.8

func (*ThreadInfo) ProtoMessage()

func (*ThreadInfo) ProtoReflect added in v0.0.8

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

func (*ThreadInfo) Reset added in v0.0.8

func (x *ThreadInfo) Reset()

func (*ThreadInfo) String added in v0.0.8

func (x *ThreadInfo) String() string

type ToggleFuseRequest

type ToggleFuseRequest struct {
	MountDrive bool `protobuf:"varint,1,opt,name=mountDrive,proto3" json:"mountDrive,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleFuseRequest) Descriptor deprecated

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

Deprecated: Use ToggleFuseRequest.ProtoReflect.Descriptor instead.

func (*ToggleFuseRequest) GetMountDrive

func (x *ToggleFuseRequest) GetMountDrive() bool

func (*ToggleFuseRequest) ProtoMessage

func (*ToggleFuseRequest) ProtoMessage()

func (*ToggleFuseRequest) ProtoReflect

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

func (*ToggleFuseRequest) Reset

func (x *ToggleFuseRequest) Reset()

func (*ToggleFuseRequest) String

func (x *ToggleFuseRequest) String() string

type UnimplementedSpaceApiServer

type UnimplementedSpaceApiServer struct {
}

UnimplementedSpaceApiServer can be embedded to have forward compatible implementations.

func (*UnimplementedSpaceApiServer) AddItems

func (*UnimplementedSpaceApiServer) CreateBucket

func (*UnimplementedSpaceApiServer) CreateFolder

func (*UnimplementedSpaceApiServer) GenerateKeyPair

func (*UnimplementedSpaceApiServer) GenerateKeyPairWithForce

func (*UnimplementedSpaceApiServer) GetConfigInfo

func (*UnimplementedSpaceApiServer) GetFuseDriveStatus

func (*UnimplementedSpaceApiServer) JoinBucket added in v0.0.8

func (*UnimplementedSpaceApiServer) ListBuckets added in v0.0.8

func (*UnimplementedSpaceApiServer) ListDirectories

func (*UnimplementedSpaceApiServer) ListDirectory

func (*UnimplementedSpaceApiServer) OpenFile

func (*UnimplementedSpaceApiServer) ShareBucket added in v0.0.8

func (*UnimplementedSpaceApiServer) ShareBucketViaEmail

func (*UnimplementedSpaceApiServer) Subscribe

func (*UnimplementedSpaceApiServer) ToggleFuseDrive

func (*UnimplementedSpaceApiServer) TxlSubscribe

Jump to

Keyboard shortcuts

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