file

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	app.UpStream
	Args *CreateArgs
}

func (*Create) Do

func (a *Create) Do(c *app.Client) (*CreateRes, error)

func (*Create) MustDo

func (a *Create) MustDo(c *app.Client) *CreateRes

func (*Create) Path

func (_ *Create) Path() string

type CreateArgs

type CreateArgs struct {
	Host    ID `json:"host"`
	Project ID `json:"project"`
	Task    ID `json:"task"`
}

type CreateRes

type CreateRes struct {
	Task *task.Task `json:"task"`
	File *File      `json:"file"`
}

type Delete

type Delete struct {
	Host    ID `json:"host"`
	Project ID `json:"project"`
	Task    ID `json:"task"`
	ID      ID `json:"id"`
}

func (*Delete) Do

func (a *Delete) Do(c *app.Client) (*task.Task, error)

func (*Delete) MustDo

func (a *Delete) MustDo(c *app.Client) *task.Task

func (*Delete) Path

func (_ *Delete) Path() string

type File

type File struct {
	Task      ID        `json:"task"`
	ID        ID        `json:"id"`
	CreatedBy ID        `json:"createdBy"`
	CreatedOn time.Time `json:"createdOn"`
	Name      string    `json:"name"`
	Type      string    `json:"type"`
	Size      uint64    `json:"size"`
}

type Get

type Get struct {
	Host         ID         `json:"host"`
	Project      ID         `json:"project"`
	Task         *ID        `json:"task,omitempty"`
	IDs          IDs        `json:"ids,omitempty"`
	CreatedOnMin *time.Time `json:"createdOnMin,omitempty"`
	CreatedOnMax *time.Time `json:"createdOnMax,omitempty"`
	CreatedBy    *ID        `json:"createdBy,omitempty"`
	After        *ID        `json:"after,omitempty"`
	Asc          *bool      `json:"asc,omitempty"`
	Limit        uint16     `json:"limit,omitempty"`
}

func (*Get) Do

func (a *Get) Do(c *app.Client) (*GetRes, error)

func (*Get) MustDo

func (a *Get) MustDo(c *app.Client) *GetRes

func (*Get) Path

func (_ *Get) Path() string

type GetContent

type GetContent struct {
	Host       ID   `json:"host"`
	Project    ID   `json:"project"`
	Task       ID   `json:"task"`
	ID         ID   `json:"id"`
	IsDownload bool `json:"isDownload"`
}

func (*GetContent) Do

func (a *GetContent) Do(c *app.Client) (*app.DownStream, error)

func (*GetContent) MustDo

func (a *GetContent) MustDo(c *app.Client) *app.DownStream

func (*GetContent) Path

func (_ *GetContent) Path() string

type GetRes

type GetRes struct {
	Set  []*File `json:"set"`
	More bool    `json:"more"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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