{"modulePath":"github.com/data-preservation-programs/singularity","version":"v0.3.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpclient\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewHTTPClient(client *http.Client, serverURL string) *Client\n```\n\n```go\nfunc (c *Client) AddWalletToDataset(ctx context.Context, datasetName string, wallet string) (*model.WalletAssignment, error)\n```\n\n```go\nfunc (c *Client) CreateDataset(ctx context.Context, request dataset.CreateRequest) (*model.Dataset, error)\n```\n\n```go\nfunc (c *Client) CreateLocalSource(ctx context.Context, datasetName string, params datasource.LocalRequest) (*model.Source, error)\n```\n\n```go\nfunc (c *Client) CreateSchedule(ctx context.Context, request schedule.CreateRequest) (*model.Schedule, error)\n```\n\n```go\nfunc (c *Client) GetFile(ctx context.Context, id uint64) (*model.File, error)\n```\n\n```go\nfunc (c *Client) GetFileDeals(ctx context.Context, id uint64) ([]model.Deal, error)\n```\n\n```go\nfunc (c *Client) GetSourcePackJobs(ctx context.Context, sourceID uint32, request inspect.GetSourcePackJobsRequest) ([]model.PackJob, error)\n```\n\n```go\nfunc (c *Client) ImportWallet(ctx context.Context, request wallethandler.ImportRequest) (*model.Wallet, error)\n```\n\n```go\nfunc (c *Client) ListSchedulesByDataset(ctx context.Context, datasetName string) ([]model.Schedule, error)\n```\n\n```go\nfunc (c *Client) ListSourcesByDataset(ctx context.Context, datasetName string) ([]model.Source, error)\n```\n\n```go\nfunc (c *Client) ListWallets(ctx context.Context) ([]model.Wallet, error)\n```\n\n```go\nfunc (c *Client) ListWalletsByDataset(ctx context.Context, datasetName string) ([]model.Wallet, error)\n```\n\n```go\nfunc (c *Client) Pack(ctx context.Context, packJobID uint32) ([]model.Car, error)\n```\n\n```go\nfunc (c *Client) PrepareToPackFile(ctx context.Context, fileID uint64) (int64, error)\n```\n\n```go\nfunc (c *Client) PrepareToPackSource(ctx context.Context, sourceID uint32) error\n```\n\n```go\nfunc (c *Client) PushFile(ctx context.Context, sourceID uint32, fileInfo datasource.FileInfo) (*model.File, error)\n```\n\n```go\ntype HTTPError struct {\n\tErr string `json:\"err\"`\n}\n```\n\n","path":"github.com/data-preservation-programs/singularity/client/http","name":"httpclient","synopsis":"","isRedistributable":true}
