openapi

package module
v0.0.0-...-210a961 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 22 Imported by: 0

README

Go API client for openapi

This is the API for the Estuary application.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://docs.estuary.tech/feedback

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://api.estuary.tech

Class Method HTTP request Description
AdminApi AdminPeeringPeersDelete Delete /admin/peering/peers Remove peers on Peering Service
AdminApi AdminPeeringPeersGet Get /admin/peering/peers List all Peering peers
AdminApi AdminPeeringPeersPost Post /admin/peering/peers Add peers on Peering Service
AdminApi AdminPeeringStartPost Post /admin/peering/start Start Peering
AdminApi AdminPeeringStatusGet Get /admin/peering/status Check Peering Status
AdminApi AdminPeeringStopPost Post /admin/peering/stop Stop Peering
AdminApi AdminSystemConfigGet Get /admin/system/config Get systems(estuary/shuttle) config
AdminApi AdminUsersGet Get /admin/users Get all users
AutoretrieveApi AdminAutoretrieveInitPost Post /admin/autoretrieve/init Register autoretrieve server
AutoretrieveApi AdminAutoretrieveListGet Get /admin/autoretrieve/list List autoretrieve servers
AutoretrieveApi AutoretrieveHeartbeatPost Post /autoretrieve/heartbeat Marks autoretrieve server as up
CollectionsApi CollectionsAddContentPost Post /collections/add-content Add contents to a collection
CollectionsApi CollectionsColuuidCommitPost Post /collections/{coluuid}/commit Produce a CID of the collection contents
CollectionsApi CollectionsColuuidDelete Delete /collections/{coluuid} Deletes a collection
CollectionsApi CollectionsContentGet Get /collections/content Get contents in a collection
CollectionsApi CollectionsCreatePost Post /collections/create Create a new collection
CollectionsApi CollectionsFsAddPost Post /collections/fs/add Add a file to a collection
CollectionsApi CollectionsListGet Get /collections/list List all collections
ContentApi ContentAddCarPost Post /content/add-car Add Car object
ContentApi ContentAddIpfsPost Post /content/add-ipfs Add IPFS object
ContentApi ContentAddPost Post /content/add Add new content
ContentApi ContentAggregatedContentGet Get /content/aggregated/{content} Get aggregated content stats
ContentApi ContentAllDealsGet Get /content/all-deals Get all deals for a user
ContentApi ContentBwUsageContentGet Get /content/bw-usage/{content} Get content bandwidth
ContentApi ContentCreatePost Post /content/create Add a new content
ContentApi ContentDealsGet Get /content/deals Content with deals
ContentApi ContentEnsureReplicationDatacidGet Get /content/ensure-replication/{datacid} Ensure Replication
ContentApi ContentFailuresContentGet Get /content/failures/{content} List all failures for a content
ContentApi ContentImportdealPost Post /content/importdeal Import a deal
ContentApi ContentListGet Get /content/list List all pinned content
ContentApi ContentReadContGet Get /content/read/{cont} Read content
ContentApi ContentStagingZonesGet Get /content/staging-zones Get staging zone for user
ContentApi ContentStatsGet Get /content/stats Get content statistics
ContentApi ContentStatusIdGet Get /content/status/{id} Content Status
DealsApi DealEstimatePost Post /deal/estimate Estimate the cost of a deal
DealsApi DealInfoDealidGet Get /deal/info/{dealid} Get Deal Info
DealsApi DealProposalPropcidGet Get /deal/proposal/{propcid} Get Proposal
DealsApi DealQueryMinerGet Get /deal/query/{miner} Query Ask
DealsApi DealStatusByProposalPropcidGet Get /deal/status-by-proposal/{propcid} Get Deal Status by PropCid
DealsApi DealStatusMinerPropcidGet Get /deal/status/{miner}/{propcid} Deal Status
DealsApi DealTransferInProgressGet Get /deal/transfer/in-progress Transfer In Progress
DealsApi DealTransferStatusPost Post /deal/transfer/status Transfer Status
DealsApi DealsFailuresGet Get /deals/failures Get storage failures for user
DealsApi DealsMakeMinerPost Post /deals/make/{miner} Make Deal
DealsApi DealsStatusDealGet Get /deals/status/{deal} Get Deal Status
DealsApi PublicDealsFailuresGet Get /public/deals/failures Get storage failures
MetricsApi PublicMetricsDealsOnChainGet Get /public/metrics/deals-on-chain Get deal metrics
MinerApi PublicMinersDealsMinerGet Get /public/miners/deals/{miner} Get all miners deals
MinerApi PublicMinersStatsMinerGet Get /public/miners/stats/{miner} Get miner stats
NetApi NetAddrsGet Get /net/addrs Net Addrs
NetApi PublicMinersFailuresMinerGet Get /public/miners/failures/{miner} Get all miners
NetApi PublicMinersGet Get /public/miners Get all miners
NetApi PublicNetAddrsGet Get /public/net/addrs Net Addrs
NetApi PublicNetPeersGet Get /public/net/peers Net Peers
PeeringApi AdminPeeringPeersDelete Delete /admin/peering/peers Remove peers on Peering Service
PeeringApi AdminPeeringPeersGet Get /admin/peering/peers List all Peering peers
PeeringApi AdminPeeringPeersPost Post /admin/peering/peers Add peers on Peering Service
PeeringApi AdminPeeringStartPost Post /admin/peering/start Start Peering
PeeringApi AdminPeeringStatusGet Get /admin/peering/status Check Peering Status
PeeringApi AdminPeeringStopPost Post /admin/peering/stop Stop Peering
PeersApi AdminPeeringPeersDelete Delete /admin/peering/peers Remove peers on Peering Service
PeersApi AdminPeeringPeersGet Get /admin/peering/peers List all Peering peers
PeersApi AdminPeeringPeersPost Post /admin/peering/peers Add peers on Peering Service
PeersApi AdminPeeringStartPost Post /admin/peering/start Start Peering
PeersApi AdminPeeringStatusGet Get /admin/peering/status Check Peering Status
PeersApi AdminPeeringStopPost Post /admin/peering/stop Stop Peering
PinningApi PinningPinsGet Get /pinning/pins List all pin status objects
PinningApi PinningPinsPinidDelete Delete /pinning/pins/{pinid} Delete a pinned object
PinningApi PinningPinsPinidGet Get /pinning/pins/{pinid} Get a pin status object
PinningApi PinningPinsPinidPost Post /pinning/pins/{pinid} Replace a pinned object
PinningApi PinningPinsPost Post /pinning/pins Add and pin object
PublicApi PublicByCidCidGet Get /public/by-cid/{cid} Get Content by Cid
PublicApi PublicInfoGet Get /public/info Get public node info
PublicApi PublicMetricsDealsOnChainGet Get /public/metrics/deals-on-chain Get deal metrics
PublicApi PublicMinersDealsMinerGet Get /public/miners/deals/{miner} Get all miners deals
PublicApi PublicMinersFailuresMinerGet Get /public/miners/failures/{miner} Get all miners
PublicApi PublicMinersGet Get /public/miners Get all miners
PublicApi PublicMinersStatsMinerGet Get /public/miners/stats/{miner} Get miner stats
PublicApi PublicNetAddrsGet Get /public/net/addrs Net Addrs
PublicApi PublicNetPeersGet Get /public/net/peers Net Peers
PublicApi PublicStatsGet Get /public/stats Public stats
UserApi UserApiKeysGet Get /user/api-keys Get API keys for a user
UserApi UserApiKeysKeyDelete Delete /user/api-keys/{key} Revoke a User API Key.
UserApi UserApiKeysPost Post /user/api-keys Create API keys for a user
UserApi UserExportGet Get /user/export Export user data
UserApi UserStatsGet Get /user/stats Create API keys for a user

Documentation For Models

Documentation For Authorization

bearerAuth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AdminApi *AdminApiService

	AutoretrieveApi *AutoretrieveApiService

	CollectionsApi *CollectionsApiService

	ContentApi *ContentApiService

	DealsApi *DealsApiService

	MetricsApi *MetricsApiService

	MinerApi *MinerApiService

	NetApi *NetApiService

	PeeringApi *PeeringApiService

	PeersApi *PeersApiService

	PinningApi *PinningApiService

	PublicApi *PublicApiService

	UserApi *UserApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Estuary API API v0.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiAdminAutoretrieveInitPostRequest

type ApiAdminAutoretrieveInitPostRequest struct {
	ApiService *AutoretrieveApiService
	// contains filtered or unexported fields
}

func (ApiAdminAutoretrieveInitPostRequest) Execute

func (ApiAdminAutoretrieveInitPostRequest) PubKey

Autoretrieve's public key

type ApiAdminAutoretrieveListGetRequest

type ApiAdminAutoretrieveListGetRequest struct {
	ApiService *AutoretrieveApiService
	// contains filtered or unexported fields
}

func (ApiAdminAutoretrieveListGetRequest) Execute

type ApiAdminPeeringPeersDeleteRequest

type ApiAdminPeeringPeersDeleteRequest struct {
	ApiService *PeersApiService
	// contains filtered or unexported fields
}

func (ApiAdminPeeringPeersDeleteRequest) Execute

type ApiAdminPeeringPeersGetRequest

type ApiAdminPeeringPeersGetRequest struct {
	ApiService *PeersApiService
	// contains filtered or unexported fields
}

func (ApiAdminPeeringPeersGetRequest) Execute

type ApiAdminPeeringPeersPostRequest

type ApiAdminPeeringPeersPostRequest struct {
	ApiService *PeersApiService
	// contains filtered or unexported fields
}

func (ApiAdminPeeringPeersPostRequest) Execute

type ApiAdminPeeringStartPostRequest

type ApiAdminPeeringStartPostRequest struct {
	ApiService *PeersApiService
	// contains filtered or unexported fields
}

func (ApiAdminPeeringStartPostRequest) Execute

type ApiAdminPeeringStatusGetRequest

type ApiAdminPeeringStatusGetRequest struct {
	ApiService *PeersApiService
	// contains filtered or unexported fields
}

func (ApiAdminPeeringStatusGetRequest) Execute

type ApiAdminPeeringStopPostRequest

type ApiAdminPeeringStopPostRequest struct {
	ApiService *PeersApiService
	// contains filtered or unexported fields
}

func (ApiAdminPeeringStopPostRequest) Execute

type ApiAutoretrieveHeartbeatPostRequest

type ApiAutoretrieveHeartbeatPostRequest struct {
	ApiService *AutoretrieveApiService
	// contains filtered or unexported fields
}

func (ApiAutoretrieveHeartbeatPostRequest) Execute

func (ApiAutoretrieveHeartbeatPostRequest) Token

Autoretrieve's auth token

type ApiCollectionsAddContentPostRequest

type ApiCollectionsAddContentPostRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsAddContentPostRequest) Body

Contents to add to collection

func (ApiCollectionsAddContentPostRequest) Execute

type ApiCollectionsColuuidCommitPostRequest

type ApiCollectionsColuuidCommitPostRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsColuuidCommitPostRequest) Execute

type ApiCollectionsColuuidDeleteRequest

type ApiCollectionsColuuidDeleteRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsColuuidDeleteRequest) Execute

type ApiCollectionsContentGetRequest

type ApiCollectionsContentGetRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsContentGetRequest) Coluuid

Collection UUID

func (ApiCollectionsContentGetRequest) Dir

Directory

func (ApiCollectionsContentGetRequest) Execute

type ApiCollectionsCreatePostRequest

type ApiCollectionsCreatePostRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsCreatePostRequest) Body

Collection name and description

func (ApiCollectionsCreatePostRequest) Execute

type ApiCollectionsFsAddPostRequest

type ApiCollectionsFsAddPostRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsFsAddPostRequest) Coluuid

Collection ID

func (ApiCollectionsFsAddPostRequest) Content

Content

func (ApiCollectionsFsAddPostRequest) Execute

func (ApiCollectionsFsAddPostRequest) Path

Path to file

type ApiCollectionsListGetRequest

type ApiCollectionsListGetRequest struct {
	ApiService *CollectionsApiService
	// contains filtered or unexported fields
}

func (ApiCollectionsListGetRequest) Execute

type ApiContentAddCarPostRequest

type ApiContentAddCarPostRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentAddCarPostRequest) Body

Car

func (ApiContentAddCarPostRequest) Commp

Commp

func (ApiContentAddCarPostRequest) Execute

func (ApiContentAddCarPostRequest) Filename

Filename

func (ApiContentAddCarPostRequest) Size

Size

type ApiContentAddIpfsPostRequest

type ApiContentAddIpfsPostRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentAddIpfsPostRequest) Body

IPFS Body

func (ApiContentAddIpfsPostRequest) Execute

type ApiContentAddPostRequest

type ApiContentAddPostRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentAddPostRequest) Execute

func (r ApiContentAddPostRequest) Execute() (*http.Response, error)

func (ApiContentAddPostRequest) File

File to upload

type ApiContentAggregatedContentGetRequest

type ApiContentAggregatedContentGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentAggregatedContentGetRequest) Execute

type ApiContentAllDealsGetRequest

type ApiContentAllDealsGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentAllDealsGetRequest) All

All

func (ApiContentAllDealsGetRequest) Begin

Begin

func (ApiContentAllDealsGetRequest) Duration

Duration

func (ApiContentAllDealsGetRequest) Execute

type ApiContentBwUsageContentGetRequest

type ApiContentBwUsageContentGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentBwUsageContentGetRequest) Execute

type ApiContentCreatePostRequest

type ApiContentCreatePostRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentCreatePostRequest) Body

Content

func (ApiContentCreatePostRequest) Execute

type ApiContentDealsGetRequest

type ApiContentDealsGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentDealsGetRequest) Execute

func (r ApiContentDealsGetRequest) Execute() (*http.Response, error)

func (ApiContentDealsGetRequest) Limit

Limit

func (ApiContentDealsGetRequest) Offset

Offset

type ApiContentEnsureReplicationDatacidGetRequest

type ApiContentEnsureReplicationDatacidGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentEnsureReplicationDatacidGetRequest) Execute

type ApiContentFailuresContentGetRequest

type ApiContentFailuresContentGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentFailuresContentGetRequest) Execute

type ApiContentImportdealPostRequest

type ApiContentImportdealPostRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentImportdealPostRequest) Body

Import a deal

func (ApiContentImportdealPostRequest) Execute

type ApiContentListGetRequest

type ApiContentListGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentListGetRequest) Execute

func (r ApiContentListGetRequest) Execute() ([]string, *http.Response, error)

type ApiContentReadContGetRequest

type ApiContentReadContGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentReadContGetRequest) Execute

type ApiContentStagingZonesGetRequest

type ApiContentStagingZonesGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentStagingZonesGetRequest) Execute

type ApiContentStatsGetRequest

type ApiContentStatsGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentStatsGetRequest) Execute

func (r ApiContentStatsGetRequest) Execute() (*http.Response, error)

type ApiContentStatusIdGetRequest

type ApiContentStatusIdGetRequest struct {
	ApiService *ContentApiService
	// contains filtered or unexported fields
}

func (ApiContentStatusIdGetRequest) Execute

type ApiDealEstimatePostRequest

type ApiDealEstimatePostRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealEstimatePostRequest) Body

The size of the deal in bytes, the replication factor, and the duration of the deal in blocks

func (ApiDealEstimatePostRequest) Execute

type ApiDealInfoDealidGetRequest

type ApiDealInfoDealidGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealInfoDealidGetRequest) Execute

type ApiDealProposalPropcidGetRequest

type ApiDealProposalPropcidGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealProposalPropcidGetRequest) Execute

type ApiDealQueryMinerGetRequest

type ApiDealQueryMinerGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealQueryMinerGetRequest) Execute

type ApiDealStatusByProposalPropcidGetRequest

type ApiDealStatusByProposalPropcidGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealStatusByProposalPropcidGetRequest) Execute

type ApiDealStatusMinerPropcidGetRequest

type ApiDealStatusMinerPropcidGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealStatusMinerPropcidGetRequest) Execute

type ApiDealTransferInProgressGetRequest

type ApiDealTransferInProgressGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealTransferInProgressGetRequest) Execute

type ApiDealTransferStatusPostRequest

type ApiDealTransferStatusPostRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealTransferStatusPostRequest) Execute

type ApiDealsFailuresGetRequest

type ApiDealsFailuresGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealsFailuresGetRequest) Execute

type ApiDealsMakeMinerPostRequest

type ApiDealsMakeMinerPostRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealsMakeMinerPostRequest) DealRequest

Deal Request

func (ApiDealsMakeMinerPostRequest) Execute

type ApiDealsStatusDealGetRequest

type ApiDealsStatusDealGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiDealsStatusDealGetRequest) Execute

type ApiNetAddrsGetRequest

type ApiNetAddrsGetRequest struct {
	ApiService *NetApiService
	// contains filtered or unexported fields
}

func (ApiNetAddrsGetRequest) Execute

func (r ApiNetAddrsGetRequest) Execute() ([]string, *http.Response, error)

type ApiPinningPinsGetRequest

type ApiPinningPinsGetRequest struct {
	ApiService *PinningApiService
	// contains filtered or unexported fields
}

func (ApiPinningPinsGetRequest) Execute

func (r ApiPinningPinsGetRequest) Execute() (*http.Response, error)

type ApiPinningPinsPinidDeleteRequest

type ApiPinningPinsPinidDeleteRequest struct {
	ApiService *PinningApiService
	// contains filtered or unexported fields
}

func (ApiPinningPinsPinidDeleteRequest) Execute

type ApiPinningPinsPinidGetRequest

type ApiPinningPinsPinidGetRequest struct {
	ApiService *PinningApiService
	// contains filtered or unexported fields
}

func (ApiPinningPinsPinidGetRequest) Execute

type ApiPinningPinsPinidPostRequest

type ApiPinningPinsPinidPostRequest struct {
	ApiService *PinningApiService
	// contains filtered or unexported fields
}

func (ApiPinningPinsPinidPostRequest) Execute

type ApiPinningPinsPostRequest

type ApiPinningPinsPostRequest struct {
	ApiService *PinningApiService
	// contains filtered or unexported fields
}

func (ApiPinningPinsPostRequest) Execute

func (r ApiPinningPinsPostRequest) Execute() (*http.Response, error)

type ApiPublicByCidCidGetRequest

type ApiPublicByCidCidGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicByCidCidGetRequest) Execute

type ApiPublicDealsFailuresGetRequest

type ApiPublicDealsFailuresGetRequest struct {
	ApiService *DealsApiService
	// contains filtered or unexported fields
}

func (ApiPublicDealsFailuresGetRequest) Execute

type ApiPublicInfoGetRequest

type ApiPublicInfoGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicInfoGetRequest) Execute

func (r ApiPublicInfoGetRequest) Execute() (*http.Response, error)

type ApiPublicMetricsDealsOnChainGetRequest

type ApiPublicMetricsDealsOnChainGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicMetricsDealsOnChainGetRequest) Execute

type ApiPublicMinersDealsMinerGetRequest

type ApiPublicMinersDealsMinerGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicMinersDealsMinerGetRequest) Execute

func (r ApiPublicMinersDealsMinerGetRequest) Execute() (*http.Response, error)

type ApiPublicMinersFailuresMinerGetRequest

type ApiPublicMinersFailuresMinerGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicMinersFailuresMinerGetRequest) Execute

func (r ApiPublicMinersFailuresMinerGetRequest) Execute() (*http.Response, error)

func (ApiPublicMinersFailuresMinerGetRequest) Miner

Filter by miner

type ApiPublicMinersGetRequest

type ApiPublicMinersGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicMinersGetRequest) Execute

func (r ApiPublicMinersGetRequest) Execute() (*http.Response, error)

type ApiPublicMinersStatsMinerGetRequest

type ApiPublicMinersStatsMinerGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicMinersStatsMinerGetRequest) Execute

func (r ApiPublicMinersStatsMinerGetRequest) Execute() (*http.Response, error)

type ApiPublicNetAddrsGetRequest

type ApiPublicNetAddrsGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicNetAddrsGetRequest) Execute

func (r ApiPublicNetAddrsGetRequest) Execute() ([]string, *http.Response, error)

type ApiPublicNetPeersGetRequest

type ApiPublicNetPeersGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicNetPeersGetRequest) Execute

func (r ApiPublicNetPeersGetRequest) Execute() ([]string, *http.Response, error)

type ApiPublicStatsGetRequest

type ApiPublicStatsGetRequest struct {
	ApiService *PublicApiService
	// contains filtered or unexported fields
}

func (ApiPublicStatsGetRequest) Execute

func (r ApiPublicStatsGetRequest) Execute() (*http.Response, error)

type ApiUserApiKeysGetRequest

type ApiUserApiKeysGetRequest struct {
	ApiService *UserApiService
	// contains filtered or unexported fields
}

func (ApiUserApiKeysGetRequest) Execute

type ApiUserApiKeysKeyDeleteRequest

type ApiUserApiKeysKeyDeleteRequest struct {
	ApiService *UserApiService
	// contains filtered or unexported fields
}

func (ApiUserApiKeysKeyDeleteRequest) Execute

type ApiUserApiKeysPostRequest

type ApiUserApiKeysPostRequest struct {
	ApiService *UserApiService
	// contains filtered or unexported fields
}

func (ApiUserApiKeysPostRequest) Execute

type ApiUserExportGetRequest

type ApiUserExportGetRequest struct {
	ApiService *UserApiService
	// contains filtered or unexported fields
}

func (ApiUserExportGetRequest) Execute

type ApiUserStatsGetRequest

type ApiUserStatsGetRequest struct {
	ApiService *UserApiService
	// contains filtered or unexported fields
}

func (ApiUserStatsGetRequest) Execute

