ephcli

package
v0.1.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLister

func NewLister(endpoint string, token string) *lister

func NewUploader

func NewUploader(endpoint string, token string) *uploader

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 FileList

type FileList []File

func (*FileList) Print

func (fl *FileList) Print() error

func (*FileList) PrintCSV

func (fl *FileList) PrintCSV() error

func (*FileList) PrintJSON

func (fl *FileList) PrintJSON() error

func (*FileList) PrintYAML

func (fl *FileList) PrintYAML() error

type ResponseError

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

Jump to

Keyboard shortcuts

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