trainbit

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	driver.RootID
	AUSHELLPORTAL string `json:"AUSHELLPORTAL" required:"true"`
	ApiKey        string `json:"apikey" required:"true"`
}

type ProgressReader

type ProgressReader struct {
	io.Reader
	// contains filtered or unexported fields
}

func (*ProgressReader) Read

func (progressReader *ProgressReader) Read(data []byte) (int, error)

type Trainbit

type Trainbit struct {
	model.Storage
	Addition
}

func (*Trainbit) Config

func (d *Trainbit) Config() driver.Config

func (*Trainbit) Copy

func (d *Trainbit) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Trainbit) Drop

func (d *Trainbit) Drop(ctx context.Context) error

func (*Trainbit) GetAddition

func (d *Trainbit) GetAddition() driver.Additional

func (*Trainbit) Init

func (d *Trainbit) Init(ctx context.Context) error
func (d *Trainbit) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)

func (*Trainbit) List

func (d *Trainbit) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*Trainbit) MakeDir

func (d *Trainbit) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*Trainbit) Move

func (d *Trainbit) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Trainbit) Put

func (d *Trainbit) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error

func (*Trainbit) Remove

func (d *Trainbit) Remove(ctx context.Context, obj model.Obj) error

func (*Trainbit) Rename

func (d *Trainbit) Rename(ctx context.Context, srcObj model.Obj, newName string) error

Jump to

Keyboard shortcuts

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