type AutoretrieveApiService

type AutoretrieveApiService service

AutoretrieveApiService AutoretrieveApi service

func (*AutoretrieveApiService) AdminAutoretrieveInitPost

AdminAutoretrieveInitPost Register autoretrieve server

This endpoint registers a new autoretrieve server

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminAutoretrieveInitPostRequest

func (*AutoretrieveApiService) AdminAutoretrieveInitPostExecute

func (a *AutoretrieveApiService) AdminAutoretrieveInitPostExecute(r ApiAdminAutoretrieveInitPostRequest) (*http.Response, error)

Execute executes the request

func (*AutoretrieveApiService) AdminAutoretrieveListGet

AdminAutoretrieveListGet List autoretrieve servers

This endpoint lists all registered autoretrieve servers

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminAutoretrieveListGetRequest

func (*AutoretrieveApiService) AdminAutoretrieveListGetExecute

func (a *AutoretrieveApiService) AdminAutoretrieveListGetExecute(r ApiAdminAutoretrieveListGetRequest) (*http.Response, error)

Execute executes the request

func (*AutoretrieveApiService) AutoretrieveHeartbeatPost

AutoretrieveHeartbeatPost Marks autoretrieve server as up

This endpoint updates the lastConnection field for autoretrieve

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAutoretrieveHeartbeatPostRequest

func (*AutoretrieveApiService) AutoretrieveHeartbeatPostExecute

func (a *AutoretrieveApiService) AutoretrieveHeartbeatPostExecute(r ApiAutoretrieveHeartbeatPostRequest) (*http.Response, error)

Execute executes the request

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CollectionsApiService

type CollectionsApiService service

CollectionsApiService CollectionsApi service

func (*CollectionsApiService) CollectionsAddContentPost

CollectionsAddContentPost Add contents to a collection

When a collection is created, users with valid API keys can add contents to the collection. This endpoint can be used to add contents to a collection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCollectionsAddContentPostRequest

func (*CollectionsApiService) CollectionsAddContentPostExecute

func (a *CollectionsApiService) CollectionsAddContentPostExecute(r ApiCollectionsAddContentPostRequest) (map[string]string, *http.Response, error)

Execute executes the request

@return map[string]string

func (*CollectionsApiService) CollectionsColuuidCommitPost

func (a *CollectionsApiService) CollectionsColuuidCommitPost(ctx context.Context, coluuid string) ApiCollectionsColuuidCommitPostRequest

CollectionsColuuidCommitPost Produce a CID of the collection contents

This endpoint is used to save the contents in a collection, producing a top-level CID that references all the current CIDs in the collection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param coluuid coluuid
@return ApiCollectionsColuuidCommitPostRequest

func (*CollectionsApiService) CollectionsColuuidCommitPostExecute

func (a *CollectionsApiService) CollectionsColuuidCommitPostExecute(r ApiCollectionsColuuidCommitPostRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*CollectionsApiService) CollectionsColuuidDelete

func (a *CollectionsApiService) CollectionsColuuidDelete(ctx context.Context, coluuid string) ApiCollectionsColuuidDeleteRequest

CollectionsColuuidDelete Deletes a collection

This endpoint is used to delete an existing collection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param coluuid Collection ID
@return ApiCollectionsColuuidDeleteRequest

func (*CollectionsApiService) CollectionsColuuidDeleteExecute

func (a *CollectionsApiService) CollectionsColuuidDeleteExecute(r ApiCollectionsColuuidDeleteRequest) (*http.Response, error)

Execute executes the request

func (*CollectionsApiService) CollectionsContentGet

CollectionsContentGet Get contents in a collection

This endpoint is used to get contents in a collection. If no colpath query param is passed

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCollectionsContentGetRequest

func (*CollectionsApiService) CollectionsContentGetExecute

func (a *CollectionsApiService) CollectionsContentGetExecute(r ApiCollectionsContentGetRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*CollectionsApiService) CollectionsCreatePost

CollectionsCreatePost Create a new collection

This endpoint is used to create a new collection. A collection is a representaion of a group of objects added on the estuary. This endpoint can be used to create a new collection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCollectionsCreatePostRequest

func (*CollectionsApiService) CollectionsCreatePostExecute

Execute executes the request

@return MainCollection

func (*CollectionsApiService) CollectionsFsAddPost

CollectionsFsAddPost Add a file to a collection

This endpoint adds a file to a collection

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCollectionsFsAddPostRequest

func (*CollectionsApiService) CollectionsFsAddPostExecute

func (a *CollectionsApiService) CollectionsFsAddPostExecute(r ApiCollectionsFsAddPostRequest) (*http.Response, error)

Execute executes the request

func (*CollectionsApiService) CollectionsListGet

CollectionsListGet List all collections

This endpoint is used to list all collections. Whenever a user logs on estuary, it will list all collections that the user has access to. This endpoint provides a way to list all collections to the user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id User ID
@return ApiCollectionsListGetRequest

func (*CollectionsApiService) CollectionsListGetExecute

Execute executes the request

@return []MainCollection

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ContentApiService

type ContentApiService service

ContentApiService ContentApi service

func (*ContentApiService) ContentAddCarPost

ContentAddCarPost Add Car object

This endpoint is used to add a car object to the network. The object can be a file or a directory.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentAddCarPostRequest

func (*ContentApiService) ContentAddCarPostExecute

