ephcli

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Download(uuidFileToDownload string, outputfile string) error
}

func NewDownloader

func NewDownloader(endpoint string, token string) Downloader

NewDownloader creates a new Downloader

type File

type File struct {
	Idfile          string    `json:"idfile"`
	FileName        string    `json:"filename"`
	Size            int64     `json:"size"`
	UpdateDateBegin time.Time `json:"update_date_egin"`
	UpdateDateEnd   time.Time `json:"update_date_end"`
	ExpirationDate  time.Time `json:"expiration_date"`
}

type FilesLister

type FilesLister interface {
	List() error
}

func NewLister

func NewLister(endpoint string, token string) FilesLister

type ResponseError

type ResponseError struct {
	Err     bool   `json:"error"`
	Message string `json:"msg"`
}

type Uploader

type Uploader interface {
	Upload(inputfile string) error
}

func NewUploader

func NewUploader(endpoint string, token string) Uploader

Jump to

Keyboard shortcuts

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