dataservice

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DownloadFile(ctx context.Context, id string, w io.Writer) (checksum string, err error)
	ListFiles(ctx context.Context, opts ListOptions, files *dataservicev1.ListFilesResponse) error
	GetFileById(ctx context.Context, id string, finfo *dataservicev1.FileInfo) (err error)
	GetFileByName(ctx context.Context, name, source, sourceType string, finfo *dataservicev1.FileInfo) (err error)
	DeleteFile(context.Context, string) error
}

func NewClient

func NewClient(config *DataServiceConfig) Client

type DataServiceConfig

type DataServiceConfig struct {
	URL   string `json:"url"`
	Token string `json:"-"`

	TlsConfig *tls.Config
}

type ListOptions

type ListOptions struct {
	BeforeDate     time.Time
	AfterDate      time.Time
	OrderBy        string
	PageToken      string
	PageSize       *int
	IncludeDeleted bool
}

Jump to

Keyboard shortcuts

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