func (a *ContentApiService) ContentAddCarPostExecute(r ApiContentAddCarPostRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentAddIpfsPost

ContentAddIpfsPost Add IPFS object

This endpoint is used to add an IPFS object to the network. The object can be a file or a directory.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentAddIpfsPostRequest

func (*ContentApiService) ContentAddIpfsPostExecute

func (a *ContentApiService) ContentAddIpfsPostExecute(r ApiContentAddIpfsPostRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentAddPost

func (a *ContentApiService) ContentAddPost(ctx context.Context, coluuid string, dir string) ApiContentAddPostRequest

ContentAddPost Add new content

This endpoint is used to upload new content.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param coluuid Collection UUID
@param dir Directory
@return ApiContentAddPostRequest

func (*ContentApiService) ContentAddPostExecute

func (a *ContentApiService) ContentAddPostExecute(r ApiContentAddPostRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentAggregatedContentGet

func (a *ContentApiService) ContentAggregatedContentGet(ctx context.Context, content string) ApiContentAggregatedContentGetRequest

ContentAggregatedContentGet Get aggregated content stats

This endpoint returns aggregated content stats

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param content Content ID
@return ApiContentAggregatedContentGetRequest

func (*ContentApiService) ContentAggregatedContentGetExecute

func (a *ContentApiService) ContentAggregatedContentGetExecute(r ApiContentAggregatedContentGetRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ContentApiService) ContentAllDealsGet

ContentAllDealsGet Get all deals for a user

This endpoint is used to get all deals for a user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentAllDealsGetRequest

func (*ContentApiService) ContentAllDealsGetExecute

func (a *ContentApiService) ContentAllDealsGetExecute(r ApiContentAllDealsGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentBwUsageContentGet

func (a *ContentApiService) ContentBwUsageContentGet(ctx context.Context, content string) ApiContentBwUsageContentGetRequest

ContentBwUsageContentGet Get content bandwidth

This endpoint returns content bandwidth

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param content Content ID
@return ApiContentBwUsageContentGetRequest

func (*ContentApiService) ContentBwUsageContentGetExecute

func (a *ContentApiService) ContentBwUsageContentGetExecute(r ApiContentBwUsageContentGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentCreatePost

ContentCreatePost Add a new content

This endpoint adds a new content

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentCreatePostRequest

func (*ContentApiService) ContentCreatePostExecute

func (a *ContentApiService) ContentCreatePostExecute(r ApiContentCreatePostRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentDealsGet

ContentDealsGet Content with deals

This endpoint lists all content with deals

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentDealsGetRequest

func (*ContentApiService) ContentDealsGetExecute

func (a *ContentApiService) ContentDealsGetExecute(r ApiContentDealsGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentEnsureReplicationDatacidGet

func (a *ContentApiService) ContentEnsureReplicationDatacidGet(ctx context.Context, datacid string) ApiContentEnsureReplicationDatacidGetRequest

ContentEnsureReplicationDatacidGet Ensure Replication

This endpoint ensures that the content is replicated to the specified number of providers

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param datacid Data CID
@return ApiContentEnsureReplicationDatacidGetRequest

func (*ContentApiService) ContentEnsureReplicationDatacidGetExecute

func (a *ContentApiService) ContentEnsureReplicationDatacidGetExecute(r ApiContentEnsureReplicationDatacidGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentFailuresContentGet

func (a *ContentApiService) ContentFailuresContentGet(ctx context.Context, content string) ApiContentFailuresContentGetRequest

ContentFailuresContentGet List all failures for a content

This endpoint returns all failures for a content

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param content Content ID
@return ApiContentFailuresContentGetRequest

func (*ContentApiService) ContentFailuresContentGetExecute

func (a *ContentApiService) ContentFailuresContentGetExecute(r ApiContentFailuresContentGetRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ContentApiService) ContentImportdealPost

func (a *ContentApiService) ContentImportdealPost(ctx context.Context) ApiContentImportdealPostRequest

ContentImportdealPost Import a deal

This endpoint imports a deal into the shuttle.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentImportdealPostRequest

func (*ContentApiService) ContentImportdealPostExecute

func (a *ContentApiService) ContentImportdealPostExecute(r ApiContentImportdealPostRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentListGet

ContentListGet List all pinned content

This endpoint lists all content

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentListGetRequest

func (*ContentApiService) ContentListGetExecute

func (a *ContentApiService) ContentListGetExecute(r ApiContentListGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*ContentApiService) ContentReadContGet

func (a *ContentApiService) ContentReadContGet(ctx context.Context, cont string) ApiContentReadContGetRequest

ContentReadContGet Read content

This endpoint reads content from the blockstore

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cont CID
@return ApiContentReadContGetRequest

func (*ContentApiService) ContentReadContGetExecute

func (a *ContentApiService) ContentReadContGetExecute(r ApiContentReadContGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentStagingZonesGet

func (a *ContentApiService) ContentStagingZonesGet(ctx context.Context) ApiContentStagingZonesGetRequest

ContentStagingZonesGet Get staging zone for user

This endpoint is used to get staging zone for user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiContentStagingZonesGetRequest

func (*ContentApiService) ContentStagingZonesGetExecute

func (a *ContentApiService) ContentStagingZonesGetExecute(r ApiContentStagingZonesGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentStatsGet

func (a *ContentApiService) ContentStatsGet(ctx context.Context, limit string) ApiContentStatsGetRequest

ContentStatsGet Get content statistics

This endpoint is used to get content statistics. Every content stored in the network (estuary) is tracked by a unique ID which can be used to get information about the content. This endpoint will allow the consumer to get the collected stats of a conten

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param limit limit
@return ApiContentStatsGetRequest

func (*ContentApiService) ContentStatsGetExecute

func (a *ContentApiService) ContentStatsGetExecute(r ApiContentStatsGetRequest) (*http.Response, error)

Execute executes the request

func (*ContentApiService) ContentStatusIdGet

func (a *ContentApiService) ContentStatusIdGet(ctx context.Context, id int32) ApiContentStatusIdGetRequest

ContentStatusIdGet Content Status

This endpoint returns the status of a content

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Content ID
@return ApiContentStatusIdGetRequest

func (*ContentApiService) ContentStatusIdGetExecute

func (a *ContentApiService) ContentStatusIdGetExecute(r ApiContentStatusIdGetRequest) (*http.Response, error)

Execute executes the request

type DealsApiService

type DealsApiService service

DealsApiService DealsApi service

func (*DealsApiService) DealEstimatePost

func (a *DealsApiService) DealEstimatePost(ctx context.Context) ApiDealEstimatePostRequest

DealEstimatePost Estimate the cost of a deal

This endpoint estimates the cost of a deal

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDealEstimatePostRequest

func (*DealsApiService) DealEstimatePostExecute

func (a *DealsApiService) DealEstimatePostExecute(r ApiDealEstimatePostRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealInfoDealidGet

func (a *DealsApiService) DealInfoDealidGet(ctx context.Context, dealid int32) ApiDealInfoDealidGetRequest

DealInfoDealidGet Get Deal Info

This endpoint returns the deal info for a deal

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param dealid Deal ID
@return ApiDealInfoDealidGetRequest

func (*DealsApiService) DealInfoDealidGetExecute

func (a *DealsApiService) DealInfoDealidGetExecute(r ApiDealInfoDealidGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealProposalPropcidGet

func (a *DealsApiService) DealProposalPropcidGet(ctx context.Context, propcid string) ApiDealProposalPropcidGetRequest

DealProposalPropcidGet Get Proposal

This endpoint returns the proposal for a deal

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param propcid Proposal CID
@return ApiDealProposalPropcidGetRequest

func (*DealsApiService) DealProposalPropcidGetExecute

func (a *DealsApiService) DealProposalPropcidGetExecute(r ApiDealProposalPropcidGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealQueryMinerGet

func (a *DealsApiService) DealQueryMinerGet(ctx context.Context, miner string) ApiDealQueryMinerGetRequest

DealQueryMinerGet Query Ask

This endpoint returns the ask for a given CID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner CID
@return ApiDealQueryMinerGetRequest

func (*DealsApiService) DealQueryMinerGetExecute

func (a *DealsApiService) DealQueryMinerGetExecute(r ApiDealQueryMinerGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealStatusByProposalPropcidGet

func (a *DealsApiService) DealStatusByProposalPropcidGet(ctx context.Context, propcid string) ApiDealStatusByProposalPropcidGetRequest

DealStatusByProposalPropcidGet Get Deal Status by PropCid

Get Deal Status by PropCid

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param propcid PropCid
@return ApiDealStatusByProposalPropcidGetRequest

func (*DealsApiService) DealStatusByProposalPropcidGetExecute

func (a *DealsApiService) DealStatusByProposalPropcidGetExecute(r ApiDealStatusByProposalPropcidGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealStatusMinerPropcidGet

func (a *DealsApiService) DealStatusMinerPropcidGet(ctx context.Context, miner string, propcid string) ApiDealStatusMinerPropcidGetRequest

DealStatusMinerPropcidGet Deal Status

This endpoint returns the status of a deal

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner Miner
@param propcid Proposal CID
@return ApiDealStatusMinerPropcidGetRequest

func (*DealsApiService) DealStatusMinerPropcidGetExecute

func (a *DealsApiService) DealStatusMinerPropcidGetExecute(r ApiDealStatusMinerPropcidGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealTransferInProgressGet

func (a *DealsApiService) DealTransferInProgressGet(ctx context.Context) ApiDealTransferInProgressGetRequest

DealTransferInProgressGet Transfer In Progress

This endpoint returns the in-progress transfers

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDealTransferInProgressGetRequest

func (*DealsApiService) DealTransferInProgressGetExecute

func (a *DealsApiService) DealTransferInProgressGetExecute(r ApiDealTransferInProgressGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealTransferStatusPost

func (a *DealsApiService) DealTransferStatusPost(ctx context.Context) ApiDealTransferStatusPostRequest

DealTransferStatusPost Transfer Status

This endpoint returns the status of a transfer

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDealTransferStatusPostRequest

func (*DealsApiService) DealTransferStatusPostExecute

func (a *DealsApiService) DealTransferStatusPostExecute(r ApiDealTransferStatusPostRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealsFailuresGet

func (a *DealsApiService) DealsFailuresGet(ctx context.Context) ApiDealsFailuresGetRequest

DealsFailuresGet Get storage failures for user

This endpoint returns a list of storage failures for user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDealsFailuresGetRequest

func (*DealsApiService) DealsFailuresGetExecute

func (a *DealsApiService) DealsFailuresGetExecute(r ApiDealsFailuresGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealsMakeMinerPost

func (a *DealsApiService) DealsMakeMinerPost(ctx context.Context, miner string) ApiDealsMakeMinerPostRequest

DealsMakeMinerPost Make Deal

This endpoint makes a deal for a given content and miner

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner Miner
@return ApiDealsMakeMinerPostRequest

func (*DealsApiService) DealsMakeMinerPostExecute

func (a *DealsApiService) DealsMakeMinerPostExecute(r ApiDealsMakeMinerPostRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) DealsStatusDealGet

func (a *DealsApiService) DealsStatusDealGet(ctx context.Context, deal int32) ApiDealsStatusDealGetRequest

DealsStatusDealGet Get Deal Status

This endpoint returns the status of a deal

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param deal Deal ID
@return ApiDealsStatusDealGetRequest

func (*DealsApiService) DealsStatusDealGetExecute

func (a *DealsApiService) DealsStatusDealGetExecute(r ApiDealsStatusDealGetRequest) (*http.Response, error)

Execute executes the request

func (*DealsApiService) PublicDealsFailuresGet

func (a *DealsApiService) PublicDealsFailuresGet(ctx context.Context) ApiPublicDealsFailuresGetRequest

PublicDealsFailuresGet Get storage failures

This endpoint returns a list of storage failures

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicDealsFailuresGetRequest

func (*DealsApiService) PublicDealsFailuresGetExecute

func (a *DealsApiService) PublicDealsFailuresGetExecute(r ApiPublicDealsFailuresGetRequest) (*http.Response, error)

Execute executes the request

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MainAddContentToCollectionParams

type MainAddContentToCollectionParams struct {
	Cids     []string `json:"cids,omitempty"`
	Coluuid  *string  `json:"coluuid,omitempty"`
	Contents []int32  `json:"contents,omitempty"`
}

MainAddContentToCollectionParams struct for MainAddContentToCollectionParams

func NewMainAddContentToCollectionParams

func NewMainAddContentToCollectionParams() *MainAddContentToCollectionParams

NewMainAddContentToCollectionParams instantiates a new MainAddContentToCollectionParams object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainAddContentToCollectionParamsWithDefaults

func NewMainAddContentToCollectionParamsWithDefaults() *MainAddContentToCollectionParams

NewMainAddContentToCollectionParamsWithDefaults instantiates a new MainAddContentToCollectionParams object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainAddContentToCollectionParams) GetCids

GetCids returns the Cids field value if set, zero value otherwise.

func (*MainAddContentToCollectionParams) GetCidsOk

func (o *MainAddContentToCollectionParams) GetCidsOk() ([]string, bool)

GetCidsOk returns a tuple with the Cids field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainAddContentToCollectionParams) GetColuuid

func (o *MainAddContentToCollectionParams) GetColuuid() string

GetColuuid returns the Coluuid field value if set, zero value otherwise.

func (*MainAddContentToCollectionParams) GetColuuidOk

func (o *MainAddContentToCollectionParams) GetColuuidOk() (*string, bool)

GetColuuidOk returns a tuple with the Coluuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainAddContentToCollectionParams) GetContents

func (o *MainAddContentToCollectionParams) GetContents() []int32

GetContents returns the Contents field value if set, zero value otherwise.

func (*MainAddContentToCollectionParams) GetContentsOk

func (o *MainAddContentToCollectionParams) GetContentsOk() ([]int32, bool)

GetContentsOk returns a tuple with the Contents field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainAddContentToCollectionParams) HasCids

HasCids returns a boolean if a field has been set.

func (*MainAddContentToCollectionParams) HasColuuid

func (o *MainAddContentToCollectionParams) HasColuuid() bool

HasColuuid returns a boolean if a field has been set.

func (*MainAddContentToCollectionParams) HasContents

func (o *MainAddContentToCollectionParams) HasContents() bool

HasContents returns a boolean if a field has been set.

func (MainAddContentToCollectionParams) MarshalJSON

func (o MainAddContentToCollectionParams) MarshalJSON() ([]byte, error)

func (*MainAddContentToCollectionParams) SetCids

func (o *MainAddContentToCollectionParams) SetCids(v []string)

SetCids gets a reference to the given []string and assigns it to the Cids field.

func (*MainAddContentToCollectionParams) SetColuuid

func (o *MainAddContentToCollectionParams) SetColuuid(v string)

SetColuuid gets a reference to the given string and assigns it to the Coluuid field.

func (*MainAddContentToCollectionParams) SetContents

func (o *MainAddContentToCollectionParams) SetContents(v []int32)

SetContents gets a reference to the given []int32 and assigns it to the Contents field.

type MainCollection

type MainCollection struct {
	Cid         *string `json:"cid,omitempty"`
	CreatedAt   *string `json:"createdAt,omitempty"`
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
	UserId      *int32  `json:"userId,omitempty"`
	Uuid        *string `json:"uuid,omitempty"`
}

MainCollection struct for MainCollection

func NewMainCollection

func NewMainCollection() *MainCollection

NewMainCollection instantiates a new MainCollection object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainCollectionWithDefaults

func NewMainCollectionWithDefaults() *MainCollection

NewMainCollectionWithDefaults instantiates a new MainCollection object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainCollection) GetCid

func (o *MainCollection) GetCid() string

GetCid returns the Cid field value if set, zero value otherwise.

func (*MainCollection) GetCidOk

func (o *MainCollection) GetCidOk() (*string, bool)

GetCidOk returns a tuple with the Cid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCollection) GetCreatedAt

func (o *MainCollection) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*MainCollection) GetCreatedAtOk

func (o *MainCollection) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCollection) GetDescription

func (o *MainCollection) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*MainCollection) GetDescriptionOk

func (o *MainCollection) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCollection) GetName

func (o *MainCollection) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*MainCollection) GetNameOk

func (o *MainCollection) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCollection) GetUserId

func (o *MainCollection) GetUserId() int32

GetUserId returns the UserId field value if set, zero value otherwise.

func (*MainCollection) GetUserIdOk

func (o *MainCollection) GetUserIdOk() (*int32, bool)

GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCollection) GetUuid

func (o *MainCollection) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*MainCollection) GetUuidOk

func (o *MainCollection) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCollection) HasCid

func (o *MainCollection) HasCid() bool

HasCid returns a boolean if a field has been set.

func (*MainCollection) HasCreatedAt

func (o *MainCollection) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*MainCollection) HasDescription

func (o *MainCollection) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*MainCollection) HasName

func (o *MainCollection) HasName() bool

HasName returns a boolean if a field has been set.

func (*MainCollection) HasUserId

func (o *MainCollection) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (*MainCollection) HasUuid

func (o *MainCollection) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (MainCollection) MarshalJSON

func (o MainCollection) MarshalJSON() ([]byte, error)

func (*MainCollection) SetCid

func (o *MainCollection) SetCid(v string)

SetCid gets a reference to the given string and assigns it to the Cid field.

func (*MainCollection) SetCreatedAt

func (o *MainCollection) SetCreatedAt(v string)

SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.

func (*MainCollection) SetDescription

func (o *MainCollection) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*MainCollection) SetName

func (o *MainCollection) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*MainCollection) SetUserId

func (o *MainCollection) SetUserId(v int32)

SetUserId gets a reference to the given int32 and assigns it to the UserId field.

func (*MainCollection) SetUuid

func (o *MainCollection) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

type MainCreateCollectionBody

type MainCreateCollectionBody struct {
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
}

MainCreateCollectionBody struct for MainCreateCollectionBody

func NewMainCreateCollectionBody

func NewMainCreateCollectionBody() *MainCreateCollectionBody

NewMainCreateCollectionBody instantiates a new MainCreateCollectionBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainCreateCollectionBodyWithDefaults

func NewMainCreateCollectionBodyWithDefaults() *MainCreateCollectionBody

NewMainCreateCollectionBodyWithDefaults instantiates a new MainCreateCollectionBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainCreateCollectionBody) GetDescription

