Documentation
¶
Index ¶
- func IsPathDir(path string) bool
- func PathExists(path string) bool
- func RemoveDuplicates(elements []string) []string
- type AddFileWatchFunc
- type Space
- func (s *Space) AddItems(ctx context.Context, sourcePaths []string, targetPath string) (<-chan domain.AddItemResult, domain.AddItemsResponse, error)
- func (s *Space) CreateBucket(ctx context.Context, slug string) (textile.Bucket, error)
- func (s *Space) CreateFolder(ctx context.Context, path string) error
- func (s *Space) CreateIdentity(ctx context.Context, username string) (*domain.Identity, error)
- func (s *Space) GenerateKeyPair(ctx context.Context, useForce bool) (domain.KeyPair, error)
- func (s *Space) GetConfig(ctx context.Context) domain.AppConfig
- func (s *Space) GetIdentityByUsername(ctx context.Context, username string) (*domain.Identity, error)
- func (s *Space) ListDir(ctx context.Context, path string) ([]domain.FileInfo, error)
- func (s *Space) ListDirs(ctx context.Context, path string) ([]domain.FileInfo, error)
- func (s *Space) OpenFile(ctx context.Context, path string) (domain.OpenFileInfo, error)
- func (s *Space) RegisterSyncer(sync Syncer)
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
func RemoveDuplicates ¶
Types ¶
type AddFileWatchFunc ¶ added in v0.0.3
type AddFileWatchFunc = func(addFileInfo domain.AddWatchFile) error
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
Implementation for space.Service
func (*Space) AddItems ¶
func (s *Space) AddItems(ctx context.Context, sourcePaths []string, targetPath string) (<-chan domain.AddItemResult, domain.AddItemsResponse, error)
func (*Space) CreateBucket ¶ added in v0.0.6
func (*Space) CreateIdentity ¶ added in v0.0.6
Creates an identity in Space cloud services. Returns the created identity or an error if any.
func (*Space) GenerateKeyPair ¶
func (*Space) GetIdentityByUsername ¶ added in v0.0.6
func (s *Space) GetIdentityByUsername(ctx context.Context, username string) (*domain.Identity, error)
Gets an identity from Space cloud services given a username
func (*Space) ListDirs ¶ added in v0.0.4
ListDirs lists all children entries at path in a bucket Unlike ListDir, it includes all subfolders children recursively
func (*Space) RegisterSyncer ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.