Documentation
¶
Index ¶
- func Download(ctx context.Context, api *Client, bk transfer.Backend, guids []string, ...) error
- func New(baseURL string, opts ...Option) (syfonclient.SyfonClient, error)
- func Upload(ctx context.Context, bk transfer.Backend, sourcePath string, ...) error
- type BasicAuth
- type Client
- func (c *Client) Address() string
- func (c *Client) BucketAPI() *bucketapi.ClientWithResponses
- func (c *Client) Buckets() *syfonclient.BucketsService
- func (c *Client) DRS() *syfonclient.DRSService
- func (c *Client) DRSAPI() *drs.ClientWithResponses
- func (c *Client) Data() *syfonclient.DataService
- func (c *Client) HTTPClient() *http.Client
- func (c *Client) Health() *syfonclient.HealthService
- func (c *Client) Index() *syfonclient.IndexService
- func (c *Client) InternalAPI() *internalapi.ClientWithResponses
- func (c *Client) LFS() *syfonclient.LFSService
- func (c *Client) LFSAPI() *lfsapi.ClientWithResponses
- func (c *Client) Logger() *logs.Gen3Logger
- func (c *Client) Metrics() *syfonclient.MetricsService
- func (c *Client) MetricsAPI() *metricsapi.ClientWithResponses
- func (c *Client) Requestor() request.Requester
- type Config
- type DownloadOptions
- type Option
- type UploadOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(ctx context.Context, api *Client, bk transfer.Backend, guids []string, opts DownloadOptions) error
Download handles single- and multi-file downloads and manifest expansion.
func New ¶
func New(baseURL string, opts ...Option) (syfonclient.SyfonClient, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements syfonclient.SyfonClient
func (*Client) BucketAPI ¶
func (c *Client) BucketAPI() *bucketapi.ClientWithResponses
func (*Client) Buckets ¶
func (c *Client) Buckets() *syfonclient.BucketsService
func (*Client) DRS ¶
func (c *Client) DRS() *syfonclient.DRSService
func (*Client) DRSAPI ¶
func (c *Client) DRSAPI() *drs.ClientWithResponses
func (*Client) Data ¶
func (c *Client) Data() *syfonclient.DataService
func (*Client) HTTPClient ¶
func (*Client) Health ¶
func (c *Client) Health() *syfonclient.HealthService
func (*Client) Index ¶
func (c *Client) Index() *syfonclient.IndexService
func (*Client) InternalAPI ¶
func (c *Client) InternalAPI() *internalapi.ClientWithResponses
func (*Client) LFS ¶
func (c *Client) LFS() *syfonclient.LFSService
func (*Client) LFSAPI ¶
func (c *Client) LFSAPI() *lfsapi.ClientWithResponses
Schema-specific generated clients
func (*Client) Logger ¶
func (c *Client) Logger() *logs.Gen3Logger
func (*Client) Metrics ¶
func (c *Client) Metrics() *syfonclient.MetricsService
func (*Client) MetricsAPI ¶
func (c *Client) MetricsAPI() *metricsapi.ClientWithResponses
type Config ¶
type Config struct {
Address string
HTTPClient *http.Client
UserAgent string
BasicAuth *BasicAuth
Token string
}
func DefaultConfig ¶
func DefaultConfig() *Config
type DownloadOptions ¶
type Option ¶
type Option func(*Config)
func WithBasicAuth ¶
func WithBearerToken ¶
func WithHTTPClient ¶
func WithUserAgent ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
xfer
|
|
Click to show internal directories.
Click to hide internal directories.