func (o *MainCreateCollectionBody) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*MainCreateCollectionBody) GetDescriptionOk

func (o *MainCreateCollectionBody) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCreateCollectionBody) GetName

func (o *MainCreateCollectionBody) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*MainCreateCollectionBody) GetNameOk

func (o *MainCreateCollectionBody) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainCreateCollectionBody) HasDescription

func (o *MainCreateCollectionBody) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*MainCreateCollectionBody) HasName

func (o *MainCreateCollectionBody) HasName() bool

HasName returns a boolean if a field has been set.

func (MainCreateCollectionBody) MarshalJSON

func (o MainCreateCollectionBody) MarshalJSON() ([]byte, error)

func (*MainCreateCollectionBody) SetDescription

func (o *MainCreateCollectionBody) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*MainCreateCollectionBody) SetName

func (o *MainCreateCollectionBody) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type MainEstimateDealBody

type MainEstimateDealBody struct {
	DurationBlks *int32 `json:"durationBlks,omitempty"`
	Replication  *int32 `json:"replication,omitempty"`
	Size         *int32 `json:"size,omitempty"`
	Verified     *bool  `json:"verified,omitempty"`
}

MainEstimateDealBody struct for MainEstimateDealBody

func NewMainEstimateDealBody

func NewMainEstimateDealBody() *MainEstimateDealBody

NewMainEstimateDealBody instantiates a new MainEstimateDealBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainEstimateDealBodyWithDefaults

func NewMainEstimateDealBodyWithDefaults() *MainEstimateDealBody

NewMainEstimateDealBodyWithDefaults instantiates a new MainEstimateDealBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainEstimateDealBody) GetDurationBlks

func (o *MainEstimateDealBody) GetDurationBlks() int32

GetDurationBlks returns the DurationBlks field value if set, zero value otherwise.

func (*MainEstimateDealBody) GetDurationBlksOk

func (o *MainEstimateDealBody) GetDurationBlksOk() (*int32, bool)

GetDurationBlksOk returns a tuple with the DurationBlks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainEstimateDealBody) GetReplication

func (o *MainEstimateDealBody) GetReplication() int32

GetReplication returns the Replication field value if set, zero value otherwise.

func (*MainEstimateDealBody) GetReplicationOk

func (o *MainEstimateDealBody) GetReplicationOk() (*int32, bool)

GetReplicationOk returns a tuple with the Replication field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainEstimateDealBody) GetSize

func (o *MainEstimateDealBody) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*MainEstimateDealBody) GetSizeOk

func (o *MainEstimateDealBody) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainEstimateDealBody) GetVerified

func (o *MainEstimateDealBody) GetVerified() bool

GetVerified returns the Verified field value if set, zero value otherwise.

func (*MainEstimateDealBody) GetVerifiedOk

func (o *MainEstimateDealBody) GetVerifiedOk() (*bool, bool)

GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainEstimateDealBody) HasDurationBlks

func (o *MainEstimateDealBody) HasDurationBlks() bool

HasDurationBlks returns a boolean if a field has been set.

func (*MainEstimateDealBody) HasReplication

func (o *MainEstimateDealBody) HasReplication() bool

HasReplication returns a boolean if a field has been set.

func (*MainEstimateDealBody) HasSize

func (o *MainEstimateDealBody) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*MainEstimateDealBody) HasVerified

func (o *MainEstimateDealBody) HasVerified() bool

HasVerified returns a boolean if a field has been set.

func (MainEstimateDealBody) MarshalJSON

func (o MainEstimateDealBody) MarshalJSON() ([]byte, error)

func (*MainEstimateDealBody) SetDurationBlks

func (o *MainEstimateDealBody) SetDurationBlks(v int32)

SetDurationBlks gets a reference to the given int32 and assigns it to the DurationBlks field.

func (*MainEstimateDealBody) SetReplication

func (o *MainEstimateDealBody) SetReplication(v int32)

SetReplication gets a reference to the given int32 and assigns it to the Replication field.

func (*MainEstimateDealBody) SetSize

func (o *MainEstimateDealBody) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (*MainEstimateDealBody) SetVerified

func (o *MainEstimateDealBody) SetVerified(v bool)

SetVerified gets a reference to the given bool and assigns it to the Verified field.

type MainGetApiKeysResp

type MainGetApiKeysResp struct {
	Expiry *string `json:"expiry,omitempty"`
	Token  *string `json:"token,omitempty"`
}

MainGetApiKeysResp struct for MainGetApiKeysResp

func NewMainGetApiKeysResp

func NewMainGetApiKeysResp() *MainGetApiKeysResp

NewMainGetApiKeysResp instantiates a new MainGetApiKeysResp object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainGetApiKeysRespWithDefaults

func NewMainGetApiKeysRespWithDefaults() *MainGetApiKeysResp

NewMainGetApiKeysRespWithDefaults instantiates a new MainGetApiKeysResp object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainGetApiKeysResp) GetExpiry

func (o *MainGetApiKeysResp) GetExpiry() string

GetExpiry returns the Expiry field value if set, zero value otherwise.

func (*MainGetApiKeysResp) GetExpiryOk

func (o *MainGetApiKeysResp) GetExpiryOk() (*string, bool)

GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainGetApiKeysResp) GetToken

func (o *MainGetApiKeysResp) GetToken() string

GetToken returns the Token field value if set, zero value otherwise.

func (*MainGetApiKeysResp) GetTokenOk

func (o *MainGetApiKeysResp) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainGetApiKeysResp) HasExpiry

func (o *MainGetApiKeysResp) HasExpiry() bool

HasExpiry returns a boolean if a field has been set.

func (*MainGetApiKeysResp) HasToken

func (o *MainGetApiKeysResp) HasToken() bool

HasToken returns a boolean if a field has been set.

func (MainGetApiKeysResp) MarshalJSON

func (o MainGetApiKeysResp) MarshalJSON() ([]byte, error)

func (*MainGetApiKeysResp) SetExpiry

func (o *MainGetApiKeysResp) SetExpiry(v string)

SetExpiry gets a reference to the given string and assigns it to the Expiry field.

func (*MainGetApiKeysResp) SetToken

func (o *MainGetApiKeysResp) SetToken(v string)

SetToken gets a reference to the given string and assigns it to the Token field.

type MainImportDealBody

type MainImportDealBody struct {
	Coluuid *string `json:"coluuid,omitempty"`
	DealIDs []int32 `json:"dealIDs,omitempty"`
	Dir     *string `json:"dir,omitempty"`
	Name    *string `json:"name,omitempty"`
}

MainImportDealBody struct for MainImportDealBody

func NewMainImportDealBody

func NewMainImportDealBody() *MainImportDealBody

NewMainImportDealBody instantiates a new MainImportDealBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainImportDealBodyWithDefaults

func NewMainImportDealBodyWithDefaults() *MainImportDealBody

NewMainImportDealBodyWithDefaults instantiates a new MainImportDealBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainImportDealBody) GetColuuid

func (o *MainImportDealBody) GetColuuid() string

GetColuuid returns the Coluuid field value if set, zero value otherwise.

func (*MainImportDealBody) GetColuuidOk

func (o *MainImportDealBody) GetColuuidOk() (*string, bool)

GetColuuidOk returns a tuple with the Coluuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainImportDealBody) GetDealIDs

func (o *MainImportDealBody) GetDealIDs() []int32

GetDealIDs returns the DealIDs field value if set, zero value otherwise.

func (*MainImportDealBody) GetDealIDsOk

func (o *MainImportDealBody) GetDealIDsOk() ([]int32, bool)

GetDealIDsOk returns a tuple with the DealIDs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainImportDealBody) GetDir

func (o *MainImportDealBody) GetDir() string

GetDir returns the Dir field value if set, zero value otherwise.

func (*MainImportDealBody) GetDirOk

func (o *MainImportDealBody) GetDirOk() (*string, bool)

GetDirOk returns a tuple with the Dir field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainImportDealBody) GetName

func (o *MainImportDealBody) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*MainImportDealBody) GetNameOk

func (o *MainImportDealBody) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainImportDealBody) HasColuuid

func (o *MainImportDealBody) HasColuuid() bool

HasColuuid returns a boolean if a field has been set.

func (*MainImportDealBody) HasDealIDs

func (o *MainImportDealBody) HasDealIDs() bool

HasDealIDs returns a boolean if a field has been set.

func (*MainImportDealBody) HasDir

func (o *MainImportDealBody) HasDir() bool

HasDir returns a boolean if a field has been set.

func (*MainImportDealBody) HasName

func (o *MainImportDealBody) HasName() bool

HasName returns a boolean if a field has been set.

func (MainImportDealBody) MarshalJSON

func (o MainImportDealBody) MarshalJSON() ([]byte, error)

func (*MainImportDealBody) SetColuuid

func (o *MainImportDealBody) SetColuuid(v string)

SetColuuid gets a reference to the given string and assigns it to the Coluuid field.

func (*MainImportDealBody) SetDealIDs

func (o *MainImportDealBody) SetDealIDs(v []int32)

SetDealIDs gets a reference to the given []int32 and assigns it to the DealIDs field.

func (*MainImportDealBody) SetDir

func (o *MainImportDealBody) SetDir(v string)

SetDir gets a reference to the given string and assigns it to the Dir field.

func (*MainImportDealBody) SetName

func (o *MainImportDealBody) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type MainUserStatsResponse

type MainUserStatsResponse struct {
	NumPins   *int32 `json:"numPins,omitempty"`
	TotalSize *int32 `json:"totalSize,omitempty"`
}

MainUserStatsResponse struct for MainUserStatsResponse

func NewMainUserStatsResponse

func NewMainUserStatsResponse() *MainUserStatsResponse

NewMainUserStatsResponse instantiates a new MainUserStatsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMainUserStatsResponseWithDefaults

func NewMainUserStatsResponseWithDefaults() *MainUserStatsResponse

NewMainUserStatsResponseWithDefaults instantiates a new MainUserStatsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MainUserStatsResponse) GetNumPins

func (o *MainUserStatsResponse) GetNumPins() int32

GetNumPins returns the NumPins field value if set, zero value otherwise.

func (*MainUserStatsResponse) GetNumPinsOk

func (o *MainUserStatsResponse) GetNumPinsOk() (*int32, bool)

GetNumPinsOk returns a tuple with the NumPins field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainUserStatsResponse) GetTotalSize

func (o *MainUserStatsResponse) GetTotalSize() int32

GetTotalSize returns the TotalSize field value if set, zero value otherwise.

func (*MainUserStatsResponse) GetTotalSizeOk

func (o *MainUserStatsResponse) GetTotalSizeOk() (*int32, bool)

GetTotalSizeOk returns a tuple with the TotalSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MainUserStatsResponse) HasNumPins

func (o *MainUserStatsResponse) HasNumPins() bool

HasNumPins returns a boolean if a field has been set.

func (*MainUserStatsResponse) HasTotalSize

func (o *MainUserStatsResponse) HasTotalSize() bool

HasTotalSize returns a boolean if a field has been set.

func (MainUserStatsResponse) MarshalJSON

func (o MainUserStatsResponse) MarshalJSON() ([]byte, error)

func (*MainUserStatsResponse) SetNumPins

func (o *MainUserStatsResponse) SetNumPins(v int32)

SetNumPins gets a reference to the given int32 and assigns it to the NumPins field.

func (*MainUserStatsResponse) SetTotalSize

func (o *MainUserStatsResponse) SetTotalSize(v int32)

SetTotalSize gets a reference to the given int32 and assigns it to the TotalSize field.

type MetricsApiService

type MetricsApiService service

MetricsApiService MetricsApi service

func (*MetricsApiService) PublicMetricsDealsOnChainGet

func (a *MetricsApiService) PublicMetricsDealsOnChainGet(ctx context.Context) ApiPublicMetricsDealsOnChainGetRequest

PublicMetricsDealsOnChainGet Get deal metrics

This endpoint is used to get deal metrics

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicMetricsDealsOnChainGetRequest

func (*MetricsApiService) PublicMetricsDealsOnChainGetExecute

func (a *MetricsApiService) PublicMetricsDealsOnChainGetExecute(r ApiPublicMetricsDealsOnChainGetRequest) (*http.Response, error)

Execute executes the request

type MinerApiService

type MinerApiService service

MinerApiService MinerApi service

func (*MinerApiService) PublicMinersDealsMinerGet

func (a *MinerApiService) PublicMinersDealsMinerGet(ctx context.Context, miner string) ApiPublicMinersDealsMinerGetRequest

PublicMinersDealsMinerGet Get all miners deals

This endpoint returns all miners deals

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner Filter by miner
@return ApiPublicMinersDealsMinerGetRequest

func (*MinerApiService) PublicMinersDealsMinerGetExecute

func (a *MinerApiService) PublicMinersDealsMinerGetExecute(r ApiPublicMinersDealsMinerGetRequest) (*http.Response, error)

Execute executes the request

func (*MinerApiService) PublicMinersStatsMinerGet

func (a *MinerApiService) PublicMinersStatsMinerGet(ctx context.Context, miner string) ApiPublicMinersStatsMinerGetRequest

PublicMinersStatsMinerGet Get miner stats

This endpoint returns miner stats

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner Filter by miner
@return ApiPublicMinersStatsMinerGetRequest

func (*MinerApiService) PublicMinersStatsMinerGetExecute

func (a *MinerApiService) PublicMinersStatsMinerGetExecute(r ApiPublicMinersStatsMinerGetRequest) (*http.Response, error)

Execute executes the request

type NetApiService

type NetApiService service

NetApiService NetApi service

func (*NetApiService) NetAddrsGet

func (a *NetApiService) NetAddrsGet(ctx context.Context) ApiNetAddrsGetRequest

NetAddrsGet Net Addrs

This endpoint is used to get net addrs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiNetAddrsGetRequest

func (*NetApiService) NetAddrsGetExecute

func (a *NetApiService) NetAddrsGetExecute(r ApiNetAddrsGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*NetApiService) PublicMinersFailuresMinerGet

func (a *NetApiService) PublicMinersFailuresMinerGet(ctx context.Context) ApiPublicMinersFailuresMinerGetRequest

PublicMinersFailuresMinerGet Get all miners

This endpoint returns all miners

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicMinersFailuresMinerGetRequest

func (*NetApiService) PublicMinersFailuresMinerGetExecute

func (a *NetApiService) PublicMinersFailuresMinerGetExecute(r ApiPublicMinersFailuresMinerGetRequest) (*http.Response, error)

Execute executes the request

func (*NetApiService) PublicMinersGet

func (a *NetApiService) PublicMinersGet(ctx context.Context) ApiPublicMinersGetRequest

PublicMinersGet Get all miners

This endpoint returns all miners

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicMinersGetRequest

func (*NetApiService) PublicMinersGetExecute

func (a *NetApiService) PublicMinersGetExecute(r ApiPublicMinersGetRequest) (*http.Response, error)

Execute executes the request

func (*NetApiService) PublicNetAddrsGet

func (a *NetApiService) PublicNetAddrsGet(ctx context.Context) ApiPublicNetAddrsGetRequest

PublicNetAddrsGet Net Addrs

This endpoint is used to get net addrs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicNetAddrsGetRequest

func (*NetApiService) PublicNetAddrsGetExecute

func (a *NetApiService) PublicNetAddrsGetExecute(r ApiPublicNetAddrsGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*NetApiService) PublicNetPeersGet

func (a *NetApiService) PublicNetPeersGet(ctx context.Context) ApiPublicNetPeersGetRequest

PublicNetPeersGet Net Peers

This endpoint is used to get net peers

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicNetPeersGetRequest

func (*NetApiService) PublicNetPeersGetExecute

func (a *NetApiService) PublicNetPeersGetExecute(r ApiPublicNetPeersGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableMainAddContentToCollectionParams

type NullableMainAddContentToCollectionParams struct {
	// contains filtered or unexported fields
}

func (NullableMainAddContentToCollectionParams) Get

func (NullableMainAddContentToCollectionParams) IsSet

func (NullableMainAddContentToCollectionParams) MarshalJSON

func (*NullableMainAddContentToCollectionParams) Set

func (*NullableMainAddContentToCollectionParams) UnmarshalJSON

func (v *NullableMainAddContentToCollectionParams) UnmarshalJSON(src []byte) error

func (*NullableMainAddContentToCollectionParams) Unset

type NullableMainCollection

type NullableMainCollection struct {
	// contains filtered or unexported fields
}

func NewNullableMainCollection

func NewNullableMainCollection(val *MainCollection) *NullableMainCollection

func (NullableMainCollection) Get

func (NullableMainCollection) IsSet

func (v NullableMainCollection) IsSet() bool

func (NullableMainCollection) MarshalJSON

func (v NullableMainCollection) MarshalJSON() ([]byte, error)

func (*NullableMainCollection) Set

func (*NullableMainCollection) UnmarshalJSON

func (v *NullableMainCollection) UnmarshalJSON(src []byte) error

func (*NullableMainCollection) Unset

func (v *NullableMainCollection) Unset()

type NullableMainCreateCollectionBody

type NullableMainCreateCollectionBody struct {
	// contains filtered or unexported fields
}

func (NullableMainCreateCollectionBody) Get

func (NullableMainCreateCollectionBody) IsSet

func (NullableMainCreateCollectionBody) MarshalJSON

func (v NullableMainCreateCollectionBody) MarshalJSON() ([]byte, error)

func (*NullableMainCreateCollectionBody) Set

func (*NullableMainCreateCollectionBody) UnmarshalJSON

func (v *NullableMainCreateCollectionBody) UnmarshalJSON(src []byte) error

func (*NullableMainCreateCollectionBody) Unset

type NullableMainEstimateDealBody

type NullableMainEstimateDealBody struct {
	// contains filtered or unexported fields
}

func NewNullableMainEstimateDealBody

func NewNullableMainEstimateDealBody(val *MainEstimateDealBody) *NullableMainEstimateDealBody

func (NullableMainEstimateDealBody) Get

func (NullableMainEstimateDealBody) IsSet

func (NullableMainEstimateDealBody) MarshalJSON

func (v NullableMainEstimateDealBody) MarshalJSON() ([]byte, error)

func (*NullableMainEstimateDealBody) Set

func (*NullableMainEstimateDealBody) UnmarshalJSON

func (v *NullableMainEstimateDealBody) UnmarshalJSON(src []byte) error

func (*NullableMainEstimateDealBody) Unset

func (v *NullableMainEstimateDealBody) Unset()

type NullableMainGetApiKeysResp

type NullableMainGetApiKeysResp struct {
	// contains filtered or unexported fields
}

func NewNullableMainGetApiKeysResp

func NewNullableMainGetApiKeysResp(val *MainGetApiKeysResp) *NullableMainGetApiKeysResp

func (NullableMainGetApiKeysResp) Get

func (NullableMainGetApiKeysResp) IsSet

func (v NullableMainGetApiKeysResp) IsSet() bool

func (NullableMainGetApiKeysResp) MarshalJSON

func (v NullableMainGetApiKeysResp) MarshalJSON() ([]byte, error)

func (*NullableMainGetApiKeysResp) Set

func (*NullableMainGetApiKeysResp) UnmarshalJSON

func (v *NullableMainGetApiKeysResp) UnmarshalJSON(src []byte) error

func (*NullableMainGetApiKeysResp) Unset

func (v *NullableMainGetApiKeysResp) Unset()

type NullableMainImportDealBody

type NullableMainImportDealBody struct {
	// contains filtered or unexported fields
}

func NewNullableMainImportDealBody

func NewNullableMainImportDealBody(val *MainImportDealBody) *NullableMainImportDealBody

func (NullableMainImportDealBody) Get

func (NullableMainImportDealBody) IsSet

func (v NullableMainImportDealBody) IsSet() bool

func (NullableMainImportDealBody) MarshalJSON

func (v NullableMainImportDealBody) MarshalJSON() ([]byte, error)

func (*NullableMainImportDealBody) Set

func (*NullableMainImportDealBody) UnmarshalJSON

func (v *NullableMainImportDealBody) UnmarshalJSON(src []byte) error

func (*NullableMainImportDealBody) Unset

func (v *NullableMainImportDealBody) Unset()

type NullableMainUserStatsResponse

type NullableMainUserStatsResponse struct {
	// contains filtered or unexported fields
}

func (NullableMainUserStatsResponse) Get

func (NullableMainUserStatsResponse) IsSet

func (NullableMainUserStatsResponse) MarshalJSON

func (v NullableMainUserStatsResponse) MarshalJSON() ([]byte, error)

func (*NullableMainUserStatsResponse) Set

func (*NullableMainUserStatsResponse) UnmarshalJSON

func (v *NullableMainUserStatsResponse) UnmarshalJSON(src []byte) error

func (*NullableMainUserStatsResponse) Unset

func (v *NullableMainUserStatsResponse) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUtilContentAddIpfsBody

type NullableUtilContentAddIpfsBody struct {
	// contains filtered or unexported fields
}

func (NullableUtilContentAddIpfsBody) Get

func (NullableUtilContentAddIpfsBody) IsSet

func (NullableUtilContentAddIpfsBody) MarshalJSON

func (v NullableUtilContentAddIpfsBody) MarshalJSON() ([]byte, error)

func (*NullableUtilContentAddIpfsBody) Set

func (*NullableUtilContentAddIpfsBody) UnmarshalJSON

func (v *NullableUtilContentAddIpfsBody) UnmarshalJSON(src []byte) error

func (*NullableUtilContentAddIpfsBody) Unset

func (v *NullableUtilContentAddIpfsBody) Unset()

type NullableUtilHttpError

type NullableUtilHttpError struct {
	// contains filtered or unexported fields
}

func NewNullableUtilHttpError

func NewNullableUtilHttpError(val *UtilHttpError) *NullableUtilHttpError

func (NullableUtilHttpError) Get

func (NullableUtilHttpError) IsSet

func (v NullableUtilHttpError) IsSet() bool

func (NullableUtilHttpError) MarshalJSON

func (v NullableUtilHttpError) MarshalJSON() ([]byte, error)

func (*NullableUtilHttpError) Set

func (v *NullableUtilHttpError) Set(val *UtilHttpError)

func (*NullableUtilHttpError) UnmarshalJSON

func (v *NullableUtilHttpError) UnmarshalJSON(src []byte) error

func (*NullableUtilHttpError) Unset

func (v *NullableUtilHttpError) Unset()

type PeersApiService

type PeersApiService service

PeersApiService PeersApi service

func (*PeersApiService) AdminPeeringPeersDelete

func (a *PeersApiService) AdminPeeringPeersDelete(ctx context.Context) ApiAdminPeeringPeersDeleteRequest

AdminPeeringPeersDelete Remove peers on Peering Service

This endpoint can be used to remove a Peer from the Peering Service

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminPeeringPeersDeleteRequest

func (*PeersApiService) AdminPeeringPeersDeleteExecute

func (a *PeersApiService) AdminPeeringPeersDeleteExecute(r ApiAdminPeeringPeersDeleteRequest) (*http.Response, error)

Execute executes the request

func (*PeersApiService) AdminPeeringPeersGet

func (a *PeersApiService) AdminPeeringPeersGet(ctx context.Context) ApiAdminPeeringPeersGetRequest

AdminPeeringPeersGet List all Peering peers

This endpoint can be used to list all peers on Peering Service

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminPeeringPeersGetRequest

func (*PeersApiService) AdminPeeringPeersGetExecute

func (a *PeersApiService) AdminPeeringPeersGetExecute(r ApiAdminPeeringPeersGetRequest) (*http.Response, error)

Execute executes the request

func (*PeersApiService) AdminPeeringPeersPost

func (a *PeersApiService) AdminPeeringPeersPost(ctx context.Context) ApiAdminPeeringPeersPostRequest

AdminPeeringPeersPost Add peers on Peering Service

This endpoint can be used to add a Peer from the Peering Service

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminPeeringPeersPostRequest

func (*PeersApiService) AdminPeeringPeersPostExecute

func (a *PeersApiService) AdminPeeringPeersPostExecute(r ApiAdminPeeringPeersPostRequest) (*http.Response, error)

Execute executes the request

func (*PeersApiService) AdminPeeringStartPost

func (a *PeersApiService) AdminPeeringStartPost(ctx context.Context) ApiAdminPeeringStartPostRequest

AdminPeeringStartPost Start Peering

This endpoint can be used to start the Peering Service

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminPeeringStartPostRequest

func (*PeersApiService) AdminPeeringStartPostExecute

func (a *PeersApiService) AdminPeeringStartPostExecute(r ApiAdminPeeringStartPostRequest) (*http.Response, error)

Execute executes the request

func (*PeersApiService) AdminPeeringStatusGet

func (a *PeersApiService) AdminPeeringStatusGet(ctx context.Context) ApiAdminPeeringStatusGetRequest

AdminPeeringStatusGet Check Peering Status

This endpoint can be used to check the Peering status

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminPeeringStatusGetRequest

func (*PeersApiService) AdminPeeringStatusGetExecute

func (a *PeersApiService) AdminPeeringStatusGetExecute(r ApiAdminPeeringStatusGetRequest) (*http.Response, error)

Execute executes the request

func (*PeersApiService) AdminPeeringStopPost

func (a *PeersApiService) AdminPeeringStopPost(ctx context.Context) ApiAdminPeeringStopPostRequest

AdminPeeringStopPost Stop Peering

This endpoint can be used to stop the Peering Service

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAdminPeeringStopPostRequest

func (*PeersApiService) AdminPeeringStopPostExecute

func (a *PeersApiService) AdminPeeringStopPostExecute(r ApiAdminPeeringStopPostRequest) (*http.Response, error)

Execute executes the request

type PinningApiService

type PinningApiService service

PinningApiService PinningApi service

func (*PinningApiService) PinningPinsGet

PinningPinsGet List all pin status objects

This endpoint lists all pin status objects

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPinningPinsGetRequest

func (*PinningApiService) PinningPinsGetExecute

func (a *PinningApiService) PinningPinsGetExecute(r ApiPinningPinsGetRequest) (*http.Response, error)

Execute executes the request

func (*PinningApiService) PinningPinsPinidDelete

func (a *PinningApiService) PinningPinsPinidDelete(ctx context.Context, pinid string) ApiPinningPinsPinidDeleteRequest

PinningPinsPinidDelete Delete a pinned object

This endpoint deletes a pinned object.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pinid Pin ID
@return ApiPinningPinsPinidDeleteRequest

func (*PinningApiService) PinningPinsPinidDeleteExecute

func (a *PinningApiService) PinningPinsPinidDeleteExecute(r ApiPinningPinsPinidDeleteRequest) (*http.Response, error)

Execute executes the request

func (*PinningApiService) PinningPinsPinidGet

func (a *PinningApiService) PinningPinsPinidGet(ctx context.Context, pinid string) ApiPinningPinsPinidGetRequest

PinningPinsPinidGet Get a pin status object

This endpoint returns a pin status object.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pinid cid
@return ApiPinningPinsPinidGetRequest

func (*PinningApiService) PinningPinsPinidGetExecute

func (a *PinningApiService) PinningPinsPinidGetExecute(r ApiPinningPinsPinidGetRequest) (*http.Response, error)

Execute executes the request

func (*PinningApiService) PinningPinsPinidPost

func (a *PinningApiService) PinningPinsPinidPost(ctx context.Context, pinid string) ApiPinningPinsPinidPostRequest

PinningPinsPinidPost Replace a pinned object

This endpoint replaces a pinned object.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pinid Pin ID
@return ApiPinningPinsPinidPostRequest

func (*PinningApiService) PinningPinsPinidPostExecute

func (a *PinningApiService) PinningPinsPinidPostExecute(r ApiPinningPinsPinidPostRequest) (*http.Response, error)

Execute executes the request

func (*PinningApiService) PinningPinsPost

func (a *PinningApiService) PinningPinsPost(ctx context.Context, cid string, name string) ApiPinningPinsPostRequest

PinningPinsPost Add and pin object

This endpoint adds a pin to the IPFS daemon.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cid cid
@param name name
@return ApiPinningPinsPostRequest

func (*PinningApiService) PinningPinsPostExecute

func (a *PinningApiService) PinningPinsPostExecute(r ApiPinningPinsPostRequest) (*http.Response, error)

Execute executes the request

type PublicApiService

type PublicApiService service

PublicApiService PublicApi service

func (*PublicApiService) PublicByCidCidGet

func (a *PublicApiService) PublicByCidCidGet(ctx context.Context, cid string) ApiPublicByCidCidGetRequest

PublicByCidCidGet Get Content by Cid

This endpoint returns the content associated with a CID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param cid Cid
@return ApiPublicByCidCidGetRequest

func (*PublicApiService) PublicByCidCidGetExecute

func (a *PublicApiService) PublicByCidCidGetExecute(r ApiPublicByCidCidGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicInfoGet

PublicInfoGet Get public node info

This endpoint returns information about the node

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicInfoGetRequest

func (*PublicApiService) PublicInfoGetExecute

func (a *PublicApiService) PublicInfoGetExecute(r ApiPublicInfoGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicMetricsDealsOnChainGet

func (a *PublicApiService) PublicMetricsDealsOnChainGet(ctx context.Context) ApiPublicMetricsDealsOnChainGetRequest

PublicMetricsDealsOnChainGet Get deal metrics

This endpoint is used to get deal metrics

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicMetricsDealsOnChainGetRequest

func (*PublicApiService) PublicMetricsDealsOnChainGetExecute

func (a *PublicApiService) PublicMetricsDealsOnChainGetExecute(r ApiPublicMetricsDealsOnChainGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicMinersDealsMinerGet

func (a *PublicApiService) PublicMinersDealsMinerGet(ctx context.Context, miner string) ApiPublicMinersDealsMinerGetRequest

PublicMinersDealsMinerGet Get all miners deals

This endpoint returns all miners deals

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner Filter by miner
@return ApiPublicMinersDealsMinerGetRequest

func (*PublicApiService) PublicMinersDealsMinerGetExecute

func (a *PublicApiService) PublicMinersDealsMinerGetExecute(r ApiPublicMinersDealsMinerGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicMinersFailuresMinerGet

func (a *PublicApiService) PublicMinersFailuresMinerGet(ctx context.Context) ApiPublicMinersFailuresMinerGetRequest

PublicMinersFailuresMinerGet Get all miners

This endpoint returns all miners

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicMinersFailuresMinerGetRequest

func (*PublicApiService) PublicMinersFailuresMinerGetExecute

func (a *PublicApiService) PublicMinersFailuresMinerGetExecute(r ApiPublicMinersFailuresMinerGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicMinersGet

PublicMinersGet Get all miners

This endpoint returns all miners

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicMinersGetRequest

func (*PublicApiService) PublicMinersGetExecute

func (a *PublicApiService) PublicMinersGetExecute(r ApiPublicMinersGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicMinersStatsMinerGet

func (a *PublicApiService) PublicMinersStatsMinerGet(ctx context.Context, miner string) ApiPublicMinersStatsMinerGetRequest

PublicMinersStatsMinerGet Get miner stats

This endpoint returns miner stats

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param miner Filter by miner
@return ApiPublicMinersStatsMinerGetRequest

func (*PublicApiService) PublicMinersStatsMinerGetExecute

func (a *PublicApiService) PublicMinersStatsMinerGetExecute(r ApiPublicMinersStatsMinerGetRequest) (*http.Response, error)

Execute executes the request

func (*PublicApiService) PublicNetAddrsGet

func (a *PublicApiService) PublicNetAddrsGet(ctx context.Context) ApiPublicNetAddrsGetRequest

PublicNetAddrsGet Net Addrs

This endpoint is used to get net addrs

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicNetAddrsGetRequest

func (*PublicApiService) PublicNetAddrsGetExecute

func (a *PublicApiService) PublicNetAddrsGetExecute(r ApiPublicNetAddrsGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*PublicApiService) PublicNetPeersGet

func (a *PublicApiService) PublicNetPeersGet(ctx context.Context) ApiPublicNetPeersGetRequest

PublicNetPeersGet Net Peers

This endpoint is used to get net peers

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicNetPeersGetRequest

func (*PublicApiService) PublicNetPeersGetExecute

func (a *PublicApiService) PublicNetPeersGetExecute(r ApiPublicNetPeersGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*PublicApiService) PublicStatsGet

PublicStatsGet Public stats

This endpoint is used to get public stats.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPublicStatsGetRequest

func (*PublicApiService) PublicStatsGetExecute

func (a *PublicApiService) PublicStatsGetExecute(r ApiPublicStatsGetRequest) (*http.Response, error)

Execute executes the request

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type UserApiService

type UserApiService service

UserApiService UserApi service

func (*UserApiService) UserApiKeysGet

func (a *UserApiService) UserApiKeysGet(ctx context.Context) ApiUserApiKeysGetRequest

UserApiKeysGet Get API keys for a user

This endpoint is used to get API keys for a user. In estuary, each user can be given multiple API keys (tokens). This endpoint can be used to retrieve all available API keys for a given user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserApiKeysGetRequest

func (*UserApiService) UserApiKeysGetExecute

func (a *UserApiService) UserApiKeysGetExecute(r ApiUserApiKeysGetRequest) ([]MainGetApiKeysResp, *http.Response, error)

Execute executes the request

@return []MainGetApiKeysResp

func (*UserApiService) UserApiKeysKeyDelete

func (a *UserApiService) UserApiKeysKeyDelete(ctx context.Context, key string) ApiUserApiKeysKeyDeleteRequest

UserApiKeysKeyDelete Revoke a User API Key.

This endpoint is used to revoke a user API key. In estuary, every user is assigned with an API key, this API key is generated and issued for each user and is primarily use to access all estuary features. This endpoint can be used to revoke the API key thats assigned to the user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param key Key
@return ApiUserApiKeysKeyDeleteRequest

func (*UserApiService) UserApiKeysKeyDeleteExecute

func (a *UserApiService) UserApiKeysKeyDeleteExecute(r ApiUserApiKeysKeyDeleteRequest) (*http.Response, error)

Execute executes the request

func (*UserApiService) UserApiKeysPost

func (a *UserApiService) UserApiKeysPost(ctx context.Context) ApiUserApiKeysPostRequest

UserApiKeysPost Create API keys for a user

This endpoint is used to create API keys for a user. In estuary, each user is given an API key to access all features.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserApiKeysPostRequest

func (*UserApiService) UserApiKeysPostExecute

Execute executes the request

@return MainGetApiKeysResp

func (*UserApiService) UserExportGet

func (a *UserApiService) UserExportGet(ctx context.Context) ApiUserExportGetRequest

UserExportGet Export user data

This endpoint is used to get API keys for a user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserExportGetRequest

func (*UserApiService) UserExportGetExecute

func (a *UserApiService) UserExportGetExecute(r ApiUserExportGetRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*UserApiService) UserStatsGet

UserStatsGet Create API keys for a user

This endpoint is used to create API keys for a user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserStatsGetRequest

func (*UserApiService) UserStatsGetExecute

Execute executes the request

@return MainUserStatsResponse

type UtilContentAddIpfsBody

type UtilContentAddIpfsBody struct {
	Coluuid  *string  `json:"coluuid,omitempty"`
	Dir      *string  `json:"dir,omitempty"`
	Filename *string  `json:"filename,omitempty"`
	Peers    []string `json:"peers,omitempty"`
	Root     *string  `json:"root,omitempty"`
}

UtilContentAddIpfsBody struct for UtilContentAddIpfsBody

func NewUtilContentAddIpfsBody

func NewUtilContentAddIpfsBody() *UtilContentAddIpfsBody

NewUtilContentAddIpfsBody instantiates a new UtilContentAddIpfsBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUtilContentAddIpfsBodyWithDefaults

func NewUtilContentAddIpfsBodyWithDefaults() *UtilContentAddIpfsBody

NewUtilContentAddIpfsBodyWithDefaults instantiates a new UtilContentAddIpfsBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UtilContentAddIpfsBody) GetColuuid

func (o *UtilContentAddIpfsBody) GetColuuid() string

GetColuuid returns the Coluuid field value if set, zero value otherwise.

func (*UtilContentAddIpfsBody) GetColuuidOk

func (o *UtilContentAddIpfsBody) GetColuuidOk() (*string, bool)

GetColuuidOk returns a tuple with the Coluuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilContentAddIpfsBody) GetDir

func (o *UtilContentAddIpfsBody) GetDir() string

GetDir returns the Dir field value if set, zero value otherwise.

func (*UtilContentAddIpfsBody) GetDirOk

func (o *UtilContentAddIpfsBody) GetDirOk() (*string, bool)

GetDirOk returns a tuple with the Dir field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilContentAddIpfsBody) GetFilename

func (o *UtilContentAddIpfsBody) GetFilename() string

GetFilename returns the Filename field value if set, zero value otherwise.

func (*UtilContentAddIpfsBody) GetFilenameOk

func (o *UtilContentAddIpfsBody) GetFilenameOk() (*string, bool)

GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilContentAddIpfsBody) GetPeers

func (o *UtilContentAddIpfsBody) GetPeers() []string

GetPeers returns the Peers field value if set, zero value otherwise.

func (*UtilContentAddIpfsBody) GetPeersOk

func (o *UtilContentAddIpfsBody) GetPeersOk() ([]string, bool)

GetPeersOk returns a tuple with the Peers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilContentAddIpfsBody) GetRoot

func (o *UtilContentAddIpfsBody) GetRoot() string

GetRoot returns the Root field value if set, zero value otherwise.

func (*UtilContentAddIpfsBody) GetRootOk

func (o *UtilContentAddIpfsBody) GetRootOk() (*string, bool)

GetRootOk returns a tuple with the Root field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilContentAddIpfsBody) HasColuuid

func (o *UtilContentAddIpfsBody) HasColuuid() bool

HasColuuid returns a boolean if a field has been set.

func (*UtilContentAddIpfsBody) HasDir

func (o *UtilContentAddIpfsBody) HasDir() bool

HasDir returns a boolean if a field has been set.

func (*UtilContentAddIpfsBody) HasFilename

func (o *UtilContentAddIpfsBody) HasFilename() bool

HasFilename returns a boolean if a field has been set.

func (*UtilContentAddIpfsBody) HasPeers

func (o *UtilContentAddIpfsBody) HasPeers() bool

HasPeers returns a boolean if a field has been set.

func (*UtilContentAddIpfsBody) HasRoot

func (o *UtilContentAddIpfsBody) HasRoot() bool

HasRoot returns a boolean if a field has been set.

func (UtilContentAddIpfsBody) MarshalJSON

func (o UtilContentAddIpfsBody) MarshalJSON() ([]byte, error)

func (*UtilContentAddIpfsBody) SetColuuid

func (o *UtilContentAddIpfsBody) SetColuuid(v string)

SetColuuid gets a reference to the given string and assigns it to the Coluuid field.

func (*UtilContentAddIpfsBody) SetDir

func (o *UtilContentAddIpfsBody) SetDir(v string)

SetDir gets a reference to the given string and assigns it to the Dir field.

func (*UtilContentAddIpfsBody) SetFilename

func (o *UtilContentAddIpfsBody) SetFilename(v string)

SetFilename gets a reference to the given string and assigns it to the Filename field.

func (*UtilContentAddIpfsBody) SetPeers

func (o *UtilContentAddIpfsBody) SetPeers(v []string)

SetPeers gets a reference to the given []string and assigns it to the Peers field.

func (*UtilContentAddIpfsBody) SetRoot

func (o *UtilContentAddIpfsBody) SetRoot(v string)

SetRoot gets a reference to the given string and assigns it to the Root field.

type UtilHttpError

type UtilHttpError struct {
	Code    *int32  `json:"code,omitempty"`
	Details *string `json:"details,omitempty"`
	Reason  *string `json:"reason,omitempty"`
}

UtilHttpError struct for UtilHttpError

func NewUtilHttpError

func NewUtilHttpError() *UtilHttpError

NewUtilHttpError instantiates a new UtilHttpError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUtilHttpErrorWithDefaults

func NewUtilHttpErrorWithDefaults() *UtilHttpError

NewUtilHttpErrorWithDefaults instantiates a new UtilHttpError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UtilHttpError) GetCode

func (o *UtilHttpError) GetCode() int32

GetCode returns the Code field value if set, zero value otherwise.

func (*UtilHttpError) GetCodeOk

func (o *UtilHttpError) GetCodeOk() (*int32, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilHttpError) GetDetails

func (o *UtilHttpError) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*UtilHttpError) GetDetailsOk

func (o *UtilHttpError) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilHttpError) GetReason

func (o *UtilHttpError) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*UtilHttpError) GetReasonOk

func (o *UtilHttpError) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UtilHttpError) HasCode

func (o *UtilHttpError) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*UtilHttpError) HasDetails

func (o *UtilHttpError) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*UtilHttpError) HasReason

func (o *UtilHttpError) HasReason() bool

HasReason returns a boolean if a field has been set.

func (UtilHttpError) MarshalJSON

func (o UtilHttpError) MarshalJSON() ([]byte, error)

func (*UtilHttpError) SetCode

func (o *UtilHttpError) SetCode(v int32)

SetCode gets a reference to the given int32 and assigns it to the Code field.

func (*UtilHttpError) SetDetails

func (o *UtilHttpError) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*UtilHttpError) SetReason

func (o *UtilHttpError) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

Jump to

Keyboard shortcuts

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