Documentation ¶
Index ¶
- type Client
- func (a *Client) GetRenter(params *GetRenterParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterOK, error)
- func (a *Client) GetRenterBackup(params *GetRenterBackupParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterBackupOK, error)
- func (a *Client) GetRenterContracts(params *GetRenterContractsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterContractsOK, error)
- func (a *Client) GetRenterDirSiapath(params *GetRenterDirSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDirSiapathOK, error)
- func (a *Client) GetRenterDownloadSiapath(params *GetRenterDownloadSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadSiapathNoContent, error)
- func (a *Client) GetRenterDownloadasyncSiapath(params *GetRenterDownloadasyncSiapathParams, ...) (*GetRenterDownloadasyncSiapathNoContent, error)
- func (a *Client) GetRenterDownloads(params *GetRenterDownloadsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadsOK, error)
- func (a *Client) GetRenterFileSiapath(params *GetRenterFileSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterFileSiapathOK, error)
- func (a *Client) GetRenterFiles(params *GetRenterFilesParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterFilesOK, error)
- func (a *Client) GetRenterPrices(params *GetRenterPricesParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterPricesOK, error)
- func (a *Client) GetRenterStreamSiapath(params *GetRenterStreamSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterStreamSiapathOK, error)
- func (a *Client) PostRenter(params *PostRenterParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterNoContent, error)
- func (a *Client) PostRenterBackupsCreate(params *PostRenterBackupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterBackupsCreateNoContent, error)
- func (a *Client) PostRenterBackupsRestore(params *PostRenterBackupsRestoreParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterBackupsRestoreNoContent, error)
- func (a *Client) PostRenterDeleteSiapath(params *PostRenterDeleteSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDeleteSiapathNoContent, error)
- func (a *Client) PostRenterDirSiapath(params *PostRenterDirSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDirSiapathNoContent, error)
- func (a *Client) PostRenterDownloadsClear(params *PostRenterDownloadsClearParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDownloadsClearNoContent, error)
- func (a *Client) PostRenterRenameSiapath(params *PostRenterRenameSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterRenameSiapathNoContent, error)
- func (a *Client) PostRenterUploadSiapath(params *PostRenterUploadSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterUploadSiapathNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetRenterBackupDefault
- type GetRenterBackupOK
- type GetRenterBackupOKBody
- type GetRenterBackupOKBodyBackupsItems0
- func (o *GetRenterBackupOKBodyBackupsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterBackupOKBodyBackupsItems0) MarshalBinary() ([]byte, error)
- func (o *GetRenterBackupOKBodyBackupsItems0) UnmarshalBinary(b []byte) error
- func (o *GetRenterBackupOKBodyBackupsItems0) Validate(formats strfmt.Registry) error
- type GetRenterBackupOKBodySyncedhostsItems0
- func (o *GetRenterBackupOKBodySyncedhostsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterBackupOKBodySyncedhostsItems0) MarshalBinary() ([]byte, error)
- func (o *GetRenterBackupOKBodySyncedhostsItems0) UnmarshalBinary(b []byte) error
- func (o *GetRenterBackupOKBodySyncedhostsItems0) Validate(formats strfmt.Registry) error
- type GetRenterBackupOKBodyUnsyncedhostsItems0
- func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) MarshalBinary() ([]byte, error)
- func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) UnmarshalBinary(b []byte) error
- func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) Validate(formats strfmt.Registry) error
- type GetRenterBackupParams
- func NewGetRenterBackupParams() *GetRenterBackupParams
- func NewGetRenterBackupParamsWithContext(ctx context.Context) *GetRenterBackupParams
- func NewGetRenterBackupParamsWithHTTPClient(client *http.Client) *GetRenterBackupParams
- func NewGetRenterBackupParamsWithTimeout(timeout time.Duration) *GetRenterBackupParams
- func (o *GetRenterBackupParams) SetContext(ctx context.Context)
- func (o *GetRenterBackupParams) SetDefaults()
- func (o *GetRenterBackupParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterBackupParams) SetHost(host *string)
- func (o *GetRenterBackupParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterBackupParams) WithContext(ctx context.Context) *GetRenterBackupParams
- func (o *GetRenterBackupParams) WithDefaults() *GetRenterBackupParams
- func (o *GetRenterBackupParams) WithHTTPClient(client *http.Client) *GetRenterBackupParams
- func (o *GetRenterBackupParams) WithHost(host *string) *GetRenterBackupParams
- func (o *GetRenterBackupParams) WithTimeout(timeout time.Duration) *GetRenterBackupParams
- func (o *GetRenterBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterBackupReader
- type GetRenterContractsDefault
- type GetRenterContractsOK
- type GetRenterContractsOKBody
- func (o *GetRenterContractsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterContractsOKBody) MarshalBinary() ([]byte, error)
- func (o *GetRenterContractsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetRenterContractsOKBody) Validate(formats strfmt.Registry) error
- type GetRenterContractsOKBodyContractsItems0
- func (o *GetRenterContractsOKBodyContractsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterContractsOKBodyContractsItems0) MarshalBinary() ([]byte, error)
- func (o *GetRenterContractsOKBodyContractsItems0) UnmarshalBinary(b []byte) error
- func (o *GetRenterContractsOKBodyContractsItems0) Validate(formats strfmt.Registry) error
- type GetRenterContractsOKBodyContractsItems0Hostpublickey
- func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) MarshalBinary() ([]byte, error)
- func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) UnmarshalBinary(b []byte) error
- func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) Validate(formats strfmt.Registry) error
- type GetRenterContractsParams
- func NewGetRenterContractsParams() *GetRenterContractsParams
- func NewGetRenterContractsParamsWithContext(ctx context.Context) *GetRenterContractsParams
- func NewGetRenterContractsParamsWithHTTPClient(client *http.Client) *GetRenterContractsParams
- func NewGetRenterContractsParamsWithTimeout(timeout time.Duration) *GetRenterContractsParams
- func (o *GetRenterContractsParams) SetContext(ctx context.Context)
- func (o *GetRenterContractsParams) SetDefaults()
- func (o *GetRenterContractsParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterContractsParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterContractsParams) WithContext(ctx context.Context) *GetRenterContractsParams
- func (o *GetRenterContractsParams) WithDefaults() *GetRenterContractsParams
- func (o *GetRenterContractsParams) WithHTTPClient(client *http.Client) *GetRenterContractsParams
- func (o *GetRenterContractsParams) WithTimeout(timeout time.Duration) *GetRenterContractsParams
- func (o *GetRenterContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterContractsReader
- type GetRenterDefault
- type GetRenterDirSiapathDefault
- type GetRenterDirSiapathOK
- type GetRenterDirSiapathOKBody
- func (o *GetRenterDirSiapathOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterDirSiapathOKBody) MarshalBinary() ([]byte, error)
- func (o *GetRenterDirSiapathOKBody) UnmarshalBinary(b []byte) error
- func (o *GetRenterDirSiapathOKBody) Validate(formats strfmt.Registry) error
- type GetRenterDirSiapathOKBodyDirectoriesItems0
- func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) MarshalBinary() ([]byte, error)
- func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) UnmarshalBinary(b []byte) error
- func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) Validate(formats strfmt.Registry) error
- type GetRenterDirSiapathParams
- func NewGetRenterDirSiapathParams() *GetRenterDirSiapathParams
- func NewGetRenterDirSiapathParamsWithContext(ctx context.Context) *GetRenterDirSiapathParams
- func NewGetRenterDirSiapathParamsWithHTTPClient(client *http.Client) *GetRenterDirSiapathParams
- func NewGetRenterDirSiapathParamsWithTimeout(timeout time.Duration) *GetRenterDirSiapathParams
- func (o *GetRenterDirSiapathParams) SetContext(ctx context.Context)
- func (o *GetRenterDirSiapathParams) SetDefaults()
- func (o *GetRenterDirSiapathParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterDirSiapathParams) SetSiapath(siapath string)
- func (o *GetRenterDirSiapathParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterDirSiapathParams) WithContext(ctx context.Context) *GetRenterDirSiapathParams
- func (o *GetRenterDirSiapathParams) WithDefaults() *GetRenterDirSiapathParams
- func (o *GetRenterDirSiapathParams) WithHTTPClient(client *http.Client) *GetRenterDirSiapathParams
- func (o *GetRenterDirSiapathParams) WithSiapath(siapath string) *GetRenterDirSiapathParams
- func (o *GetRenterDirSiapathParams) WithTimeout(timeout time.Duration) *GetRenterDirSiapathParams
- func (o *GetRenterDirSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterDirSiapathReader
- type GetRenterDownloadSiapathDefault
- type GetRenterDownloadSiapathNoContent
- type GetRenterDownloadSiapathParams
- func NewGetRenterDownloadSiapathParams() *GetRenterDownloadSiapathParams
- func NewGetRenterDownloadSiapathParamsWithContext(ctx context.Context) *GetRenterDownloadSiapathParams
- func NewGetRenterDownloadSiapathParamsWithHTTPClient(client *http.Client) *GetRenterDownloadSiapathParams
- func NewGetRenterDownloadSiapathParamsWithTimeout(timeout time.Duration) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) SetAsync(async *bool)
- func (o *GetRenterDownloadSiapathParams) SetContext(ctx context.Context)
- func (o *GetRenterDownloadSiapathParams) SetDefaults()
- func (o *GetRenterDownloadSiapathParams) SetDestination(destination string)
- func (o *GetRenterDownloadSiapathParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterDownloadSiapathParams) SetHttpresp(httpresp *bool)
- func (o *GetRenterDownloadSiapathParams) SetLength(length *int64)
- func (o *GetRenterDownloadSiapathParams) SetOffset(offset *int64)
- func (o *GetRenterDownloadSiapathParams) SetSiapath(siapath string)
- func (o *GetRenterDownloadSiapathParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterDownloadSiapathParams) WithAsync(async *bool) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithContext(ctx context.Context) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithDefaults() *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithDestination(destination string) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithHTTPClient(client *http.Client) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithHttpresp(httpresp *bool) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithLength(length *int64) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithOffset(offset *int64) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithSiapath(siapath string) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WithTimeout(timeout time.Duration) *GetRenterDownloadSiapathParams
- func (o *GetRenterDownloadSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterDownloadSiapathReader
- type GetRenterDownloadasyncSiapathDefault
- type GetRenterDownloadasyncSiapathNoContent
- type GetRenterDownloadasyncSiapathParams
- func NewGetRenterDownloadasyncSiapathParams() *GetRenterDownloadasyncSiapathParams
- func NewGetRenterDownloadasyncSiapathParamsWithContext(ctx context.Context) *GetRenterDownloadasyncSiapathParams
- func NewGetRenterDownloadasyncSiapathParamsWithHTTPClient(client *http.Client) *GetRenterDownloadasyncSiapathParams
- func NewGetRenterDownloadasyncSiapathParamsWithTimeout(timeout time.Duration) *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) SetContext(ctx context.Context)
- func (o *GetRenterDownloadasyncSiapathParams) SetDefaults()
- func (o *GetRenterDownloadasyncSiapathParams) SetDestination(destination string)
- func (o *GetRenterDownloadasyncSiapathParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterDownloadasyncSiapathParams) SetSiapath(siapath string)
- func (o *GetRenterDownloadasyncSiapathParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterDownloadasyncSiapathParams) WithContext(ctx context.Context) *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) WithDefaults() *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) WithDestination(destination string) *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) WithHTTPClient(client *http.Client) *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) WithSiapath(siapath string) *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) WithTimeout(timeout time.Duration) *GetRenterDownloadasyncSiapathParams
- func (o *GetRenterDownloadasyncSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterDownloadasyncSiapathReader
- type GetRenterDownloadsDefault
- type GetRenterDownloadsOK
- type GetRenterDownloadsOKBody
- func (o *GetRenterDownloadsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterDownloadsOKBody) MarshalBinary() ([]byte, error)
- func (o *GetRenterDownloadsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetRenterDownloadsOKBody) Validate(formats strfmt.Registry) error
- type GetRenterDownloadsOKBodyDownloadsItems0
- func (o *GetRenterDownloadsOKBodyDownloadsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterDownloadsOKBodyDownloadsItems0) MarshalBinary() ([]byte, error)
- func (o *GetRenterDownloadsOKBodyDownloadsItems0) UnmarshalBinary(b []byte) error
- func (o *GetRenterDownloadsOKBodyDownloadsItems0) Validate(formats strfmt.Registry) error
- type GetRenterDownloadsParams
- func NewGetRenterDownloadsParams() *GetRenterDownloadsParams
- func NewGetRenterDownloadsParamsWithContext(ctx context.Context) *GetRenterDownloadsParams
- func NewGetRenterDownloadsParamsWithHTTPClient(client *http.Client) *GetRenterDownloadsParams
- func NewGetRenterDownloadsParamsWithTimeout(timeout time.Duration) *GetRenterDownloadsParams
- func (o *GetRenterDownloadsParams) SetContext(ctx context.Context)
- func (o *GetRenterDownloadsParams) SetDefaults()
- func (o *GetRenterDownloadsParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterDownloadsParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterDownloadsParams) WithContext(ctx context.Context) *GetRenterDownloadsParams
- func (o *GetRenterDownloadsParams) WithDefaults() *GetRenterDownloadsParams
- func (o *GetRenterDownloadsParams) WithHTTPClient(client *http.Client) *GetRenterDownloadsParams
- func (o *GetRenterDownloadsParams) WithTimeout(timeout time.Duration) *GetRenterDownloadsParams
- func (o *GetRenterDownloadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterDownloadsReader
- type GetRenterFileSiapathDefault
- type GetRenterFileSiapathOK
- type GetRenterFileSiapathOKBody
- func (o *GetRenterFileSiapathOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterFileSiapathOKBody) MarshalBinary() ([]byte, error)
- func (o *GetRenterFileSiapathOKBody) UnmarshalBinary(b []byte) error
- func (o *GetRenterFileSiapathOKBody) Validate(formats strfmt.Registry) error
- type GetRenterFileSiapathParams
- func NewGetRenterFileSiapathParams() *GetRenterFileSiapathParams
- func NewGetRenterFileSiapathParamsWithContext(ctx context.Context) *GetRenterFileSiapathParams
- func NewGetRenterFileSiapathParamsWithHTTPClient(client *http.Client) *GetRenterFileSiapathParams
- func NewGetRenterFileSiapathParamsWithTimeout(timeout time.Duration) *GetRenterFileSiapathParams
- func (o *GetRenterFileSiapathParams) SetContext(ctx context.Context)
- func (o *GetRenterFileSiapathParams) SetDefaults()
- func (o *GetRenterFileSiapathParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterFileSiapathParams) SetSiapath(siapath string)
- func (o *GetRenterFileSiapathParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterFileSiapathParams) WithContext(ctx context.Context) *GetRenterFileSiapathParams
- func (o *GetRenterFileSiapathParams) WithDefaults() *GetRenterFileSiapathParams
- func (o *GetRenterFileSiapathParams) WithHTTPClient(client *http.Client) *GetRenterFileSiapathParams
- func (o *GetRenterFileSiapathParams) WithSiapath(siapath string) *GetRenterFileSiapathParams
- func (o *GetRenterFileSiapathParams) WithTimeout(timeout time.Duration) *GetRenterFileSiapathParams
- func (o *GetRenterFileSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterFileSiapathReader
- type GetRenterFilesDefault
- type GetRenterFilesOK
- type GetRenterFilesOKBody
- type GetRenterFilesParams
- func NewGetRenterFilesParams() *GetRenterFilesParams
- func NewGetRenterFilesParamsWithContext(ctx context.Context) *GetRenterFilesParams
- func NewGetRenterFilesParamsWithHTTPClient(client *http.Client) *GetRenterFilesParams
- func NewGetRenterFilesParamsWithTimeout(timeout time.Duration) *GetRenterFilesParams
- func (o *GetRenterFilesParams) SetContext(ctx context.Context)
- func (o *GetRenterFilesParams) SetDefaults()
- func (o *GetRenterFilesParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterFilesParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterFilesParams) WithContext(ctx context.Context) *GetRenterFilesParams
- func (o *GetRenterFilesParams) WithDefaults() *GetRenterFilesParams
- func (o *GetRenterFilesParams) WithHTTPClient(client *http.Client) *GetRenterFilesParams
- func (o *GetRenterFilesParams) WithTimeout(timeout time.Duration) *GetRenterFilesParams
- func (o *GetRenterFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterFilesReader
- type GetRenterOK
- type GetRenterOKBody
- type GetRenterOKBodyFinancialmetrics
- func (o *GetRenterOKBodyFinancialmetrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterOKBodyFinancialmetrics) MarshalBinary() ([]byte, error)
- func (o *GetRenterOKBodyFinancialmetrics) UnmarshalBinary(b []byte) error
- func (o *GetRenterOKBodyFinancialmetrics) Validate(formats strfmt.Registry) error
- type GetRenterOKBodySettings
- func (o *GetRenterOKBodySettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterOKBodySettings) MarshalBinary() ([]byte, error)
- func (o *GetRenterOKBodySettings) UnmarshalBinary(b []byte) error
- func (o *GetRenterOKBodySettings) Validate(formats strfmt.Registry) error
- type GetRenterOKBodySettingsAllowance
- func (o *GetRenterOKBodySettingsAllowance) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRenterOKBodySettingsAllowance) MarshalBinary() ([]byte, error)
- func (o *GetRenterOKBodySettingsAllowance) UnmarshalBinary(b []byte) error
- func (o *GetRenterOKBodySettingsAllowance) Validate(formats strfmt.Registry) error
- type GetRenterParams
- func (o *GetRenterParams) SetContext(ctx context.Context)
- func (o *GetRenterParams) SetDefaults()
- func (o *GetRenterParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterParams) WithContext(ctx context.Context) *GetRenterParams
- func (o *GetRenterParams) WithDefaults() *GetRenterParams
- func (o *GetRenterParams) WithHTTPClient(client *http.Client) *GetRenterParams
- func (o *GetRenterParams) WithTimeout(timeout time.Duration) *GetRenterParams
- func (o *GetRenterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterPricesDefault
- type GetRenterPricesOK
- type GetRenterPricesOKBody
- type GetRenterPricesParams
- func NewGetRenterPricesParams() *GetRenterPricesParams
- func NewGetRenterPricesParamsWithContext(ctx context.Context) *GetRenterPricesParams
- func NewGetRenterPricesParamsWithHTTPClient(client *http.Client) *GetRenterPricesParams
- func NewGetRenterPricesParamsWithTimeout(timeout time.Duration) *GetRenterPricesParams
- func (o *GetRenterPricesParams) SetContext(ctx context.Context)
- func (o *GetRenterPricesParams) SetDefaults()
- func (o *GetRenterPricesParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterPricesParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterPricesParams) WithContext(ctx context.Context) *GetRenterPricesParams
- func (o *GetRenterPricesParams) WithDefaults() *GetRenterPricesParams
- func (o *GetRenterPricesParams) WithHTTPClient(client *http.Client) *GetRenterPricesParams
- func (o *GetRenterPricesParams) WithTimeout(timeout time.Duration) *GetRenterPricesParams
- func (o *GetRenterPricesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterPricesReader
- type GetRenterReader
- type GetRenterStreamSiapathDefault
- type GetRenterStreamSiapathOK
- type GetRenterStreamSiapathParams
- func NewGetRenterStreamSiapathParams() *GetRenterStreamSiapathParams
- func NewGetRenterStreamSiapathParamsWithContext(ctx context.Context) *GetRenterStreamSiapathParams
- func NewGetRenterStreamSiapathParamsWithHTTPClient(client *http.Client) *GetRenterStreamSiapathParams
- func NewGetRenterStreamSiapathParamsWithTimeout(timeout time.Duration) *GetRenterStreamSiapathParams
- func (o *GetRenterStreamSiapathParams) SetContext(ctx context.Context)
- func (o *GetRenterStreamSiapathParams) SetDefaults()
- func (o *GetRenterStreamSiapathParams) SetHTTPClient(client *http.Client)
- func (o *GetRenterStreamSiapathParams) SetSiapath(siapath string)
- func (o *GetRenterStreamSiapathParams) SetTimeout(timeout time.Duration)
- func (o *GetRenterStreamSiapathParams) WithContext(ctx context.Context) *GetRenterStreamSiapathParams
- func (o *GetRenterStreamSiapathParams) WithDefaults() *GetRenterStreamSiapathParams
- func (o *GetRenterStreamSiapathParams) WithHTTPClient(client *http.Client) *GetRenterStreamSiapathParams
- func (o *GetRenterStreamSiapathParams) WithSiapath(siapath string) *GetRenterStreamSiapathParams
- func (o *GetRenterStreamSiapathParams) WithTimeout(timeout time.Duration) *GetRenterStreamSiapathParams
- func (o *GetRenterStreamSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRenterStreamSiapathReader
- type PostRenterBackupsCreateDefault
- type PostRenterBackupsCreateNoContent
- type PostRenterBackupsCreateParams
- func NewPostRenterBackupsCreateParams() *PostRenterBackupsCreateParams
- func NewPostRenterBackupsCreateParamsWithContext(ctx context.Context) *PostRenterBackupsCreateParams
- func NewPostRenterBackupsCreateParamsWithHTTPClient(client *http.Client) *PostRenterBackupsCreateParams
- func NewPostRenterBackupsCreateParamsWithTimeout(timeout time.Duration) *PostRenterBackupsCreateParams
- func (o *PostRenterBackupsCreateParams) SetContext(ctx context.Context)
- func (o *PostRenterBackupsCreateParams) SetDefaults()
- func (o *PostRenterBackupsCreateParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterBackupsCreateParams) SetName(name string)
- func (o *PostRenterBackupsCreateParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterBackupsCreateParams) WithContext(ctx context.Context) *PostRenterBackupsCreateParams
- func (o *PostRenterBackupsCreateParams) WithDefaults() *PostRenterBackupsCreateParams
- func (o *PostRenterBackupsCreateParams) WithHTTPClient(client *http.Client) *PostRenterBackupsCreateParams
- func (o *PostRenterBackupsCreateParams) WithName(name string) *PostRenterBackupsCreateParams
- func (o *PostRenterBackupsCreateParams) WithTimeout(timeout time.Duration) *PostRenterBackupsCreateParams
- func (o *PostRenterBackupsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterBackupsCreateReader
- type PostRenterBackupsRestoreDefault
- type PostRenterBackupsRestoreNoContent
- type PostRenterBackupsRestoreParams
- func NewPostRenterBackupsRestoreParams() *PostRenterBackupsRestoreParams
- func NewPostRenterBackupsRestoreParamsWithContext(ctx context.Context) *PostRenterBackupsRestoreParams
- func NewPostRenterBackupsRestoreParamsWithHTTPClient(client *http.Client) *PostRenterBackupsRestoreParams
- func NewPostRenterBackupsRestoreParamsWithTimeout(timeout time.Duration) *PostRenterBackupsRestoreParams
- func (o *PostRenterBackupsRestoreParams) SetContext(ctx context.Context)
- func (o *PostRenterBackupsRestoreParams) SetDefaults()
- func (o *PostRenterBackupsRestoreParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterBackupsRestoreParams) SetName(name string)
- func (o *PostRenterBackupsRestoreParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterBackupsRestoreParams) WithContext(ctx context.Context) *PostRenterBackupsRestoreParams
- func (o *PostRenterBackupsRestoreParams) WithDefaults() *PostRenterBackupsRestoreParams
- func (o *PostRenterBackupsRestoreParams) WithHTTPClient(client *http.Client) *PostRenterBackupsRestoreParams
- func (o *PostRenterBackupsRestoreParams) WithName(name string) *PostRenterBackupsRestoreParams
- func (o *PostRenterBackupsRestoreParams) WithTimeout(timeout time.Duration) *PostRenterBackupsRestoreParams
- func (o *PostRenterBackupsRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterBackupsRestoreReader
- type PostRenterDefault
- type PostRenterDeleteSiapathDefault
- type PostRenterDeleteSiapathNoContent
- type PostRenterDeleteSiapathParams
- func NewPostRenterDeleteSiapathParams() *PostRenterDeleteSiapathParams
- func NewPostRenterDeleteSiapathParamsWithContext(ctx context.Context) *PostRenterDeleteSiapathParams
- func NewPostRenterDeleteSiapathParamsWithHTTPClient(client *http.Client) *PostRenterDeleteSiapathParams
- func NewPostRenterDeleteSiapathParamsWithTimeout(timeout time.Duration) *PostRenterDeleteSiapathParams
- func (o *PostRenterDeleteSiapathParams) SetContext(ctx context.Context)
- func (o *PostRenterDeleteSiapathParams) SetDefaults()
- func (o *PostRenterDeleteSiapathParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterDeleteSiapathParams) SetSiapath(siapath string)
- func (o *PostRenterDeleteSiapathParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterDeleteSiapathParams) WithContext(ctx context.Context) *PostRenterDeleteSiapathParams
- func (o *PostRenterDeleteSiapathParams) WithDefaults() *PostRenterDeleteSiapathParams
- func (o *PostRenterDeleteSiapathParams) WithHTTPClient(client *http.Client) *PostRenterDeleteSiapathParams
- func (o *PostRenterDeleteSiapathParams) WithSiapath(siapath string) *PostRenterDeleteSiapathParams
- func (o *PostRenterDeleteSiapathParams) WithTimeout(timeout time.Duration) *PostRenterDeleteSiapathParams
- func (o *PostRenterDeleteSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterDeleteSiapathReader
- type PostRenterDirSiapathDefault
- type PostRenterDirSiapathNoContent
- type PostRenterDirSiapathParams
- func NewPostRenterDirSiapathParams() *PostRenterDirSiapathParams
- func NewPostRenterDirSiapathParamsWithContext(ctx context.Context) *PostRenterDirSiapathParams
- func NewPostRenterDirSiapathParamsWithHTTPClient(client *http.Client) *PostRenterDirSiapathParams
- func NewPostRenterDirSiapathParamsWithTimeout(timeout time.Duration) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) SetAction(action string)
- func (o *PostRenterDirSiapathParams) SetContext(ctx context.Context)
- func (o *PostRenterDirSiapathParams) SetDefaults()
- func (o *PostRenterDirSiapathParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterDirSiapathParams) SetNewsiapath(newsiapath *string)
- func (o *PostRenterDirSiapathParams) SetSiapath(siapath string)
- func (o *PostRenterDirSiapathParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterDirSiapathParams) WithAction(action string) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WithContext(ctx context.Context) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WithDefaults() *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WithHTTPClient(client *http.Client) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WithNewsiapath(newsiapath *string) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WithSiapath(siapath string) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WithTimeout(timeout time.Duration) *PostRenterDirSiapathParams
- func (o *PostRenterDirSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterDirSiapathReader
- type PostRenterDownloadsClearDefault
- type PostRenterDownloadsClearNoContent
- type PostRenterDownloadsClearParams
- func NewPostRenterDownloadsClearParams() *PostRenterDownloadsClearParams
- func NewPostRenterDownloadsClearParamsWithContext(ctx context.Context) *PostRenterDownloadsClearParams
- func NewPostRenterDownloadsClearParamsWithHTTPClient(client *http.Client) *PostRenterDownloadsClearParams
- func NewPostRenterDownloadsClearParamsWithTimeout(timeout time.Duration) *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) SetAfter(after *int64)
- func (o *PostRenterDownloadsClearParams) SetBefore(before *int64)
- func (o *PostRenterDownloadsClearParams) SetContext(ctx context.Context)
- func (o *PostRenterDownloadsClearParams) SetDefaults()
- func (o *PostRenterDownloadsClearParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterDownloadsClearParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterDownloadsClearParams) WithAfter(after *int64) *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) WithBefore(before *int64) *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) WithContext(ctx context.Context) *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) WithDefaults() *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) WithHTTPClient(client *http.Client) *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) WithTimeout(timeout time.Duration) *PostRenterDownloadsClearParams
- func (o *PostRenterDownloadsClearParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterDownloadsClearReader
- type PostRenterNoContent
- type PostRenterParams
- func (o *PostRenterParams) SetContext(ctx context.Context)
- func (o *PostRenterParams) SetDefaults()
- func (o *PostRenterParams) SetFunds(funds *string)
- func (o *PostRenterParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterParams) SetHosts(hosts *int64)
- func (o *PostRenterParams) SetMaxdownloadspeed(maxdownloadspeed *int64)
- func (o *PostRenterParams) SetMaxuploadspeed(maxuploadspeed *int64)
- func (o *PostRenterParams) SetPeriod(period *int64)
- func (o *PostRenterParams) SetRenewwindow(renewwindow *int64)
- func (o *PostRenterParams) SetStreamcachesize(streamcachesize *int64)
- func (o *PostRenterParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterParams) WithContext(ctx context.Context) *PostRenterParams
- func (o *PostRenterParams) WithDefaults() *PostRenterParams
- func (o *PostRenterParams) WithFunds(funds *string) *PostRenterParams
- func (o *PostRenterParams) WithHTTPClient(client *http.Client) *PostRenterParams
- func (o *PostRenterParams) WithHosts(hosts *int64) *PostRenterParams
- func (o *PostRenterParams) WithMaxdownloadspeed(maxdownloadspeed *int64) *PostRenterParams
- func (o *PostRenterParams) WithMaxuploadspeed(maxuploadspeed *int64) *PostRenterParams
- func (o *PostRenterParams) WithPeriod(period *int64) *PostRenterParams
- func (o *PostRenterParams) WithRenewwindow(renewwindow *int64) *PostRenterParams
- func (o *PostRenterParams) WithStreamcachesize(streamcachesize *int64) *PostRenterParams
- func (o *PostRenterParams) WithTimeout(timeout time.Duration) *PostRenterParams
- func (o *PostRenterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterReader
- type PostRenterRenameSiapathDefault
- type PostRenterRenameSiapathNoContent
- type PostRenterRenameSiapathParams
- func NewPostRenterRenameSiapathParams() *PostRenterRenameSiapathParams
- func NewPostRenterRenameSiapathParamsWithContext(ctx context.Context) *PostRenterRenameSiapathParams
- func NewPostRenterRenameSiapathParamsWithHTTPClient(client *http.Client) *PostRenterRenameSiapathParams
- func NewPostRenterRenameSiapathParamsWithTimeout(timeout time.Duration) *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) SetContext(ctx context.Context)
- func (o *PostRenterRenameSiapathParams) SetDefaults()
- func (o *PostRenterRenameSiapathParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterRenameSiapathParams) SetNewsiapath(newsiapath string)
- func (o *PostRenterRenameSiapathParams) SetSiapath(siapath string)
- func (o *PostRenterRenameSiapathParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterRenameSiapathParams) WithContext(ctx context.Context) *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) WithDefaults() *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) WithHTTPClient(client *http.Client) *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) WithNewsiapath(newsiapath string) *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) WithSiapath(siapath string) *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) WithTimeout(timeout time.Duration) *PostRenterRenameSiapathParams
- func (o *PostRenterRenameSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterRenameSiapathReader
- type PostRenterUploadSiapathDefault
- type PostRenterUploadSiapathNoContent
- type PostRenterUploadSiapathParams
- func NewPostRenterUploadSiapathParams() *PostRenterUploadSiapathParams
- func NewPostRenterUploadSiapathParamsWithContext(ctx context.Context) *PostRenterUploadSiapathParams
- func NewPostRenterUploadSiapathParamsWithHTTPClient(client *http.Client) *PostRenterUploadSiapathParams
- func NewPostRenterUploadSiapathParamsWithTimeout(timeout time.Duration) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) SetContext(ctx context.Context)
- func (o *PostRenterUploadSiapathParams) SetDatapieces(datapieces *int64)
- func (o *PostRenterUploadSiapathParams) SetDefaults()
- func (o *PostRenterUploadSiapathParams) SetHTTPClient(client *http.Client)
- func (o *PostRenterUploadSiapathParams) SetParitypieces(paritypieces *int64)
- func (o *PostRenterUploadSiapathParams) SetSiapath(siapath string)
- func (o *PostRenterUploadSiapathParams) SetSource(source string)
- func (o *PostRenterUploadSiapathParams) SetTimeout(timeout time.Duration)
- func (o *PostRenterUploadSiapathParams) WithContext(ctx context.Context) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithDatapieces(datapieces *int64) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithDefaults() *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithHTTPClient(client *http.Client) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithParitypieces(paritypieces *int64) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithSiapath(siapath string) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithSource(source string) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WithTimeout(timeout time.Duration) *PostRenterUploadSiapathParams
- func (o *PostRenterUploadSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostRenterUploadSiapathReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for renter API
func (*Client) GetRenter ¶
func (a *Client) GetRenter(params *GetRenterParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterOK, error)
GetRenter returns the current settings along with metrics on the renter's spending.
func (*Client) GetRenterBackup ¶ added in v0.5.4
func (a *Client) GetRenterBackup(params *GetRenterBackupParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterBackupOK, error)
GetRenterBackup Lists backups.
func (*Client) GetRenterContracts ¶
func (a *Client) GetRenterContracts(params *GetRenterContractsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterContractsOK, error)
GetRenterContracts returns active contracts. Expired contracts are not included.
func (*Client) GetRenterDirSiapath ¶ added in v0.5.4
func (a *Client) GetRenterDirSiapath(params *GetRenterDirSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDirSiapathOK, error)
GetRenterDirSiapath retrieves the contents of a directory on the sia network
func (*Client) GetRenterDownloadSiapath ¶
func (a *Client) GetRenterDownloadSiapath(params *GetRenterDownloadSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadSiapathNoContent, error)
GetRenterDownloadSiapath downloads a file to the local filesystem. The call will block until the file has been downloaded.
func (*Client) GetRenterDownloadasyncSiapath ¶
func (a *Client) GetRenterDownloadasyncSiapath(params *GetRenterDownloadasyncSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadasyncSiapathNoContent, error)
GetRenterDownloadasyncSiapath downloads a file to the local filesystem. The call will return immediately.
func (*Client) GetRenterDownloads ¶
func (a *Client) GetRenterDownloads(params *GetRenterDownloadsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadsOK, error)
GetRenterDownloads lists all files in the download queue.
func (*Client) GetRenterFileSiapath ¶
func (a *Client) GetRenterFileSiapath(params *GetRenterFileSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterFileSiapathOK, error)
GetRenterFileSiapath lists the status of specified file.
func (*Client) GetRenterFiles ¶
func (a *Client) GetRenterFiles(params *GetRenterFilesParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterFilesOK, error)
GetRenterFiles lists the status of all files.
func (*Client) GetRenterPrices ¶
func (a *Client) GetRenterPrices(params *GetRenterPricesParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterPricesOK, error)
GetRenterPrices lists the estimated prices of performing various storage and data operations.
func (*Client) GetRenterStreamSiapath ¶
func (a *Client) GetRenterStreamSiapath(params *GetRenterStreamSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterStreamSiapathOK, error)
GetRenterStreamSiapath downloads a file using http streaming. This call blocks until the data is received. The streaming endpoint also uses caching internally to prevent siad from redownloading the same chunk multiple times when only parts of a file are requested at once. This might lead to a substantial increase in ram usage and therefore it is not recommended to stream multiple files in parallel at the moment. This restriction will be removed together with the caching once partial downloads are supported in the future.
func (*Client) PostRenter ¶
func (a *Client) PostRenter(params *PostRenterParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterNoContent, error)
PostRenter modify settings that control the renter's behavior.
func (*Client) PostRenterBackupsCreate ¶ added in v0.5.4
func (a *Client) PostRenterBackupsCreate(params *PostRenterBackupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterBackupsCreateNoContent, error)
PostRenterBackupsCreate Creates a backup of all siafiles.
func (*Client) PostRenterBackupsRestore ¶ added in v0.5.4
func (a *Client) PostRenterBackupsRestore(params *PostRenterBackupsRestoreParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterBackupsRestoreNoContent, error)
PostRenterBackupsRestore Restores siafiles from a backup.
func (*Client) PostRenterDeleteSiapath ¶
func (a *Client) PostRenterDeleteSiapath(params *PostRenterDeleteSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDeleteSiapathNoContent, error)
PostRenterDeleteSiapath deletes a renter file entry. Does not delete any downloads or original files, only the entry in the renter.
func (*Client) PostRenterDirSiapath ¶ added in v0.5.4
func (a *Client) PostRenterDirSiapath(params *PostRenterDirSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDirSiapathNoContent, error)
PostRenterDirSiapath performs various functions on the renter's directories
func (*Client) PostRenterDownloadsClear ¶ added in v0.5.4
func (a *Client) PostRenterDownloadsClear(params *PostRenterDownloadsClearParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDownloadsClearNoContent, error)
PostRenterDownloadsClear Clears the download history of the renter for a range of unix time stamps. Both parameters are optional, if no parameters are provided, the entire download history will be cleared. To clear a single download, provide the timestamp for the download as both parameters. Providing only the before parameter will clear all downloads older than the timestamp. Conversely, providing only the after parameter will clear all downloads newer than the timestamp.
func (*Client) PostRenterRenameSiapath ¶
func (a *Client) PostRenterRenameSiapath(params *PostRenterRenameSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterRenameSiapathNoContent, error)
PostRenterRenameSiapath renames a file. Does not rename any downloads or source files, only renames the entry in the renter. An error is returned if siapath does not exist or newsiapath already exists.
func (*Client) PostRenterUploadSiapath ¶
func (a *Client) PostRenterUploadSiapath(params *PostRenterUploadSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterUploadSiapathNoContent, error)
PostRenterUploadSiapath uploads a file to the network from the local filesystem.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶ added in v0.5.9
type ClientService interface { GetRenter(params *GetRenterParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterOK, error) GetRenterBackup(params *GetRenterBackupParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterBackupOK, error) GetRenterContracts(params *GetRenterContractsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterContractsOK, error) GetRenterDirSiapath(params *GetRenterDirSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDirSiapathOK, error) GetRenterDownloadSiapath(params *GetRenterDownloadSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadSiapathNoContent, error) GetRenterDownloadasyncSiapath(params *GetRenterDownloadasyncSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadasyncSiapathNoContent, error) GetRenterDownloads(params *GetRenterDownloadsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterDownloadsOK, error) GetRenterFileSiapath(params *GetRenterFileSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterFileSiapathOK, error) GetRenterFiles(params *GetRenterFilesParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterFilesOK, error) GetRenterPrices(params *GetRenterPricesParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterPricesOK, error) GetRenterStreamSiapath(params *GetRenterStreamSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenterStreamSiapathOK, error) PostRenter(params *PostRenterParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterNoContent, error) PostRenterBackupsCreate(params *PostRenterBackupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterBackupsCreateNoContent, error) PostRenterBackupsRestore(params *PostRenterBackupsRestoreParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterBackupsRestoreNoContent, error) PostRenterDeleteSiapath(params *PostRenterDeleteSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDeleteSiapathNoContent, error) PostRenterDirSiapath(params *PostRenterDirSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDirSiapathNoContent, error) PostRenterDownloadsClear(params *PostRenterDownloadsClearParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterDownloadsClearNoContent, error) PostRenterRenameSiapath(params *PostRenterRenameSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterRenameSiapathNoContent, error) PostRenterUploadSiapath(params *PostRenterUploadSiapathParams, authInfo runtime.ClientAuthInfoWriter) (*PostRenterUploadSiapathNoContent, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new renter API client.
type GetRenterBackupDefault ¶ added in v0.5.4
type GetRenterBackupDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterBackupDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterBackupDefault ¶ added in v0.5.4
func NewGetRenterBackupDefault(code int) *GetRenterBackupDefault
NewGetRenterBackupDefault creates a GetRenterBackupDefault with default headers values
func (*GetRenterBackupDefault) Code ¶ added in v0.5.4
func (o *GetRenterBackupDefault) Code() int
Code gets the status code for the get renter backup default response
func (*GetRenterBackupDefault) Error ¶ added in v0.5.4
func (o *GetRenterBackupDefault) Error() string
func (*GetRenterBackupDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterBackupDefault) GetPayload() *models.StandardError
type GetRenterBackupOK ¶ added in v0.5.4
type GetRenterBackupOK struct {
Payload *GetRenterBackupOKBody
}
GetRenterBackupOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterBackupOK ¶ added in v0.5.4
func NewGetRenterBackupOK() *GetRenterBackupOK
NewGetRenterBackupOK creates a GetRenterBackupOK with default headers values
func (*GetRenterBackupOK) Error ¶ added in v0.5.4
func (o *GetRenterBackupOK) Error() string
func (*GetRenterBackupOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterBackupOK) GetPayload() *GetRenterBackupOKBody
type GetRenterBackupOKBody ¶ added in v0.5.4
type GetRenterBackupOKBody struct { // backups Backups []*GetRenterBackupOKBodyBackupsItems0 `json:"backups"` // syncedhosts Syncedhosts []*GetRenterBackupOKBodySyncedhostsItems0 `json:"syncedhosts"` // unsyncedhosts Unsyncedhosts []*GetRenterBackupOKBodyUnsyncedhostsItems0 `json:"unsyncedhosts"` }
GetRenterBackupOKBody get renter backup o k body swagger:model GetRenterBackupOKBody
func (*GetRenterBackupOKBody) ContextValidate ¶ added in v0.5.9
ContextValidate validate this get renter backup o k body based on the context it is used
func (*GetRenterBackupOKBody) MarshalBinary ¶ added in v0.5.4
func (o *GetRenterBackupOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterBackupOKBody) UnmarshalBinary ¶ added in v0.5.4
func (o *GetRenterBackupOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterBackupOKBodyBackupsItems0 ¶ added in v0.5.9
type GetRenterBackupOKBodyBackupsItems0 struct { // creationdate Creationdate int64 `json:"creationdate,omitempty"` // name Name string `json:"name,omitempty"` // size Size int64 `json:"size,omitempty"` // uploadprogress Uploadprogress float64 `json:"uploadprogress,omitempty"` }
GetRenterBackupOKBodyBackupsItems0 get renter backup o k body backups items0 swagger:model GetRenterBackupOKBodyBackupsItems0
func (*GetRenterBackupOKBodyBackupsItems0) ContextValidate ¶ added in v0.5.9
func (o *GetRenterBackupOKBodyBackupsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter backup o k body backups items0 based on context it is used
func (*GetRenterBackupOKBodyBackupsItems0) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterBackupOKBodyBackupsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterBackupOKBodyBackupsItems0) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterBackupOKBodyBackupsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterBackupOKBodySyncedhostsItems0 ¶ added in v0.5.9
type GetRenterBackupOKBodySyncedhostsItems0 struct { // algorithm Algorithm string `json:"algorithm,omitempty"` // key Key string `json:"key,omitempty"` }
GetRenterBackupOKBodySyncedhostsItems0 get renter backup o k body syncedhosts items0 swagger:model GetRenterBackupOKBodySyncedhostsItems0
func (*GetRenterBackupOKBodySyncedhostsItems0) ContextValidate ¶ added in v0.5.9
func (o *GetRenterBackupOKBodySyncedhostsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter backup o k body syncedhosts items0 based on context it is used
func (*GetRenterBackupOKBodySyncedhostsItems0) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterBackupOKBodySyncedhostsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterBackupOKBodySyncedhostsItems0) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterBackupOKBodySyncedhostsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterBackupOKBodyUnsyncedhostsItems0 ¶ added in v0.5.9
type GetRenterBackupOKBodyUnsyncedhostsItems0 struct { // algorithm Algorithm string `json:"algorithm,omitempty"` // key Key string `json:"key,omitempty"` }
GetRenterBackupOKBodyUnsyncedhostsItems0 get renter backup o k body unsyncedhosts items0 swagger:model GetRenterBackupOKBodyUnsyncedhostsItems0
func (*GetRenterBackupOKBodyUnsyncedhostsItems0) ContextValidate ¶ added in v0.5.9
func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter backup o k body unsyncedhosts items0 based on context it is used
func (*GetRenterBackupOKBodyUnsyncedhostsItems0) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterBackupOKBodyUnsyncedhostsItems0) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterBackupOKBodyUnsyncedhostsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterBackupParams ¶ added in v0.5.4
type GetRenterBackupParams struct { /* Host. if requested, fetch the backups stored on a specific host */ Host *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterBackupParams contains all the parameters to send to the API endpoint
for the get renter backup operation. Typically these are written to a http.Request.
func NewGetRenterBackupParams ¶ added in v0.5.4
func NewGetRenterBackupParams() *GetRenterBackupParams
NewGetRenterBackupParams creates a new GetRenterBackupParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterBackupParamsWithContext ¶ added in v0.5.4
func NewGetRenterBackupParamsWithContext(ctx context.Context) *GetRenterBackupParams
NewGetRenterBackupParamsWithContext creates a new GetRenterBackupParams object with the ability to set a context for a request.
func NewGetRenterBackupParamsWithHTTPClient ¶ added in v0.5.4
func NewGetRenterBackupParamsWithHTTPClient(client *http.Client) *GetRenterBackupParams
NewGetRenterBackupParamsWithHTTPClient creates a new GetRenterBackupParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterBackupParamsWithTimeout ¶ added in v0.5.4
func NewGetRenterBackupParamsWithTimeout(timeout time.Duration) *GetRenterBackupParams
NewGetRenterBackupParamsWithTimeout creates a new GetRenterBackupParams object with the ability to set a timeout on a request.
func (*GetRenterBackupParams) SetContext ¶ added in v0.5.4
func (o *GetRenterBackupParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter backup params
func (*GetRenterBackupParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterBackupParams) SetDefaults()
SetDefaults hydrates default values in the get renter backup params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterBackupParams) SetHTTPClient ¶ added in v0.5.4
func (o *GetRenterBackupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter backup params
func (*GetRenterBackupParams) SetHost ¶ added in v0.5.4
func (o *GetRenterBackupParams) SetHost(host *string)
SetHost adds the host to the get renter backup params
func (*GetRenterBackupParams) SetTimeout ¶ added in v0.5.4
func (o *GetRenterBackupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter backup params
func (*GetRenterBackupParams) WithContext ¶ added in v0.5.4
func (o *GetRenterBackupParams) WithContext(ctx context.Context) *GetRenterBackupParams
WithContext adds the context to the get renter backup params
func (*GetRenterBackupParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterBackupParams) WithDefaults() *GetRenterBackupParams
WithDefaults hydrates default values in the get renter backup params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterBackupParams) WithHTTPClient ¶ added in v0.5.4
func (o *GetRenterBackupParams) WithHTTPClient(client *http.Client) *GetRenterBackupParams
WithHTTPClient adds the HTTPClient to the get renter backup params
func (*GetRenterBackupParams) WithHost ¶ added in v0.5.4
func (o *GetRenterBackupParams) WithHost(host *string) *GetRenterBackupParams
WithHost adds the host to the get renter backup params
func (*GetRenterBackupParams) WithTimeout ¶ added in v0.5.4
func (o *GetRenterBackupParams) WithTimeout(timeout time.Duration) *GetRenterBackupParams
WithTimeout adds the timeout to the get renter backup params
func (*GetRenterBackupParams) WriteToRequest ¶ added in v0.5.4
func (o *GetRenterBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterBackupReader ¶ added in v0.5.4
type GetRenterBackupReader struct {
// contains filtered or unexported fields
}
GetRenterBackupReader is a Reader for the GetRenterBackup structure.
func (*GetRenterBackupReader) ReadResponse ¶ added in v0.5.4
func (o *GetRenterBackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterContractsDefault ¶
type GetRenterContractsDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterContractsDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterContractsDefault ¶
func NewGetRenterContractsDefault(code int) *GetRenterContractsDefault
NewGetRenterContractsDefault creates a GetRenterContractsDefault with default headers values
func (*GetRenterContractsDefault) Code ¶
func (o *GetRenterContractsDefault) Code() int
Code gets the status code for the get renter contracts default response
func (*GetRenterContractsDefault) Error ¶
func (o *GetRenterContractsDefault) Error() string
func (*GetRenterContractsDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterContractsDefault) GetPayload() *models.StandardError
type GetRenterContractsOK ¶
type GetRenterContractsOK struct {
Payload *GetRenterContractsOKBody
}
GetRenterContractsOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterContractsOK ¶
func NewGetRenterContractsOK() *GetRenterContractsOK
NewGetRenterContractsOK creates a GetRenterContractsOK with default headers values
func (*GetRenterContractsOK) Error ¶
func (o *GetRenterContractsOK) Error() string
func (*GetRenterContractsOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterContractsOK) GetPayload() *GetRenterContractsOKBody
type GetRenterContractsOKBody ¶
type GetRenterContractsOKBody struct { // contracts Contracts []*GetRenterContractsOKBodyContractsItems0 `json:"contracts"` }
GetRenterContractsOKBody get renter contracts o k body swagger:model GetRenterContractsOKBody
func (*GetRenterContractsOKBody) ContextValidate ¶ added in v0.5.9
func (o *GetRenterContractsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get renter contracts o k body based on the context it is used
func (*GetRenterContractsOKBody) MarshalBinary ¶
func (o *GetRenterContractsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterContractsOKBody) UnmarshalBinary ¶
func (o *GetRenterContractsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterContractsOKBodyContractsItems0 ¶ added in v0.5.9
type GetRenterContractsOKBodyContractsItems0 struct { // Amount of contract funds that have been spent on downloads. In hastings. // Example: 1234 Downloadspending string `json:"downloadspending,omitempty"` // Block height that the file contract ends on. // Example: 50000 Endheight int64 `json:"endheight,omitempty"` // Fees paid in order to form the file contract. // Example: 1234 Fees string `json:"fees,omitempty"` // Signals if contract is good for a renewal // Example: false Goodforrenew bool `json:"goodforrenew,omitempty"` // Signals if contract is good for uploading data // Example: true Goodforupload bool `json:"goodforupload,omitempty"` // hostpublickey Hostpublickey *GetRenterContractsOKBodyContractsItems0Hostpublickey `json:"hostpublickey,omitempty"` // ID of the file contract // Example: 1234567890abcdef0123456789abcdef0123456789abcdef0123456789abcdef ID string `json:"id,omitempty"` // A signed transaction containing the most recent contract revision. Lasttransaction interface{} `json:"lasttransaction,omitempty"` // Address of the host the file contract was formed with. // Example: 12.34.56.78:9 Netaddress string `json:"netaddress,omitempty"` // Remaining funds left for the renter to spend on uploads & downloads. // Example: 1234 Renterfunds string `json:"renterfunds,omitempty"` // Size of the file contract, which is typically equal to the number of bytes that have been uploaded to the host. // Example: 8192 Size int64 `json:"size,omitempty"` // Block height that the file contract began on. // Example: 50000 Startheight int64 `json:"startheight,omitempty"` // Amount of contract funds that have been spent on storage. // Example: 1234 Storagespending string `json:"storagespending,omitempty"` // Total cost to the wallet of forming the file contract. This includes both the fees and the funds allocated in the contract. // Example: 1234 Totalcost string `json:"totalcost,omitempty"` // Amount of contract funds that have been spent on uploads. // Example: 1234 Uploadspending string `json:"uploadspending,omitempty"` }
GetRenterContractsOKBodyContractsItems0 get renter contracts o k body contracts items0 swagger:model GetRenterContractsOKBodyContractsItems0
func (*GetRenterContractsOKBodyContractsItems0) ContextValidate ¶ added in v0.5.9
func (o *GetRenterContractsOKBodyContractsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get renter contracts o k body contracts items0 based on the context it is used
func (*GetRenterContractsOKBodyContractsItems0) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterContractsOKBodyContractsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterContractsOKBodyContractsItems0) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterContractsOKBodyContractsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterContractsOKBodyContractsItems0Hostpublickey ¶ added in v0.5.9
type GetRenterContractsOKBodyContractsItems0Hostpublickey struct { // algorithm // Example: ed25519 Algorithm string `json:"algorithm,omitempty"` // key // Example: RW50cm9weSBpc24ndCB3aGF0IGl0IHVzZWQgdG8gYmU Key string `json:"key,omitempty"` }
GetRenterContractsOKBodyContractsItems0Hostpublickey Public key of the host the contract was formed with. swagger:model GetRenterContractsOKBodyContractsItems0Hostpublickey
func (*GetRenterContractsOKBodyContractsItems0Hostpublickey) ContextValidate ¶ added in v0.5.9
func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter contracts o k body contracts items0 hostpublickey based on context it is used
func (*GetRenterContractsOKBodyContractsItems0Hostpublickey) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterContractsOKBodyContractsItems0Hostpublickey) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterContractsOKBodyContractsItems0Hostpublickey) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterContractsParams ¶
type GetRenterContractsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterContractsParams contains all the parameters to send to the API endpoint
for the get renter contracts operation. Typically these are written to a http.Request.
func NewGetRenterContractsParams ¶
func NewGetRenterContractsParams() *GetRenterContractsParams
NewGetRenterContractsParams creates a new GetRenterContractsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterContractsParamsWithContext ¶
func NewGetRenterContractsParamsWithContext(ctx context.Context) *GetRenterContractsParams
NewGetRenterContractsParamsWithContext creates a new GetRenterContractsParams object with the ability to set a context for a request.
func NewGetRenterContractsParamsWithHTTPClient ¶
func NewGetRenterContractsParamsWithHTTPClient(client *http.Client) *GetRenterContractsParams
NewGetRenterContractsParamsWithHTTPClient creates a new GetRenterContractsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterContractsParamsWithTimeout ¶
func NewGetRenterContractsParamsWithTimeout(timeout time.Duration) *GetRenterContractsParams
NewGetRenterContractsParamsWithTimeout creates a new GetRenterContractsParams object with the ability to set a timeout on a request.
func (*GetRenterContractsParams) SetContext ¶
func (o *GetRenterContractsParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter contracts params
func (*GetRenterContractsParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterContractsParams) SetDefaults()
SetDefaults hydrates default values in the get renter contracts params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterContractsParams) SetHTTPClient ¶
func (o *GetRenterContractsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter contracts params
func (*GetRenterContractsParams) SetTimeout ¶
func (o *GetRenterContractsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter contracts params
func (*GetRenterContractsParams) WithContext ¶
func (o *GetRenterContractsParams) WithContext(ctx context.Context) *GetRenterContractsParams
WithContext adds the context to the get renter contracts params
func (*GetRenterContractsParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterContractsParams) WithDefaults() *GetRenterContractsParams
WithDefaults hydrates default values in the get renter contracts params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterContractsParams) WithHTTPClient ¶
func (o *GetRenterContractsParams) WithHTTPClient(client *http.Client) *GetRenterContractsParams
WithHTTPClient adds the HTTPClient to the get renter contracts params
func (*GetRenterContractsParams) WithTimeout ¶
func (o *GetRenterContractsParams) WithTimeout(timeout time.Duration) *GetRenterContractsParams
WithTimeout adds the timeout to the get renter contracts params
func (*GetRenterContractsParams) WriteToRequest ¶
func (o *GetRenterContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterContractsReader ¶
type GetRenterContractsReader struct {
// contains filtered or unexported fields
}
GetRenterContractsReader is a Reader for the GetRenterContracts structure.
func (*GetRenterContractsReader) ReadResponse ¶
func (o *GetRenterContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterDefault ¶
type GetRenterDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterDefault ¶
func NewGetRenterDefault(code int) *GetRenterDefault
NewGetRenterDefault creates a GetRenterDefault with default headers values
func (*GetRenterDefault) Code ¶
func (o *GetRenterDefault) Code() int
Code gets the status code for the get renter default response
func (*GetRenterDefault) Error ¶
func (o *GetRenterDefault) Error() string
func (*GetRenterDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterDefault) GetPayload() *models.StandardError
type GetRenterDirSiapathDefault ¶ added in v0.5.4
type GetRenterDirSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterDirSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterDirSiapathDefault ¶ added in v0.5.4
func NewGetRenterDirSiapathDefault(code int) *GetRenterDirSiapathDefault
NewGetRenterDirSiapathDefault creates a GetRenterDirSiapathDefault with default headers values
func (*GetRenterDirSiapathDefault) Code ¶ added in v0.5.4
func (o *GetRenterDirSiapathDefault) Code() int
Code gets the status code for the get renter dir siapath default response
func (*GetRenterDirSiapathDefault) Error ¶ added in v0.5.4
func (o *GetRenterDirSiapathDefault) Error() string
func (*GetRenterDirSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterDirSiapathDefault) GetPayload() *models.StandardError
type GetRenterDirSiapathOK ¶ added in v0.5.4
type GetRenterDirSiapathOK struct {
Payload *GetRenterDirSiapathOKBody
}
GetRenterDirSiapathOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterDirSiapathOK ¶ added in v0.5.4
func NewGetRenterDirSiapathOK() *GetRenterDirSiapathOK
NewGetRenterDirSiapathOK creates a GetRenterDirSiapathOK with default headers values
func (*GetRenterDirSiapathOK) Error ¶ added in v0.5.4
func (o *GetRenterDirSiapathOK) Error() string
func (*GetRenterDirSiapathOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterDirSiapathOK) GetPayload() *GetRenterDirSiapathOKBody
type GetRenterDirSiapathOKBody ¶ added in v0.5.4
type GetRenterDirSiapathOKBody struct { // directories Directories []*GetRenterDirSiapathOKBodyDirectoriesItems0 `json:"directories"` // files Files []*models.FileInfo `json:"files"` }
GetRenterDirSiapathOKBody get renter dir siapath o k body swagger:model GetRenterDirSiapathOKBody
func (*GetRenterDirSiapathOKBody) ContextValidate ¶ added in v0.5.9
func (o *GetRenterDirSiapathOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get renter dir siapath o k body based on the context it is used
func (*GetRenterDirSiapathOKBody) MarshalBinary ¶ added in v0.5.4
func (o *GetRenterDirSiapathOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterDirSiapathOKBody) UnmarshalBinary ¶ added in v0.5.4
func (o *GetRenterDirSiapathOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterDirSiapathOKBodyDirectoriesItems0 ¶ added in v0.5.9
type GetRenterDirSiapathOKBodyDirectoriesItems0 struct { // the total number of files in the sub directory tree // Example: 2 Aggregatenumfiles int64 `json:"aggregatenumfiles,omitempty"` // aggregatenumsize // Example: 4096 Aggregatenumsize int64 `json:"aggregatenumsize,omitempty"` // the total number of stuck chunks in the sub directory tree // Example: 4 Aggregatenumstuckchunks int64 `json:"aggregatenumstuckchunks,omitempty"` // This is the worst health of any of the files or subdirectories. Health is the percent of parity pieces missing. - health = 0 is full redundancy - health <= 1 is recoverable - health > 1 needs to be repaired from disk // Example: 1 Health float64 `json:"health,omitempty"` // The oldest time that the health of the directory or any of its files or sub directories' health was checked. // Example: 2018-09-23T08:00:00.000000000+04:00 // Format: date-time Lasthealthchecktime strfmt.DateTime `json:"lasthealthchecktime,omitempty"` // This is the worst health when comparing stuck health vs health // Example: 0.5 Maxhealth float64 `json:"maxhealth,omitempty"` // the lowest redundancy of any file or directory in the sub directory tree // Example: 2.6 Minredundancy float64 `json:"minredundancy,omitempty"` // the most recent mod time of any file or directory in the sub directory tree // Example: 2018-09-23T08:00:00.000000000+04:00 // Format: date-time Mostrecentmodtime strfmt.DateTime `json:"mostrecentmodtime,omitempty"` // the number of files in the directory // Example: 3 Numfiles int64 `json:"numfiles,omitempty"` // the number of directories in the directory // Example: 2 Numsubdirs int64 `json:"numsubdirs,omitempty"` // The path to the directory on the sia network // Example: foo/bar Siapath string `json:"siapath,omitempty"` }
GetRenterDirSiapathOKBodyDirectoriesItems0 get renter dir siapath o k body directories items0 swagger:model GetRenterDirSiapathOKBodyDirectoriesItems0
func (*GetRenterDirSiapathOKBodyDirectoriesItems0) ContextValidate ¶ added in v0.5.9
func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter dir siapath o k body directories items0 based on context it is used
func (*GetRenterDirSiapathOKBodyDirectoriesItems0) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterDirSiapathOKBodyDirectoriesItems0) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterDirSiapathOKBodyDirectoriesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterDirSiapathParams ¶ added in v0.5.4
type GetRenterDirSiapathParams struct { /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterDirSiapathParams contains all the parameters to send to the API endpoint
for the get renter dir siapath operation. Typically these are written to a http.Request.
func NewGetRenterDirSiapathParams ¶ added in v0.5.4
func NewGetRenterDirSiapathParams() *GetRenterDirSiapathParams
NewGetRenterDirSiapathParams creates a new GetRenterDirSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterDirSiapathParamsWithContext ¶ added in v0.5.4
func NewGetRenterDirSiapathParamsWithContext(ctx context.Context) *GetRenterDirSiapathParams
NewGetRenterDirSiapathParamsWithContext creates a new GetRenterDirSiapathParams object with the ability to set a context for a request.
func NewGetRenterDirSiapathParamsWithHTTPClient ¶ added in v0.5.4
func NewGetRenterDirSiapathParamsWithHTTPClient(client *http.Client) *GetRenterDirSiapathParams
NewGetRenterDirSiapathParamsWithHTTPClient creates a new GetRenterDirSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterDirSiapathParamsWithTimeout ¶ added in v0.5.4
func NewGetRenterDirSiapathParamsWithTimeout(timeout time.Duration) *GetRenterDirSiapathParams
NewGetRenterDirSiapathParamsWithTimeout creates a new GetRenterDirSiapathParams object with the ability to set a timeout on a request.
func (*GetRenterDirSiapathParams) SetContext ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter dir siapath params
func (*GetRenterDirSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterDirSiapathParams) SetDefaults()
SetDefaults hydrates default values in the get renter dir siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDirSiapathParams) SetHTTPClient ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter dir siapath params
func (*GetRenterDirSiapathParams) SetSiapath ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the get renter dir siapath params
func (*GetRenterDirSiapathParams) SetTimeout ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter dir siapath params
func (*GetRenterDirSiapathParams) WithContext ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) WithContext(ctx context.Context) *GetRenterDirSiapathParams
WithContext adds the context to the get renter dir siapath params
func (*GetRenterDirSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterDirSiapathParams) WithDefaults() *GetRenterDirSiapathParams
WithDefaults hydrates default values in the get renter dir siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDirSiapathParams) WithHTTPClient ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) WithHTTPClient(client *http.Client) *GetRenterDirSiapathParams
WithHTTPClient adds the HTTPClient to the get renter dir siapath params
func (*GetRenterDirSiapathParams) WithSiapath ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) WithSiapath(siapath string) *GetRenterDirSiapathParams
WithSiapath adds the siapath to the get renter dir siapath params
func (*GetRenterDirSiapathParams) WithTimeout ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) WithTimeout(timeout time.Duration) *GetRenterDirSiapathParams
WithTimeout adds the timeout to the get renter dir siapath params
func (*GetRenterDirSiapathParams) WriteToRequest ¶ added in v0.5.4
func (o *GetRenterDirSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterDirSiapathReader ¶ added in v0.5.4
type GetRenterDirSiapathReader struct {
// contains filtered or unexported fields
}
GetRenterDirSiapathReader is a Reader for the GetRenterDirSiapath structure.
func (*GetRenterDirSiapathReader) ReadResponse ¶ added in v0.5.4
func (o *GetRenterDirSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterDownloadSiapathDefault ¶
type GetRenterDownloadSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterDownloadSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterDownloadSiapathDefault ¶
func NewGetRenterDownloadSiapathDefault(code int) *GetRenterDownloadSiapathDefault
NewGetRenterDownloadSiapathDefault creates a GetRenterDownloadSiapathDefault with default headers values
func (*GetRenterDownloadSiapathDefault) Code ¶
func (o *GetRenterDownloadSiapathDefault) Code() int
Code gets the status code for the get renter download siapath default response
func (*GetRenterDownloadSiapathDefault) Error ¶
func (o *GetRenterDownloadSiapathDefault) Error() string
func (*GetRenterDownloadSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterDownloadSiapathDefault) GetPayload() *models.StandardError
type GetRenterDownloadSiapathNoContent ¶
type GetRenterDownloadSiapathNoContent struct { }
GetRenterDownloadSiapathNoContent describes a response with status code 204, with default header values.
Successful Response
func NewGetRenterDownloadSiapathNoContent ¶
func NewGetRenterDownloadSiapathNoContent() *GetRenterDownloadSiapathNoContent
NewGetRenterDownloadSiapathNoContent creates a GetRenterDownloadSiapathNoContent with default headers values
func (*GetRenterDownloadSiapathNoContent) Error ¶
func (o *GetRenterDownloadSiapathNoContent) Error() string
type GetRenterDownloadSiapathParams ¶
type GetRenterDownloadSiapathParams struct { /* Async. If async is true, the http request will be non blocking. Can't be used with */ Async *bool /* Destination. Location on disk that the file will be downloaded to. */ Destination string /* Httpresp. If httresp is true, the data will be written to the http response. */ Httpresp *bool /* Length. Length of the requested data. Has to be <= filesize-offset. Format: int64 */ Length *int64 /* Offset. Offset relative to the file start from where the download starts. Format: int64 */ Offset *int64 /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterDownloadSiapathParams contains all the parameters to send to the API endpoint
for the get renter download siapath operation. Typically these are written to a http.Request.
func NewGetRenterDownloadSiapathParams ¶
func NewGetRenterDownloadSiapathParams() *GetRenterDownloadSiapathParams
NewGetRenterDownloadSiapathParams creates a new GetRenterDownloadSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterDownloadSiapathParamsWithContext ¶
func NewGetRenterDownloadSiapathParamsWithContext(ctx context.Context) *GetRenterDownloadSiapathParams
NewGetRenterDownloadSiapathParamsWithContext creates a new GetRenterDownloadSiapathParams object with the ability to set a context for a request.
func NewGetRenterDownloadSiapathParamsWithHTTPClient ¶
func NewGetRenterDownloadSiapathParamsWithHTTPClient(client *http.Client) *GetRenterDownloadSiapathParams
NewGetRenterDownloadSiapathParamsWithHTTPClient creates a new GetRenterDownloadSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterDownloadSiapathParamsWithTimeout ¶
func NewGetRenterDownloadSiapathParamsWithTimeout(timeout time.Duration) *GetRenterDownloadSiapathParams
NewGetRenterDownloadSiapathParamsWithTimeout creates a new GetRenterDownloadSiapathParams object with the ability to set a timeout on a request.
func (*GetRenterDownloadSiapathParams) SetAsync ¶
func (o *GetRenterDownloadSiapathParams) SetAsync(async *bool)
SetAsync adds the async to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetContext ¶
func (o *GetRenterDownloadSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterDownloadSiapathParams) SetDefaults()
SetDefaults hydrates default values in the get renter download siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDownloadSiapathParams) SetDestination ¶
func (o *GetRenterDownloadSiapathParams) SetDestination(destination string)
SetDestination adds the destination to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetHTTPClient ¶
func (o *GetRenterDownloadSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetHttpresp ¶
func (o *GetRenterDownloadSiapathParams) SetHttpresp(httpresp *bool)
SetHttpresp adds the httpresp to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetLength ¶
func (o *GetRenterDownloadSiapathParams) SetLength(length *int64)
SetLength adds the length to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetOffset ¶
func (o *GetRenterDownloadSiapathParams) SetOffset(offset *int64)
SetOffset adds the offset to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetSiapath ¶
func (o *GetRenterDownloadSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) SetTimeout ¶
func (o *GetRenterDownloadSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithAsync ¶
func (o *GetRenterDownloadSiapathParams) WithAsync(async *bool) *GetRenterDownloadSiapathParams
WithAsync adds the async to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithContext ¶
func (o *GetRenterDownloadSiapathParams) WithContext(ctx context.Context) *GetRenterDownloadSiapathParams
WithContext adds the context to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterDownloadSiapathParams) WithDefaults() *GetRenterDownloadSiapathParams
WithDefaults hydrates default values in the get renter download siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDownloadSiapathParams) WithDestination ¶
func (o *GetRenterDownloadSiapathParams) WithDestination(destination string) *GetRenterDownloadSiapathParams
WithDestination adds the destination to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithHTTPClient ¶
func (o *GetRenterDownloadSiapathParams) WithHTTPClient(client *http.Client) *GetRenterDownloadSiapathParams
WithHTTPClient adds the HTTPClient to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithHttpresp ¶
func (o *GetRenterDownloadSiapathParams) WithHttpresp(httpresp *bool) *GetRenterDownloadSiapathParams
WithHttpresp adds the httpresp to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithLength ¶
func (o *GetRenterDownloadSiapathParams) WithLength(length *int64) *GetRenterDownloadSiapathParams
WithLength adds the length to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithOffset ¶
func (o *GetRenterDownloadSiapathParams) WithOffset(offset *int64) *GetRenterDownloadSiapathParams
WithOffset adds the offset to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithSiapath ¶
func (o *GetRenterDownloadSiapathParams) WithSiapath(siapath string) *GetRenterDownloadSiapathParams
WithSiapath adds the siapath to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WithTimeout ¶
func (o *GetRenterDownloadSiapathParams) WithTimeout(timeout time.Duration) *GetRenterDownloadSiapathParams
WithTimeout adds the timeout to the get renter download siapath params
func (*GetRenterDownloadSiapathParams) WriteToRequest ¶
func (o *GetRenterDownloadSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterDownloadSiapathReader ¶
type GetRenterDownloadSiapathReader struct {
// contains filtered or unexported fields
}
GetRenterDownloadSiapathReader is a Reader for the GetRenterDownloadSiapath structure.
func (*GetRenterDownloadSiapathReader) ReadResponse ¶
func (o *GetRenterDownloadSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterDownloadasyncSiapathDefault ¶
type GetRenterDownloadasyncSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterDownloadasyncSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterDownloadasyncSiapathDefault ¶
func NewGetRenterDownloadasyncSiapathDefault(code int) *GetRenterDownloadasyncSiapathDefault
NewGetRenterDownloadasyncSiapathDefault creates a GetRenterDownloadasyncSiapathDefault with default headers values
func (*GetRenterDownloadasyncSiapathDefault) Code ¶
func (o *GetRenterDownloadasyncSiapathDefault) Code() int
Code gets the status code for the get renter downloadasync siapath default response
func (*GetRenterDownloadasyncSiapathDefault) Error ¶
func (o *GetRenterDownloadasyncSiapathDefault) Error() string
func (*GetRenterDownloadasyncSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterDownloadasyncSiapathDefault) GetPayload() *models.StandardError
type GetRenterDownloadasyncSiapathNoContent ¶
type GetRenterDownloadasyncSiapathNoContent struct { }
GetRenterDownloadasyncSiapathNoContent describes a response with status code 204, with default header values.
Successful Response
func NewGetRenterDownloadasyncSiapathNoContent ¶
func NewGetRenterDownloadasyncSiapathNoContent() *GetRenterDownloadasyncSiapathNoContent
NewGetRenterDownloadasyncSiapathNoContent creates a GetRenterDownloadasyncSiapathNoContent with default headers values
func (*GetRenterDownloadasyncSiapathNoContent) Error ¶
func (o *GetRenterDownloadasyncSiapathNoContent) Error() string
type GetRenterDownloadasyncSiapathParams ¶
type GetRenterDownloadasyncSiapathParams struct { /* Destination. Location on disk that the file will be downloaded to. */ Destination string /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterDownloadasyncSiapathParams contains all the parameters to send to the API endpoint
for the get renter downloadasync siapath operation. Typically these are written to a http.Request.
func NewGetRenterDownloadasyncSiapathParams ¶
func NewGetRenterDownloadasyncSiapathParams() *GetRenterDownloadasyncSiapathParams
NewGetRenterDownloadasyncSiapathParams creates a new GetRenterDownloadasyncSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterDownloadasyncSiapathParamsWithContext ¶
func NewGetRenterDownloadasyncSiapathParamsWithContext(ctx context.Context) *GetRenterDownloadasyncSiapathParams
NewGetRenterDownloadasyncSiapathParamsWithContext creates a new GetRenterDownloadasyncSiapathParams object with the ability to set a context for a request.
func NewGetRenterDownloadasyncSiapathParamsWithHTTPClient ¶
func NewGetRenterDownloadasyncSiapathParamsWithHTTPClient(client *http.Client) *GetRenterDownloadasyncSiapathParams
NewGetRenterDownloadasyncSiapathParamsWithHTTPClient creates a new GetRenterDownloadasyncSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterDownloadasyncSiapathParamsWithTimeout ¶
func NewGetRenterDownloadasyncSiapathParamsWithTimeout(timeout time.Duration) *GetRenterDownloadasyncSiapathParams
NewGetRenterDownloadasyncSiapathParamsWithTimeout creates a new GetRenterDownloadasyncSiapathParams object with the ability to set a timeout on a request.
func (*GetRenterDownloadasyncSiapathParams) SetContext ¶
func (o *GetRenterDownloadasyncSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterDownloadasyncSiapathParams) SetDefaults()
SetDefaults hydrates default values in the get renter downloadasync siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDownloadasyncSiapathParams) SetDestination ¶
func (o *GetRenterDownloadasyncSiapathParams) SetDestination(destination string)
SetDestination adds the destination to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) SetHTTPClient ¶
func (o *GetRenterDownloadasyncSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) SetSiapath ¶
func (o *GetRenterDownloadasyncSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) SetTimeout ¶
func (o *GetRenterDownloadasyncSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) WithContext ¶
func (o *GetRenterDownloadasyncSiapathParams) WithContext(ctx context.Context) *GetRenterDownloadasyncSiapathParams
WithContext adds the context to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterDownloadasyncSiapathParams) WithDefaults() *GetRenterDownloadasyncSiapathParams
WithDefaults hydrates default values in the get renter downloadasync siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDownloadasyncSiapathParams) WithDestination ¶
func (o *GetRenterDownloadasyncSiapathParams) WithDestination(destination string) *GetRenterDownloadasyncSiapathParams
WithDestination adds the destination to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) WithHTTPClient ¶
func (o *GetRenterDownloadasyncSiapathParams) WithHTTPClient(client *http.Client) *GetRenterDownloadasyncSiapathParams
WithHTTPClient adds the HTTPClient to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) WithSiapath ¶
func (o *GetRenterDownloadasyncSiapathParams) WithSiapath(siapath string) *GetRenterDownloadasyncSiapathParams
WithSiapath adds the siapath to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) WithTimeout ¶
func (o *GetRenterDownloadasyncSiapathParams) WithTimeout(timeout time.Duration) *GetRenterDownloadasyncSiapathParams
WithTimeout adds the timeout to the get renter downloadasync siapath params
func (*GetRenterDownloadasyncSiapathParams) WriteToRequest ¶
func (o *GetRenterDownloadasyncSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterDownloadasyncSiapathReader ¶
type GetRenterDownloadasyncSiapathReader struct {
// contains filtered or unexported fields
}
GetRenterDownloadasyncSiapathReader is a Reader for the GetRenterDownloadasyncSiapath structure.
func (*GetRenterDownloadasyncSiapathReader) ReadResponse ¶
func (o *GetRenterDownloadasyncSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterDownloadsDefault ¶
type GetRenterDownloadsDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterDownloadsDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterDownloadsDefault ¶
func NewGetRenterDownloadsDefault(code int) *GetRenterDownloadsDefault
NewGetRenterDownloadsDefault creates a GetRenterDownloadsDefault with default headers values
func (*GetRenterDownloadsDefault) Code ¶
func (o *GetRenterDownloadsDefault) Code() int
Code gets the status code for the get renter downloads default response
func (*GetRenterDownloadsDefault) Error ¶
func (o *GetRenterDownloadsDefault) Error() string
func (*GetRenterDownloadsDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterDownloadsDefault) GetPayload() *models.StandardError
type GetRenterDownloadsOK ¶
type GetRenterDownloadsOK struct {
Payload *GetRenterDownloadsOKBody
}
GetRenterDownloadsOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterDownloadsOK ¶
func NewGetRenterDownloadsOK() *GetRenterDownloadsOK
NewGetRenterDownloadsOK creates a GetRenterDownloadsOK with default headers values
func (*GetRenterDownloadsOK) Error ¶
func (o *GetRenterDownloadsOK) Error() string
func (*GetRenterDownloadsOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterDownloadsOK) GetPayload() *GetRenterDownloadsOKBody
type GetRenterDownloadsOKBody ¶
type GetRenterDownloadsOKBody struct { // downloads Downloads []*GetRenterDownloadsOKBodyDownloadsItems0 `json:"downloads"` }
GetRenterDownloadsOKBody get renter downloads o k body swagger:model GetRenterDownloadsOKBody
func (*GetRenterDownloadsOKBody) ContextValidate ¶ added in v0.5.9
func (o *GetRenterDownloadsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get renter downloads o k body based on the context it is used
func (*GetRenterDownloadsOKBody) MarshalBinary ¶
func (o *GetRenterDownloadsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterDownloadsOKBody) UnmarshalBinary ¶
func (o *GetRenterDownloadsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterDownloadsOKBodyDownloadsItems0 ¶ added in v0.5.9
type GetRenterDownloadsOKBodyDownloadsItems0 struct { // Whether or not the download has completed. Will be false initially, and set to true immediately as the download has been fully written out to the file, to the http stream, or to the in-memory buffer. Completed will also be set to true if there is an error that causes the download to fail. // Example: true Completed bool `json:"completed,omitempty"` // Local path that the file will be downloaded to. // Example: /home/users/alice Destination string `json:"destination,omitempty"` // What type of destination was used. Can be "file", indicating a download to disk, can be "buffer", indicating a download to memory, and can be "http stream", indicating that the download was streamed through the http API. // Example: file Destinationtype string `json:"destinationtype,omitempty"` // Time at which the download completed in RFC 3339 time. Will be zero if the download has not yet completed. // Example: 2009-11-10T23:00:00Z Endtime string `json:"endtime,omitempty"` // Error encountered while downloading. If there was no error (yet), it will be the empty string. Error string `json:"error,omitempty"` // Length of the download. If the download was a partial download, this will indicate the length of the partial download, and not the length of the full file. // Example: 8192 Length int64 `json:"length,omitempty"` // Offset within the file of the download. For full file downloads, the offset will be '0'. For partial downloads, the offset may be anywhere within the file. offset+length will never exceed the full file size. // Example: 0 Offset int64 `json:"offset,omitempty"` // Number of bytes downloaded thus far. Will only be updated as segments of the file complete fully. This typically has a resolution of tens of megabytes. // Example: 4096 Received int64 `json:"received,omitempty"` // Siapath given to the file when it was uploaded. // Example: foo/bar.txt Siapath string `json:"siapath,omitempty"` // Time at which the download was initiated in RFC 3339. // Example: 2009-11-10T23:00:00Z Starttime string `json:"starttime,omitempty"` // The total amount of data transfered when downloading the file. This will eventually include data transferred during contract + payment negotiation, as well as data from failed piece downloads. // Example: 10321 Totaldatatransfered int64 `json:"totaldatatransfered,omitempty"` }
GetRenterDownloadsOKBodyDownloadsItems0 get renter downloads o k body downloads items0 swagger:model GetRenterDownloadsOKBodyDownloadsItems0
func (*GetRenterDownloadsOKBodyDownloadsItems0) ContextValidate ¶ added in v0.5.9
func (o *GetRenterDownloadsOKBodyDownloadsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter downloads o k body downloads items0 based on context it is used
func (*GetRenterDownloadsOKBodyDownloadsItems0) MarshalBinary ¶ added in v0.5.9
func (o *GetRenterDownloadsOKBodyDownloadsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterDownloadsOKBodyDownloadsItems0) UnmarshalBinary ¶ added in v0.5.9
func (o *GetRenterDownloadsOKBodyDownloadsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterDownloadsParams ¶
type GetRenterDownloadsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterDownloadsParams contains all the parameters to send to the API endpoint
for the get renter downloads operation. Typically these are written to a http.Request.
func NewGetRenterDownloadsParams ¶
func NewGetRenterDownloadsParams() *GetRenterDownloadsParams
NewGetRenterDownloadsParams creates a new GetRenterDownloadsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterDownloadsParamsWithContext ¶
func NewGetRenterDownloadsParamsWithContext(ctx context.Context) *GetRenterDownloadsParams
NewGetRenterDownloadsParamsWithContext creates a new GetRenterDownloadsParams object with the ability to set a context for a request.
func NewGetRenterDownloadsParamsWithHTTPClient ¶
func NewGetRenterDownloadsParamsWithHTTPClient(client *http.Client) *GetRenterDownloadsParams
NewGetRenterDownloadsParamsWithHTTPClient creates a new GetRenterDownloadsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterDownloadsParamsWithTimeout ¶
func NewGetRenterDownloadsParamsWithTimeout(timeout time.Duration) *GetRenterDownloadsParams
NewGetRenterDownloadsParamsWithTimeout creates a new GetRenterDownloadsParams object with the ability to set a timeout on a request.
func (*GetRenterDownloadsParams) SetContext ¶
func (o *GetRenterDownloadsParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter downloads params
func (*GetRenterDownloadsParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterDownloadsParams) SetDefaults()
SetDefaults hydrates default values in the get renter downloads params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDownloadsParams) SetHTTPClient ¶
func (o *GetRenterDownloadsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter downloads params
func (*GetRenterDownloadsParams) SetTimeout ¶
func (o *GetRenterDownloadsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter downloads params
func (*GetRenterDownloadsParams) WithContext ¶
func (o *GetRenterDownloadsParams) WithContext(ctx context.Context) *GetRenterDownloadsParams
WithContext adds the context to the get renter downloads params
func (*GetRenterDownloadsParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterDownloadsParams) WithDefaults() *GetRenterDownloadsParams
WithDefaults hydrates default values in the get renter downloads params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterDownloadsParams) WithHTTPClient ¶
func (o *GetRenterDownloadsParams) WithHTTPClient(client *http.Client) *GetRenterDownloadsParams
WithHTTPClient adds the HTTPClient to the get renter downloads params
func (*GetRenterDownloadsParams) WithTimeout ¶
func (o *GetRenterDownloadsParams) WithTimeout(timeout time.Duration) *GetRenterDownloadsParams
WithTimeout adds the timeout to the get renter downloads params
func (*GetRenterDownloadsParams) WriteToRequest ¶
func (o *GetRenterDownloadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterDownloadsReader ¶
type GetRenterDownloadsReader struct {
// contains filtered or unexported fields
}
GetRenterDownloadsReader is a Reader for the GetRenterDownloads structure.
func (*GetRenterDownloadsReader) ReadResponse ¶
func (o *GetRenterDownloadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterFileSiapathDefault ¶
type GetRenterFileSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterFileSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterFileSiapathDefault ¶
func NewGetRenterFileSiapathDefault(code int) *GetRenterFileSiapathDefault
NewGetRenterFileSiapathDefault creates a GetRenterFileSiapathDefault with default headers values
func (*GetRenterFileSiapathDefault) Code ¶
func (o *GetRenterFileSiapathDefault) Code() int
Code gets the status code for the get renter file siapath default response
func (*GetRenterFileSiapathDefault) Error ¶
func (o *GetRenterFileSiapathDefault) Error() string
func (*GetRenterFileSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterFileSiapathDefault) GetPayload() *models.StandardError
type GetRenterFileSiapathOK ¶
type GetRenterFileSiapathOK struct {
Payload *GetRenterFileSiapathOKBody
}
GetRenterFileSiapathOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterFileSiapathOK ¶
func NewGetRenterFileSiapathOK() *GetRenterFileSiapathOK
NewGetRenterFileSiapathOK creates a GetRenterFileSiapathOK with default headers values
func (*GetRenterFileSiapathOK) Error ¶
func (o *GetRenterFileSiapathOK) Error() string
func (*GetRenterFileSiapathOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterFileSiapathOK) GetPayload() *GetRenterFileSiapathOKBody
type GetRenterFileSiapathOKBody ¶
GetRenterFileSiapathOKBody get renter file siapath o k body swagger:model GetRenterFileSiapathOKBody
func (*GetRenterFileSiapathOKBody) ContextValidate ¶ added in v0.5.9
func (o *GetRenterFileSiapathOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get renter file siapath o k body based on the context it is used
func (*GetRenterFileSiapathOKBody) MarshalBinary ¶
func (o *GetRenterFileSiapathOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterFileSiapathOKBody) UnmarshalBinary ¶
func (o *GetRenterFileSiapathOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterFileSiapathParams ¶
type GetRenterFileSiapathParams struct { /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterFileSiapathParams contains all the parameters to send to the API endpoint
for the get renter file siapath operation. Typically these are written to a http.Request.
func NewGetRenterFileSiapathParams ¶
func NewGetRenterFileSiapathParams() *GetRenterFileSiapathParams
NewGetRenterFileSiapathParams creates a new GetRenterFileSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterFileSiapathParamsWithContext ¶
func NewGetRenterFileSiapathParamsWithContext(ctx context.Context) *GetRenterFileSiapathParams
NewGetRenterFileSiapathParamsWithContext creates a new GetRenterFileSiapathParams object with the ability to set a context for a request.
func NewGetRenterFileSiapathParamsWithHTTPClient ¶
func NewGetRenterFileSiapathParamsWithHTTPClient(client *http.Client) *GetRenterFileSiapathParams
NewGetRenterFileSiapathParamsWithHTTPClient creates a new GetRenterFileSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterFileSiapathParamsWithTimeout ¶
func NewGetRenterFileSiapathParamsWithTimeout(timeout time.Duration) *GetRenterFileSiapathParams
NewGetRenterFileSiapathParamsWithTimeout creates a new GetRenterFileSiapathParams object with the ability to set a timeout on a request.
func (*GetRenterFileSiapathParams) SetContext ¶
func (o *GetRenterFileSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter file siapath params
func (*GetRenterFileSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterFileSiapathParams) SetDefaults()
SetDefaults hydrates default values in the get renter file siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterFileSiapathParams) SetHTTPClient ¶
func (o *GetRenterFileSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter file siapath params
func (*GetRenterFileSiapathParams) SetSiapath ¶
func (o *GetRenterFileSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the get renter file siapath params
func (*GetRenterFileSiapathParams) SetTimeout ¶
func (o *GetRenterFileSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter file siapath params
func (*GetRenterFileSiapathParams) WithContext ¶
func (o *GetRenterFileSiapathParams) WithContext(ctx context.Context) *GetRenterFileSiapathParams
WithContext adds the context to the get renter file siapath params
func (*GetRenterFileSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterFileSiapathParams) WithDefaults() *GetRenterFileSiapathParams
WithDefaults hydrates default values in the get renter file siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterFileSiapathParams) WithHTTPClient ¶
func (o *GetRenterFileSiapathParams) WithHTTPClient(client *http.Client) *GetRenterFileSiapathParams
WithHTTPClient adds the HTTPClient to the get renter file siapath params
func (*GetRenterFileSiapathParams) WithSiapath ¶
func (o *GetRenterFileSiapathParams) WithSiapath(siapath string) *GetRenterFileSiapathParams
WithSiapath adds the siapath to the get renter file siapath params
func (*GetRenterFileSiapathParams) WithTimeout ¶
func (o *GetRenterFileSiapathParams) WithTimeout(timeout time.Duration) *GetRenterFileSiapathParams
WithTimeout adds the timeout to the get renter file siapath params
func (*GetRenterFileSiapathParams) WriteToRequest ¶
func (o *GetRenterFileSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterFileSiapathReader ¶
type GetRenterFileSiapathReader struct {
// contains filtered or unexported fields
}
GetRenterFileSiapathReader is a Reader for the GetRenterFileSiapath structure.
func (*GetRenterFileSiapathReader) ReadResponse ¶
func (o *GetRenterFileSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterFilesDefault ¶
type GetRenterFilesDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterFilesDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterFilesDefault ¶
func NewGetRenterFilesDefault(code int) *GetRenterFilesDefault
NewGetRenterFilesDefault creates a GetRenterFilesDefault with default headers values
func (*GetRenterFilesDefault) Code ¶
func (o *GetRenterFilesDefault) Code() int
Code gets the status code for the get renter files default response
func (*GetRenterFilesDefault) Error ¶
func (o *GetRenterFilesDefault) Error() string
func (*GetRenterFilesDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterFilesDefault) GetPayload() *models.StandardError
type GetRenterFilesOK ¶
type GetRenterFilesOK struct {
Payload *GetRenterFilesOKBody
}
GetRenterFilesOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterFilesOK ¶
func NewGetRenterFilesOK() *GetRenterFilesOK
NewGetRenterFilesOK creates a GetRenterFilesOK with default headers values
func (*GetRenterFilesOK) Error ¶
func (o *GetRenterFilesOK) Error() string
func (*GetRenterFilesOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterFilesOK) GetPayload() *GetRenterFilesOKBody
type GetRenterFilesOKBody ¶
GetRenterFilesOKBody get renter files o k body swagger:model GetRenterFilesOKBody
func (*GetRenterFilesOKBody) ContextValidate ¶ added in v0.5.9
ContextValidate validate this get renter files o k body based on the context it is used
func (*GetRenterFilesOKBody) MarshalBinary ¶
func (o *GetRenterFilesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterFilesOKBody) UnmarshalBinary ¶
func (o *GetRenterFilesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterFilesParams ¶
type GetRenterFilesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterFilesParams contains all the parameters to send to the API endpoint
for the get renter files operation. Typically these are written to a http.Request.
func NewGetRenterFilesParams ¶
func NewGetRenterFilesParams() *GetRenterFilesParams
NewGetRenterFilesParams creates a new GetRenterFilesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterFilesParamsWithContext ¶
func NewGetRenterFilesParamsWithContext(ctx context.Context) *GetRenterFilesParams
NewGetRenterFilesParamsWithContext creates a new GetRenterFilesParams object with the ability to set a context for a request.
func NewGetRenterFilesParamsWithHTTPClient ¶
func NewGetRenterFilesParamsWithHTTPClient(client *http.Client) *GetRenterFilesParams
NewGetRenterFilesParamsWithHTTPClient creates a new GetRenterFilesParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterFilesParamsWithTimeout ¶
func NewGetRenterFilesParamsWithTimeout(timeout time.Duration) *GetRenterFilesParams
NewGetRenterFilesParamsWithTimeout creates a new GetRenterFilesParams object with the ability to set a timeout on a request.
func (*GetRenterFilesParams) SetContext ¶
func (o *GetRenterFilesParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter files params
func (*GetRenterFilesParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterFilesParams) SetDefaults()
SetDefaults hydrates default values in the get renter files params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterFilesParams) SetHTTPClient ¶
func (o *GetRenterFilesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter files params
func (*GetRenterFilesParams) SetTimeout ¶
func (o *GetRenterFilesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter files params
func (*GetRenterFilesParams) WithContext ¶
func (o *GetRenterFilesParams) WithContext(ctx context.Context) *GetRenterFilesParams
WithContext adds the context to the get renter files params
func (*GetRenterFilesParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterFilesParams) WithDefaults() *GetRenterFilesParams
WithDefaults hydrates default values in the get renter files params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterFilesParams) WithHTTPClient ¶
func (o *GetRenterFilesParams) WithHTTPClient(client *http.Client) *GetRenterFilesParams
WithHTTPClient adds the HTTPClient to the get renter files params
func (*GetRenterFilesParams) WithTimeout ¶
func (o *GetRenterFilesParams) WithTimeout(timeout time.Duration) *GetRenterFilesParams
WithTimeout adds the timeout to the get renter files params
func (*GetRenterFilesParams) WriteToRequest ¶
func (o *GetRenterFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterFilesReader ¶
type GetRenterFilesReader struct {
// contains filtered or unexported fields
}
GetRenterFilesReader is a Reader for the GetRenterFiles structure.
func (*GetRenterFilesReader) ReadResponse ¶
func (o *GetRenterFilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterOK ¶
type GetRenterOK struct {
Payload *GetRenterOKBody
}
GetRenterOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterOK ¶
func NewGetRenterOK() *GetRenterOK
NewGetRenterOK creates a GetRenterOK with default headers values
func (*GetRenterOK) Error ¶
func (o *GetRenterOK) Error() string
func (*GetRenterOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterOK) GetPayload() *GetRenterOKBody
type GetRenterOKBody ¶
type GetRenterOKBody struct { // Height at which the current allowance period began. // Example: 200 Currentperiod int64 `json:"currentperiod,omitempty"` // financialmetrics Financialmetrics *GetRenterOKBodyFinancialmetrics `json:"financialmetrics,omitempty"` // settings Settings *GetRenterOKBodySettings `json:"settings,omitempty"` }
GetRenterOKBody get renter o k body swagger:model GetRenterOKBody
func (*GetRenterOKBody) ContextValidate ¶ added in v0.5.9
ContextValidate validate this get renter o k body based on the context it is used
func (*GetRenterOKBody) MarshalBinary ¶
func (o *GetRenterOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterOKBody) UnmarshalBinary ¶
func (o *GetRenterOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterOKBodyFinancialmetrics ¶
type GetRenterOKBodyFinancialmetrics struct { // Amount of money spent on contract fees, transaction fees and siafund fees. In hastings. // Example: 1234 Contractfees string `json:"contractfees,omitempty"` // How much money, in hastings, the Renter has spent on file contracts, including fees. (deprecated, now totalallocated) // Example: 1234 Contractspending string `json:"contractspending,omitempty"` // Amount of money spent on downloads. // Example: 5678 Downloadspending string `json:"downloadspending,omitempty"` // Amount of money spend on storage. // Example: 1234 Storagespending string `json:"storagespending,omitempty"` // Total amount of money that the renter has put into contracts. Includes spent money and also money that will be returned to the renter. In hastings. // Example: 1234 Totalallocated string `json:"totalallocated,omitempty"` // Amount of money in the allowance that has not been spent. // Example: 1234 Unspent string `json:"unspent,omitempty"` // Amount of money spent on uploads. // Example: 5678 Uploadspending string `json:"uploadspending,omitempty"` }
GetRenterOKBodyFinancialmetrics Metrics about how much the Renter has spent on storage, uploads, and downloads. swagger:model GetRenterOKBodyFinancialmetrics
func (*GetRenterOKBodyFinancialmetrics) ContextValidate ¶ added in v0.5.9
func (o *GetRenterOKBodyFinancialmetrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter o k body financialmetrics based on context it is used
func (*GetRenterOKBodyFinancialmetrics) MarshalBinary ¶
func (o *GetRenterOKBodyFinancialmetrics) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterOKBodyFinancialmetrics) UnmarshalBinary ¶
func (o *GetRenterOKBodyFinancialmetrics) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterOKBodySettings ¶
type GetRenterOKBodySettings struct { // allowance Allowance *GetRenterOKBodySettingsAllowance `json:"allowance,omitempty"` // bytes per second. MaxDownloadSpeed by defaul is unlimited but can be set by the user to manage bandwidth // Example: 1234 Maxdownloadspeed int64 `json:"maxdownloadspeed,omitempty"` // bytes per second. MaxUploadSpeed by defaul is unlimited but can be set by the user to manage bandwidth // Example: 1234 Maxuploadspeed int64 `json:"maxuploadspeed,omitempty"` // The StreamCacheSize is the number of data chunks that will be cached during streaming // Example: 4 Streamcachesize int64 `json:"streamcachesize,omitempty"` }
GetRenterOKBodySettings Settings that control the behavior of the renter. swagger:model GetRenterOKBodySettings
func (*GetRenterOKBodySettings) ContextValidate ¶ added in v0.5.9
func (o *GetRenterOKBodySettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get renter o k body settings based on the context it is used
func (*GetRenterOKBodySettings) MarshalBinary ¶
func (o *GetRenterOKBodySettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterOKBodySettings) UnmarshalBinary ¶
func (o *GetRenterOKBodySettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterOKBodySettingsAllowance ¶
type GetRenterOKBodySettingsAllowance struct { // Amount of money allocated for contracts. Funds are spent on both storage and bandwidth. // Example: 1234 Funds string `json:"funds,omitempty"` // Number of hosts that contracts will be formed with. // Example: 24 Hosts int64 `json:"hosts,omitempty"` // Duration of contracts formed, in number of blocks. // Example: 6048 Period int64 `json:"period,omitempty"` // If the current blockheight + the renew window >= the height the contract is scheduled to end, the contract is renewed automatically. Is always nonzero. // Example: 3024 Renewwindow int64 `json:"renewwindow,omitempty"` }
GetRenterOKBodySettingsAllowance Allowance dictates how much the renter is allowed to spend in a given period. Note that funds are spent on both storage and bandwidth. swagger:model GetRenterOKBodySettingsAllowance
func (*GetRenterOKBodySettingsAllowance) ContextValidate ¶ added in v0.5.9
func (o *GetRenterOKBodySettingsAllowance) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get renter o k body settings allowance based on context it is used
func (*GetRenterOKBodySettingsAllowance) MarshalBinary ¶
func (o *GetRenterOKBodySettingsAllowance) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterOKBodySettingsAllowance) UnmarshalBinary ¶
func (o *GetRenterOKBodySettingsAllowance) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterParams ¶
type GetRenterParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterParams contains all the parameters to send to the API endpoint
for the get renter operation. Typically these are written to a http.Request.
func NewGetRenterParams ¶
func NewGetRenterParams() *GetRenterParams
NewGetRenterParams creates a new GetRenterParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterParamsWithContext ¶
func NewGetRenterParamsWithContext(ctx context.Context) *GetRenterParams
NewGetRenterParamsWithContext creates a new GetRenterParams object with the ability to set a context for a request.
func NewGetRenterParamsWithHTTPClient ¶
func NewGetRenterParamsWithHTTPClient(client *http.Client) *GetRenterParams
NewGetRenterParamsWithHTTPClient creates a new GetRenterParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterParamsWithTimeout ¶
func NewGetRenterParamsWithTimeout(timeout time.Duration) *GetRenterParams
NewGetRenterParamsWithTimeout creates a new GetRenterParams object with the ability to set a timeout on a request.
func (*GetRenterParams) SetContext ¶
func (o *GetRenterParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter params
func (*GetRenterParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterParams) SetDefaults()
SetDefaults hydrates default values in the get renter params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterParams) SetHTTPClient ¶
func (o *GetRenterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter params
func (*GetRenterParams) SetTimeout ¶
func (o *GetRenterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter params
func (*GetRenterParams) WithContext ¶
func (o *GetRenterParams) WithContext(ctx context.Context) *GetRenterParams
WithContext adds the context to the get renter params
func (*GetRenterParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterParams) WithDefaults() *GetRenterParams
WithDefaults hydrates default values in the get renter params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterParams) WithHTTPClient ¶
func (o *GetRenterParams) WithHTTPClient(client *http.Client) *GetRenterParams
WithHTTPClient adds the HTTPClient to the get renter params
func (*GetRenterParams) WithTimeout ¶
func (o *GetRenterParams) WithTimeout(timeout time.Duration) *GetRenterParams
WithTimeout adds the timeout to the get renter params
func (*GetRenterParams) WriteToRequest ¶
func (o *GetRenterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterPricesDefault ¶
type GetRenterPricesDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterPricesDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterPricesDefault ¶
func NewGetRenterPricesDefault(code int) *GetRenterPricesDefault
NewGetRenterPricesDefault creates a GetRenterPricesDefault with default headers values
func (*GetRenterPricesDefault) Code ¶
func (o *GetRenterPricesDefault) Code() int
Code gets the status code for the get renter prices default response
func (*GetRenterPricesDefault) Error ¶
func (o *GetRenterPricesDefault) Error() string
func (*GetRenterPricesDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterPricesDefault) GetPayload() *models.StandardError
type GetRenterPricesOK ¶
type GetRenterPricesOK struct {
Payload *GetRenterPricesOKBody
}
GetRenterPricesOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterPricesOK ¶
func NewGetRenterPricesOK() *GetRenterPricesOK
NewGetRenterPricesOK creates a GetRenterPricesOK with default headers values
func (*GetRenterPricesOK) Error ¶
func (o *GetRenterPricesOK) Error() string
func (*GetRenterPricesOK) GetPayload ¶ added in v0.5.4
func (o *GetRenterPricesOK) GetPayload() *GetRenterPricesOKBody
type GetRenterPricesOKBody ¶
type GetRenterPricesOKBody struct { // The estimated cost of downloading one terabyte of data from the network. // Example: 1234 Downloadterabyte string `json:"downloadterabyte,omitempty"` // The estimated cost of forming a set of contracts on the network. This cost also applies to the estimated cost of renewing the renter's set of contracts. // Example: 1234 Formcontracts string `json:"formcontracts,omitempty"` // The estimated cost of storing one terabyte of data on the network for a month, including accounting for redundancy. // Example: 1234 Storageterabytemonth string `json:"storageterabytemonth,omitempty"` // The estimated cost of uploading one terabyte of data to the network, including accounting for redundancy. // Example: 1234 Uploadterabyte string `json:"uploadterabyte,omitempty"` }
GetRenterPricesOKBody get renter prices o k body swagger:model GetRenterPricesOKBody
func (*GetRenterPricesOKBody) ContextValidate ¶ added in v0.5.9
ContextValidate validates this get renter prices o k body based on context it is used
func (*GetRenterPricesOKBody) MarshalBinary ¶
func (o *GetRenterPricesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRenterPricesOKBody) UnmarshalBinary ¶
func (o *GetRenterPricesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRenterPricesParams ¶
type GetRenterPricesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterPricesParams contains all the parameters to send to the API endpoint
for the get renter prices operation. Typically these are written to a http.Request.
func NewGetRenterPricesParams ¶
func NewGetRenterPricesParams() *GetRenterPricesParams
NewGetRenterPricesParams creates a new GetRenterPricesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterPricesParamsWithContext ¶
func NewGetRenterPricesParamsWithContext(ctx context.Context) *GetRenterPricesParams
NewGetRenterPricesParamsWithContext creates a new GetRenterPricesParams object with the ability to set a context for a request.
func NewGetRenterPricesParamsWithHTTPClient ¶
func NewGetRenterPricesParamsWithHTTPClient(client *http.Client) *GetRenterPricesParams
NewGetRenterPricesParamsWithHTTPClient creates a new GetRenterPricesParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterPricesParamsWithTimeout ¶
func NewGetRenterPricesParamsWithTimeout(timeout time.Duration) *GetRenterPricesParams
NewGetRenterPricesParamsWithTimeout creates a new GetRenterPricesParams object with the ability to set a timeout on a request.
func (*GetRenterPricesParams) SetContext ¶
func (o *GetRenterPricesParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter prices params
func (*GetRenterPricesParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterPricesParams) SetDefaults()
SetDefaults hydrates default values in the get renter prices params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterPricesParams) SetHTTPClient ¶
func (o *GetRenterPricesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter prices params
func (*GetRenterPricesParams) SetTimeout ¶
func (o *GetRenterPricesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter prices params
func (*GetRenterPricesParams) WithContext ¶
func (o *GetRenterPricesParams) WithContext(ctx context.Context) *GetRenterPricesParams
WithContext adds the context to the get renter prices params
func (*GetRenterPricesParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterPricesParams) WithDefaults() *GetRenterPricesParams
WithDefaults hydrates default values in the get renter prices params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterPricesParams) WithHTTPClient ¶
func (o *GetRenterPricesParams) WithHTTPClient(client *http.Client) *GetRenterPricesParams
WithHTTPClient adds the HTTPClient to the get renter prices params
func (*GetRenterPricesParams) WithTimeout ¶
func (o *GetRenterPricesParams) WithTimeout(timeout time.Duration) *GetRenterPricesParams
WithTimeout adds the timeout to the get renter prices params
func (*GetRenterPricesParams) WriteToRequest ¶
func (o *GetRenterPricesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterPricesReader ¶
type GetRenterPricesReader struct {
// contains filtered or unexported fields
}
GetRenterPricesReader is a Reader for the GetRenterPrices structure.
func (*GetRenterPricesReader) ReadResponse ¶
func (o *GetRenterPricesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterReader ¶
type GetRenterReader struct {
// contains filtered or unexported fields
}
GetRenterReader is a Reader for the GetRenter structure.
func (*GetRenterReader) ReadResponse ¶
func (o *GetRenterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRenterStreamSiapathDefault ¶
type GetRenterStreamSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetRenterStreamSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewGetRenterStreamSiapathDefault ¶
func NewGetRenterStreamSiapathDefault(code int) *GetRenterStreamSiapathDefault
NewGetRenterStreamSiapathDefault creates a GetRenterStreamSiapathDefault with default headers values
func (*GetRenterStreamSiapathDefault) Code ¶
func (o *GetRenterStreamSiapathDefault) Code() int
Code gets the status code for the get renter stream siapath default response
func (*GetRenterStreamSiapathDefault) Error ¶
func (o *GetRenterStreamSiapathDefault) Error() string
func (*GetRenterStreamSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *GetRenterStreamSiapathDefault) GetPayload() *models.StandardError
type GetRenterStreamSiapathOK ¶
type GetRenterStreamSiapathOK struct { }
GetRenterStreamSiapathOK describes a response with status code 200, with default header values.
Successful Response
func NewGetRenterStreamSiapathOK ¶
func NewGetRenterStreamSiapathOK() *GetRenterStreamSiapathOK
NewGetRenterStreamSiapathOK creates a GetRenterStreamSiapathOK with default headers values
func (*GetRenterStreamSiapathOK) Error ¶
func (o *GetRenterStreamSiapathOK) Error() string
type GetRenterStreamSiapathParams ¶
type GetRenterStreamSiapathParams struct { // Siapath. Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRenterStreamSiapathParams contains all the parameters to send to the API endpoint
for the get renter stream siapath operation. Typically these are written to a http.Request.
func NewGetRenterStreamSiapathParams ¶
func NewGetRenterStreamSiapathParams() *GetRenterStreamSiapathParams
NewGetRenterStreamSiapathParams creates a new GetRenterStreamSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRenterStreamSiapathParamsWithContext ¶
func NewGetRenterStreamSiapathParamsWithContext(ctx context.Context) *GetRenterStreamSiapathParams
NewGetRenterStreamSiapathParamsWithContext creates a new GetRenterStreamSiapathParams object with the ability to set a context for a request.
func NewGetRenterStreamSiapathParamsWithHTTPClient ¶
func NewGetRenterStreamSiapathParamsWithHTTPClient(client *http.Client) *GetRenterStreamSiapathParams
NewGetRenterStreamSiapathParamsWithHTTPClient creates a new GetRenterStreamSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewGetRenterStreamSiapathParamsWithTimeout ¶
func NewGetRenterStreamSiapathParamsWithTimeout(timeout time.Duration) *GetRenterStreamSiapathParams
NewGetRenterStreamSiapathParamsWithTimeout creates a new GetRenterStreamSiapathParams object with the ability to set a timeout on a request.
func (*GetRenterStreamSiapathParams) SetContext ¶
func (o *GetRenterStreamSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *GetRenterStreamSiapathParams) SetDefaults()
SetDefaults hydrates default values in the get renter stream siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterStreamSiapathParams) SetHTTPClient ¶
func (o *GetRenterStreamSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) SetSiapath ¶
func (o *GetRenterStreamSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) SetTimeout ¶
func (o *GetRenterStreamSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) WithContext ¶
func (o *GetRenterStreamSiapathParams) WithContext(ctx context.Context) *GetRenterStreamSiapathParams
WithContext adds the context to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *GetRenterStreamSiapathParams) WithDefaults() *GetRenterStreamSiapathParams
WithDefaults hydrates default values in the get renter stream siapath params (not the query body).
All values with no default are reset to their zero value.
func (*GetRenterStreamSiapathParams) WithHTTPClient ¶
func (o *GetRenterStreamSiapathParams) WithHTTPClient(client *http.Client) *GetRenterStreamSiapathParams
WithHTTPClient adds the HTTPClient to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) WithSiapath ¶
func (o *GetRenterStreamSiapathParams) WithSiapath(siapath string) *GetRenterStreamSiapathParams
WithSiapath adds the siapath to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) WithTimeout ¶
func (o *GetRenterStreamSiapathParams) WithTimeout(timeout time.Duration) *GetRenterStreamSiapathParams
WithTimeout adds the timeout to the get renter stream siapath params
func (*GetRenterStreamSiapathParams) WriteToRequest ¶
func (o *GetRenterStreamSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRenterStreamSiapathReader ¶
type GetRenterStreamSiapathReader struct {
// contains filtered or unexported fields
}
GetRenterStreamSiapathReader is a Reader for the GetRenterStreamSiapath structure.
func (*GetRenterStreamSiapathReader) ReadResponse ¶
func (o *GetRenterStreamSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterBackupsCreateDefault ¶ added in v0.5.4
type PostRenterBackupsCreateDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterBackupsCreateDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterBackupsCreateDefault ¶ added in v0.5.4
func NewPostRenterBackupsCreateDefault(code int) *PostRenterBackupsCreateDefault
NewPostRenterBackupsCreateDefault creates a PostRenterBackupsCreateDefault with default headers values
func (*PostRenterBackupsCreateDefault) Code ¶ added in v0.5.4
func (o *PostRenterBackupsCreateDefault) Code() int
Code gets the status code for the post renter backups create default response
func (*PostRenterBackupsCreateDefault) Error ¶ added in v0.5.4
func (o *PostRenterBackupsCreateDefault) Error() string
func (*PostRenterBackupsCreateDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterBackupsCreateDefault) GetPayload() *models.StandardError
type PostRenterBackupsCreateNoContent ¶ added in v0.5.4
type PostRenterBackupsCreateNoContent struct { }
PostRenterBackupsCreateNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterBackupsCreateNoContent ¶ added in v0.5.4
func NewPostRenterBackupsCreateNoContent() *PostRenterBackupsCreateNoContent
NewPostRenterBackupsCreateNoContent creates a PostRenterBackupsCreateNoContent with default headers values
func (*PostRenterBackupsCreateNoContent) Error ¶ added in v0.5.4
func (o *PostRenterBackupsCreateNoContent) Error() string
type PostRenterBackupsCreateParams ¶ added in v0.5.4
type PostRenterBackupsCreateParams struct { // Name. Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterBackupsCreateParams contains all the parameters to send to the API endpoint
for the post renter backups create operation. Typically these are written to a http.Request.
func NewPostRenterBackupsCreateParams ¶ added in v0.5.4
func NewPostRenterBackupsCreateParams() *PostRenterBackupsCreateParams
NewPostRenterBackupsCreateParams creates a new PostRenterBackupsCreateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterBackupsCreateParamsWithContext ¶ added in v0.5.4
func NewPostRenterBackupsCreateParamsWithContext(ctx context.Context) *PostRenterBackupsCreateParams
NewPostRenterBackupsCreateParamsWithContext creates a new PostRenterBackupsCreateParams object with the ability to set a context for a request.
func NewPostRenterBackupsCreateParamsWithHTTPClient ¶ added in v0.5.4
func NewPostRenterBackupsCreateParamsWithHTTPClient(client *http.Client) *PostRenterBackupsCreateParams
NewPostRenterBackupsCreateParamsWithHTTPClient creates a new PostRenterBackupsCreateParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterBackupsCreateParamsWithTimeout ¶ added in v0.5.4
func NewPostRenterBackupsCreateParamsWithTimeout(timeout time.Duration) *PostRenterBackupsCreateParams
NewPostRenterBackupsCreateParamsWithTimeout creates a new PostRenterBackupsCreateParams object with the ability to set a timeout on a request.
func (*PostRenterBackupsCreateParams) SetContext ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter backups create params
func (*PostRenterBackupsCreateParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterBackupsCreateParams) SetDefaults()
SetDefaults hydrates default values in the post renter backups create params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterBackupsCreateParams) SetHTTPClient ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter backups create params
func (*PostRenterBackupsCreateParams) SetName ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) SetName(name string)
SetName adds the name to the post renter backups create params
func (*PostRenterBackupsCreateParams) SetTimeout ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter backups create params
func (*PostRenterBackupsCreateParams) WithContext ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) WithContext(ctx context.Context) *PostRenterBackupsCreateParams
WithContext adds the context to the post renter backups create params
func (*PostRenterBackupsCreateParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterBackupsCreateParams) WithDefaults() *PostRenterBackupsCreateParams
WithDefaults hydrates default values in the post renter backups create params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterBackupsCreateParams) WithHTTPClient ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) WithHTTPClient(client *http.Client) *PostRenterBackupsCreateParams
WithHTTPClient adds the HTTPClient to the post renter backups create params
func (*PostRenterBackupsCreateParams) WithName ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) WithName(name string) *PostRenterBackupsCreateParams
WithName adds the name to the post renter backups create params
func (*PostRenterBackupsCreateParams) WithTimeout ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) WithTimeout(timeout time.Duration) *PostRenterBackupsCreateParams
WithTimeout adds the timeout to the post renter backups create params
func (*PostRenterBackupsCreateParams) WriteToRequest ¶ added in v0.5.4
func (o *PostRenterBackupsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterBackupsCreateReader ¶ added in v0.5.4
type PostRenterBackupsCreateReader struct {
// contains filtered or unexported fields
}
PostRenterBackupsCreateReader is a Reader for the PostRenterBackupsCreate structure.
func (*PostRenterBackupsCreateReader) ReadResponse ¶ added in v0.5.4
func (o *PostRenterBackupsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterBackupsRestoreDefault ¶ added in v0.5.4
type PostRenterBackupsRestoreDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterBackupsRestoreDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterBackupsRestoreDefault ¶ added in v0.5.4
func NewPostRenterBackupsRestoreDefault(code int) *PostRenterBackupsRestoreDefault
NewPostRenterBackupsRestoreDefault creates a PostRenterBackupsRestoreDefault with default headers values
func (*PostRenterBackupsRestoreDefault) Code ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreDefault) Code() int
Code gets the status code for the post renter backups restore default response
func (*PostRenterBackupsRestoreDefault) Error ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreDefault) Error() string
func (*PostRenterBackupsRestoreDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreDefault) GetPayload() *models.StandardError
type PostRenterBackupsRestoreNoContent ¶ added in v0.5.4
type PostRenterBackupsRestoreNoContent struct { }
PostRenterBackupsRestoreNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterBackupsRestoreNoContent ¶ added in v0.5.4
func NewPostRenterBackupsRestoreNoContent() *PostRenterBackupsRestoreNoContent
NewPostRenterBackupsRestoreNoContent creates a PostRenterBackupsRestoreNoContent with default headers values
func (*PostRenterBackupsRestoreNoContent) Error ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreNoContent) Error() string
type PostRenterBackupsRestoreParams ¶ added in v0.5.4
type PostRenterBackupsRestoreParams struct { // Name. Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterBackupsRestoreParams contains all the parameters to send to the API endpoint
for the post renter backups restore operation. Typically these are written to a http.Request.
func NewPostRenterBackupsRestoreParams ¶ added in v0.5.4
func NewPostRenterBackupsRestoreParams() *PostRenterBackupsRestoreParams
NewPostRenterBackupsRestoreParams creates a new PostRenterBackupsRestoreParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterBackupsRestoreParamsWithContext ¶ added in v0.5.4
func NewPostRenterBackupsRestoreParamsWithContext(ctx context.Context) *PostRenterBackupsRestoreParams
NewPostRenterBackupsRestoreParamsWithContext creates a new PostRenterBackupsRestoreParams object with the ability to set a context for a request.
func NewPostRenterBackupsRestoreParamsWithHTTPClient ¶ added in v0.5.4
func NewPostRenterBackupsRestoreParamsWithHTTPClient(client *http.Client) *PostRenterBackupsRestoreParams
NewPostRenterBackupsRestoreParamsWithHTTPClient creates a new PostRenterBackupsRestoreParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterBackupsRestoreParamsWithTimeout ¶ added in v0.5.4
func NewPostRenterBackupsRestoreParamsWithTimeout(timeout time.Duration) *PostRenterBackupsRestoreParams
NewPostRenterBackupsRestoreParamsWithTimeout creates a new PostRenterBackupsRestoreParams object with the ability to set a timeout on a request.
func (*PostRenterBackupsRestoreParams) SetContext ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterBackupsRestoreParams) SetDefaults()
SetDefaults hydrates default values in the post renter backups restore params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterBackupsRestoreParams) SetHTTPClient ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) SetName ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) SetName(name string)
SetName adds the name to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) SetTimeout ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) WithContext ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) WithContext(ctx context.Context) *PostRenterBackupsRestoreParams
WithContext adds the context to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterBackupsRestoreParams) WithDefaults() *PostRenterBackupsRestoreParams
WithDefaults hydrates default values in the post renter backups restore params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterBackupsRestoreParams) WithHTTPClient ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) WithHTTPClient(client *http.Client) *PostRenterBackupsRestoreParams
WithHTTPClient adds the HTTPClient to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) WithName ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) WithName(name string) *PostRenterBackupsRestoreParams
WithName adds the name to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) WithTimeout ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) WithTimeout(timeout time.Duration) *PostRenterBackupsRestoreParams
WithTimeout adds the timeout to the post renter backups restore params
func (*PostRenterBackupsRestoreParams) WriteToRequest ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterBackupsRestoreReader ¶ added in v0.5.4
type PostRenterBackupsRestoreReader struct {
// contains filtered or unexported fields
}
PostRenterBackupsRestoreReader is a Reader for the PostRenterBackupsRestore structure.
func (*PostRenterBackupsRestoreReader) ReadResponse ¶ added in v0.5.4
func (o *PostRenterBackupsRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterDefault ¶
type PostRenterDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterDefault ¶
func NewPostRenterDefault(code int) *PostRenterDefault
NewPostRenterDefault creates a PostRenterDefault with default headers values
func (*PostRenterDefault) Code ¶
func (o *PostRenterDefault) Code() int
Code gets the status code for the post renter default response
func (*PostRenterDefault) Error ¶
func (o *PostRenterDefault) Error() string
func (*PostRenterDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterDefault) GetPayload() *models.StandardError
type PostRenterDeleteSiapathDefault ¶
type PostRenterDeleteSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterDeleteSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterDeleteSiapathDefault ¶
func NewPostRenterDeleteSiapathDefault(code int) *PostRenterDeleteSiapathDefault
NewPostRenterDeleteSiapathDefault creates a PostRenterDeleteSiapathDefault with default headers values
func (*PostRenterDeleteSiapathDefault) Code ¶
func (o *PostRenterDeleteSiapathDefault) Code() int
Code gets the status code for the post renter delete siapath default response
func (*PostRenterDeleteSiapathDefault) Error ¶
func (o *PostRenterDeleteSiapathDefault) Error() string
func (*PostRenterDeleteSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterDeleteSiapathDefault) GetPayload() *models.StandardError
type PostRenterDeleteSiapathNoContent ¶
type PostRenterDeleteSiapathNoContent struct { }
PostRenterDeleteSiapathNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterDeleteSiapathNoContent ¶
func NewPostRenterDeleteSiapathNoContent() *PostRenterDeleteSiapathNoContent
NewPostRenterDeleteSiapathNoContent creates a PostRenterDeleteSiapathNoContent with default headers values
func (*PostRenterDeleteSiapathNoContent) Error ¶
func (o *PostRenterDeleteSiapathNoContent) Error() string
type PostRenterDeleteSiapathParams ¶
type PostRenterDeleteSiapathParams struct { /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterDeleteSiapathParams contains all the parameters to send to the API endpoint
for the post renter delete siapath operation. Typically these are written to a http.Request.
func NewPostRenterDeleteSiapathParams ¶
func NewPostRenterDeleteSiapathParams() *PostRenterDeleteSiapathParams
NewPostRenterDeleteSiapathParams creates a new PostRenterDeleteSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterDeleteSiapathParamsWithContext ¶
func NewPostRenterDeleteSiapathParamsWithContext(ctx context.Context) *PostRenterDeleteSiapathParams
NewPostRenterDeleteSiapathParamsWithContext creates a new PostRenterDeleteSiapathParams object with the ability to set a context for a request.
func NewPostRenterDeleteSiapathParamsWithHTTPClient ¶
func NewPostRenterDeleteSiapathParamsWithHTTPClient(client *http.Client) *PostRenterDeleteSiapathParams
NewPostRenterDeleteSiapathParamsWithHTTPClient creates a new PostRenterDeleteSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterDeleteSiapathParamsWithTimeout ¶
func NewPostRenterDeleteSiapathParamsWithTimeout(timeout time.Duration) *PostRenterDeleteSiapathParams
NewPostRenterDeleteSiapathParamsWithTimeout creates a new PostRenterDeleteSiapathParams object with the ability to set a timeout on a request.
func (*PostRenterDeleteSiapathParams) SetContext ¶
func (o *PostRenterDeleteSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterDeleteSiapathParams) SetDefaults()
SetDefaults hydrates default values in the post renter delete siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterDeleteSiapathParams) SetHTTPClient ¶
func (o *PostRenterDeleteSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) SetSiapath ¶
func (o *PostRenterDeleteSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) SetTimeout ¶
func (o *PostRenterDeleteSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) WithContext ¶
func (o *PostRenterDeleteSiapathParams) WithContext(ctx context.Context) *PostRenterDeleteSiapathParams
WithContext adds the context to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterDeleteSiapathParams) WithDefaults() *PostRenterDeleteSiapathParams
WithDefaults hydrates default values in the post renter delete siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterDeleteSiapathParams) WithHTTPClient ¶
func (o *PostRenterDeleteSiapathParams) WithHTTPClient(client *http.Client) *PostRenterDeleteSiapathParams
WithHTTPClient adds the HTTPClient to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) WithSiapath ¶
func (o *PostRenterDeleteSiapathParams) WithSiapath(siapath string) *PostRenterDeleteSiapathParams
WithSiapath adds the siapath to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) WithTimeout ¶
func (o *PostRenterDeleteSiapathParams) WithTimeout(timeout time.Duration) *PostRenterDeleteSiapathParams
WithTimeout adds the timeout to the post renter delete siapath params
func (*PostRenterDeleteSiapathParams) WriteToRequest ¶
func (o *PostRenterDeleteSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterDeleteSiapathReader ¶
type PostRenterDeleteSiapathReader struct {
// contains filtered or unexported fields
}
PostRenterDeleteSiapathReader is a Reader for the PostRenterDeleteSiapath structure.
func (*PostRenterDeleteSiapathReader) ReadResponse ¶
func (o *PostRenterDeleteSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterDirSiapathDefault ¶ added in v0.5.4
type PostRenterDirSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterDirSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterDirSiapathDefault ¶ added in v0.5.4
func NewPostRenterDirSiapathDefault(code int) *PostRenterDirSiapathDefault
NewPostRenterDirSiapathDefault creates a PostRenterDirSiapathDefault with default headers values
func (*PostRenterDirSiapathDefault) Code ¶ added in v0.5.4
func (o *PostRenterDirSiapathDefault) Code() int
Code gets the status code for the post renter dir siapath default response
func (*PostRenterDirSiapathDefault) Error ¶ added in v0.5.4
func (o *PostRenterDirSiapathDefault) Error() string
func (*PostRenterDirSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterDirSiapathDefault) GetPayload() *models.StandardError
type PostRenterDirSiapathNoContent ¶ added in v0.5.4
type PostRenterDirSiapathNoContent struct { }
PostRenterDirSiapathNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterDirSiapathNoContent ¶ added in v0.5.4
func NewPostRenterDirSiapathNoContent() *PostRenterDirSiapathNoContent
NewPostRenterDirSiapathNoContent creates a PostRenterDirSiapathNoContent with default headers values
func (*PostRenterDirSiapathNoContent) Error ¶ added in v0.5.4
func (o *PostRenterDirSiapathNoContent) Error() string
type PostRenterDirSiapathParams ¶ added in v0.5.4
type PostRenterDirSiapathParams struct { /* Action. Action can be either create or delete. - create will create an empty directory on the sia network - delete will remove a directory and its contents from the sia network - rename will rename a directory on the sia network */ Action string /* Newsiapath. The new siapath of the renamed folder. Only required for the rename action. Location of the file in the renter on the network. */ Newsiapath *string /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterDirSiapathParams contains all the parameters to send to the API endpoint
for the post renter dir siapath operation. Typically these are written to a http.Request.
func NewPostRenterDirSiapathParams ¶ added in v0.5.4
func NewPostRenterDirSiapathParams() *PostRenterDirSiapathParams
NewPostRenterDirSiapathParams creates a new PostRenterDirSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterDirSiapathParamsWithContext ¶ added in v0.5.4
func NewPostRenterDirSiapathParamsWithContext(ctx context.Context) *PostRenterDirSiapathParams
NewPostRenterDirSiapathParamsWithContext creates a new PostRenterDirSiapathParams object with the ability to set a context for a request.
func NewPostRenterDirSiapathParamsWithHTTPClient ¶ added in v0.5.4
func NewPostRenterDirSiapathParamsWithHTTPClient(client *http.Client) *PostRenterDirSiapathParams
NewPostRenterDirSiapathParamsWithHTTPClient creates a new PostRenterDirSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterDirSiapathParamsWithTimeout ¶ added in v0.5.4
func NewPostRenterDirSiapathParamsWithTimeout(timeout time.Duration) *PostRenterDirSiapathParams
NewPostRenterDirSiapathParamsWithTimeout creates a new PostRenterDirSiapathParams object with the ability to set a timeout on a request.
func (*PostRenterDirSiapathParams) SetAction ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) SetAction(action string)
SetAction adds the action to the post renter dir siapath params
func (*PostRenterDirSiapathParams) SetContext ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter dir siapath params
func (*PostRenterDirSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterDirSiapathParams) SetDefaults()
SetDefaults hydrates default values in the post renter dir siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterDirSiapathParams) SetHTTPClient ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter dir siapath params
func (*PostRenterDirSiapathParams) SetNewsiapath ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) SetNewsiapath(newsiapath *string)
SetNewsiapath adds the newsiapath to the post renter dir siapath params
func (*PostRenterDirSiapathParams) SetSiapath ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the post renter dir siapath params
func (*PostRenterDirSiapathParams) SetTimeout ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WithAction ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WithAction(action string) *PostRenterDirSiapathParams
WithAction adds the action to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WithContext ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WithContext(ctx context.Context) *PostRenterDirSiapathParams
WithContext adds the context to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterDirSiapathParams) WithDefaults() *PostRenterDirSiapathParams
WithDefaults hydrates default values in the post renter dir siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterDirSiapathParams) WithHTTPClient ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WithHTTPClient(client *http.Client) *PostRenterDirSiapathParams
WithHTTPClient adds the HTTPClient to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WithNewsiapath ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WithNewsiapath(newsiapath *string) *PostRenterDirSiapathParams
WithNewsiapath adds the newsiapath to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WithSiapath ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WithSiapath(siapath string) *PostRenterDirSiapathParams
WithSiapath adds the siapath to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WithTimeout ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WithTimeout(timeout time.Duration) *PostRenterDirSiapathParams
WithTimeout adds the timeout to the post renter dir siapath params
func (*PostRenterDirSiapathParams) WriteToRequest ¶ added in v0.5.4
func (o *PostRenterDirSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterDirSiapathReader ¶ added in v0.5.4
type PostRenterDirSiapathReader struct {
// contains filtered or unexported fields
}
PostRenterDirSiapathReader is a Reader for the PostRenterDirSiapath structure.
func (*PostRenterDirSiapathReader) ReadResponse ¶ added in v0.5.4
func (o *PostRenterDirSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterDownloadsClearDefault ¶ added in v0.5.4
type PostRenterDownloadsClearDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterDownloadsClearDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterDownloadsClearDefault ¶ added in v0.5.4
func NewPostRenterDownloadsClearDefault(code int) *PostRenterDownloadsClearDefault
NewPostRenterDownloadsClearDefault creates a PostRenterDownloadsClearDefault with default headers values
func (*PostRenterDownloadsClearDefault) Code ¶ added in v0.5.4
func (o *PostRenterDownloadsClearDefault) Code() int
Code gets the status code for the post renter downloads clear default response
func (*PostRenterDownloadsClearDefault) Error ¶ added in v0.5.4
func (o *PostRenterDownloadsClearDefault) Error() string
func (*PostRenterDownloadsClearDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterDownloadsClearDefault) GetPayload() *models.StandardError
type PostRenterDownloadsClearNoContent ¶ added in v0.5.4
type PostRenterDownloadsClearNoContent struct { }
PostRenterDownloadsClearNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterDownloadsClearNoContent ¶ added in v0.5.4
func NewPostRenterDownloadsClearNoContent() *PostRenterDownloadsClearNoContent
NewPostRenterDownloadsClearNoContent creates a PostRenterDownloadsClearNoContent with default headers values
func (*PostRenterDownloadsClearNoContent) Error ¶ added in v0.5.4
func (o *PostRenterDownloadsClearNoContent) Error() string
type PostRenterDownloadsClearParams ¶ added in v0.5.4
type PostRenterDownloadsClearParams struct { /* After. unix timestamp found in the download history Format: int64 */ After *int64 /* Before. unix timestamp found in the download history Format: int64 */ Before *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterDownloadsClearParams contains all the parameters to send to the API endpoint
for the post renter downloads clear operation. Typically these are written to a http.Request.
func NewPostRenterDownloadsClearParams ¶ added in v0.5.4
func NewPostRenterDownloadsClearParams() *PostRenterDownloadsClearParams
NewPostRenterDownloadsClearParams creates a new PostRenterDownloadsClearParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterDownloadsClearParamsWithContext ¶ added in v0.5.4
func NewPostRenterDownloadsClearParamsWithContext(ctx context.Context) *PostRenterDownloadsClearParams
NewPostRenterDownloadsClearParamsWithContext creates a new PostRenterDownloadsClearParams object with the ability to set a context for a request.
func NewPostRenterDownloadsClearParamsWithHTTPClient ¶ added in v0.5.4
func NewPostRenterDownloadsClearParamsWithHTTPClient(client *http.Client) *PostRenterDownloadsClearParams
NewPostRenterDownloadsClearParamsWithHTTPClient creates a new PostRenterDownloadsClearParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterDownloadsClearParamsWithTimeout ¶ added in v0.5.4
func NewPostRenterDownloadsClearParamsWithTimeout(timeout time.Duration) *PostRenterDownloadsClearParams
NewPostRenterDownloadsClearParamsWithTimeout creates a new PostRenterDownloadsClearParams object with the ability to set a timeout on a request.
func (*PostRenterDownloadsClearParams) SetAfter ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) SetAfter(after *int64)
SetAfter adds the after to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) SetBefore ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) SetBefore(before *int64)
SetBefore adds the before to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) SetContext ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterDownloadsClearParams) SetDefaults()
SetDefaults hydrates default values in the post renter downloads clear params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterDownloadsClearParams) SetHTTPClient ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) SetTimeout ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) WithAfter ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) WithAfter(after *int64) *PostRenterDownloadsClearParams
WithAfter adds the after to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) WithBefore ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) WithBefore(before *int64) *PostRenterDownloadsClearParams
WithBefore adds the before to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) WithContext ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) WithContext(ctx context.Context) *PostRenterDownloadsClearParams
WithContext adds the context to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterDownloadsClearParams) WithDefaults() *PostRenterDownloadsClearParams
WithDefaults hydrates default values in the post renter downloads clear params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterDownloadsClearParams) WithHTTPClient ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) WithHTTPClient(client *http.Client) *PostRenterDownloadsClearParams
WithHTTPClient adds the HTTPClient to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) WithTimeout ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) WithTimeout(timeout time.Duration) *PostRenterDownloadsClearParams
WithTimeout adds the timeout to the post renter downloads clear params
func (*PostRenterDownloadsClearParams) WriteToRequest ¶ added in v0.5.4
func (o *PostRenterDownloadsClearParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterDownloadsClearReader ¶ added in v0.5.4
type PostRenterDownloadsClearReader struct {
// contains filtered or unexported fields
}
PostRenterDownloadsClearReader is a Reader for the PostRenterDownloadsClear structure.
func (*PostRenterDownloadsClearReader) ReadResponse ¶ added in v0.5.4
func (o *PostRenterDownloadsClearReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterNoContent ¶
type PostRenterNoContent struct { }
PostRenterNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterNoContent ¶
func NewPostRenterNoContent() *PostRenterNoContent
NewPostRenterNoContent creates a PostRenterNoContent with default headers values
func (*PostRenterNoContent) Error ¶
func (o *PostRenterNoContent) Error() string
type PostRenterParams ¶
type PostRenterParams struct { /* Funds. Number of hastings allocated for file contracts in the given period. */ Funds *string /* Hosts. Number of hosts that contracts should be formed with. Files cannot be uploaded to more hosts than you have contracts with, and it's generally good to form a few more contracts than you need. Format: int64 */ Hosts *int64 /* Maxdownloadspeed. Max download speed permitted, speed provide in bytes per second. Format: int64 */ Maxdownloadspeed *int64 /* Maxuploadspeed. Max upload speed permitted, speed provide in bytes per second Format: int64 */ Maxuploadspeed *int64 /* Period. Duration of contracts formed. Must be nonzero. */ Period *int64 /* Renewwindow. Renew window specifies how many blocks before the expiration of the current contracts the renter will wait before renewing the contracts. A smaller renew window means that Sia must be run more frequently, but also means fewer total transaction fees. Storage spending is not affected by the renew window size. Format: int64 */ Renewwindow *int64 /* Streamcachesize. Stream cache size specifies how many data chunks will be cached while streaming. Format: int64 */ Streamcachesize *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterParams contains all the parameters to send to the API endpoint
for the post renter operation. Typically these are written to a http.Request.
func NewPostRenterParams ¶
func NewPostRenterParams() *PostRenterParams
NewPostRenterParams creates a new PostRenterParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterParamsWithContext ¶
func NewPostRenterParamsWithContext(ctx context.Context) *PostRenterParams
NewPostRenterParamsWithContext creates a new PostRenterParams object with the ability to set a context for a request.
func NewPostRenterParamsWithHTTPClient ¶
func NewPostRenterParamsWithHTTPClient(client *http.Client) *PostRenterParams
NewPostRenterParamsWithHTTPClient creates a new PostRenterParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterParamsWithTimeout ¶
func NewPostRenterParamsWithTimeout(timeout time.Duration) *PostRenterParams
NewPostRenterParamsWithTimeout creates a new PostRenterParams object with the ability to set a timeout on a request.
func (*PostRenterParams) SetContext ¶
func (o *PostRenterParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter params
func (*PostRenterParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterParams) SetDefaults()
SetDefaults hydrates default values in the post renter params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterParams) SetFunds ¶
func (o *PostRenterParams) SetFunds(funds *string)
SetFunds adds the funds to the post renter params
func (*PostRenterParams) SetHTTPClient ¶
func (o *PostRenterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter params
func (*PostRenterParams) SetHosts ¶
func (o *PostRenterParams) SetHosts(hosts *int64)
SetHosts adds the hosts to the post renter params
func (*PostRenterParams) SetMaxdownloadspeed ¶
func (o *PostRenterParams) SetMaxdownloadspeed(maxdownloadspeed *int64)
SetMaxdownloadspeed adds the maxdownloadspeed to the post renter params
func (*PostRenterParams) SetMaxuploadspeed ¶
func (o *PostRenterParams) SetMaxuploadspeed(maxuploadspeed *int64)
SetMaxuploadspeed adds the maxuploadspeed to the post renter params
func (*PostRenterParams) SetPeriod ¶
func (o *PostRenterParams) SetPeriod(period *int64)
SetPeriod adds the period to the post renter params
func (*PostRenterParams) SetRenewwindow ¶
func (o *PostRenterParams) SetRenewwindow(renewwindow *int64)
SetRenewwindow adds the renewwindow to the post renter params
func (*PostRenterParams) SetStreamcachesize ¶
func (o *PostRenterParams) SetStreamcachesize(streamcachesize *int64)
SetStreamcachesize adds the streamcachesize to the post renter params
func (*PostRenterParams) SetTimeout ¶
func (o *PostRenterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter params
func (*PostRenterParams) WithContext ¶
func (o *PostRenterParams) WithContext(ctx context.Context) *PostRenterParams
WithContext adds the context to the post renter params
func (*PostRenterParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterParams) WithDefaults() *PostRenterParams
WithDefaults hydrates default values in the post renter params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterParams) WithFunds ¶
func (o *PostRenterParams) WithFunds(funds *string) *PostRenterParams
WithFunds adds the funds to the post renter params
func (*PostRenterParams) WithHTTPClient ¶
func (o *PostRenterParams) WithHTTPClient(client *http.Client) *PostRenterParams
WithHTTPClient adds the HTTPClient to the post renter params
func (*PostRenterParams) WithHosts ¶
func (o *PostRenterParams) WithHosts(hosts *int64) *PostRenterParams
WithHosts adds the hosts to the post renter params
func (*PostRenterParams) WithMaxdownloadspeed ¶
func (o *PostRenterParams) WithMaxdownloadspeed(maxdownloadspeed *int64) *PostRenterParams
WithMaxdownloadspeed adds the maxdownloadspeed to the post renter params
func (*PostRenterParams) WithMaxuploadspeed ¶
func (o *PostRenterParams) WithMaxuploadspeed(maxuploadspeed *int64) *PostRenterParams
WithMaxuploadspeed adds the maxuploadspeed to the post renter params
func (*PostRenterParams) WithPeriod ¶
func (o *PostRenterParams) WithPeriod(period *int64) *PostRenterParams
WithPeriod adds the period to the post renter params
func (*PostRenterParams) WithRenewwindow ¶
func (o *PostRenterParams) WithRenewwindow(renewwindow *int64) *PostRenterParams
WithRenewwindow adds the renewwindow to the post renter params
func (*PostRenterParams) WithStreamcachesize ¶
func (o *PostRenterParams) WithStreamcachesize(streamcachesize *int64) *PostRenterParams
WithStreamcachesize adds the streamcachesize to the post renter params
func (*PostRenterParams) WithTimeout ¶
func (o *PostRenterParams) WithTimeout(timeout time.Duration) *PostRenterParams
WithTimeout adds the timeout to the post renter params
func (*PostRenterParams) WriteToRequest ¶
func (o *PostRenterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterReader ¶
type PostRenterReader struct {
// contains filtered or unexported fields
}
PostRenterReader is a Reader for the PostRenter structure.
func (*PostRenterReader) ReadResponse ¶
func (o *PostRenterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterRenameSiapathDefault ¶
type PostRenterRenameSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterRenameSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterRenameSiapathDefault ¶
func NewPostRenterRenameSiapathDefault(code int) *PostRenterRenameSiapathDefault
NewPostRenterRenameSiapathDefault creates a PostRenterRenameSiapathDefault with default headers values
func (*PostRenterRenameSiapathDefault) Code ¶
func (o *PostRenterRenameSiapathDefault) Code() int
Code gets the status code for the post renter rename siapath default response
func (*PostRenterRenameSiapathDefault) Error ¶
func (o *PostRenterRenameSiapathDefault) Error() string
func (*PostRenterRenameSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterRenameSiapathDefault) GetPayload() *models.StandardError
type PostRenterRenameSiapathNoContent ¶
type PostRenterRenameSiapathNoContent struct { }
PostRenterRenameSiapathNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterRenameSiapathNoContent ¶
func NewPostRenterRenameSiapathNoContent() *PostRenterRenameSiapathNoContent
NewPostRenterRenameSiapathNoContent creates a PostRenterRenameSiapathNoContent with default headers values
func (*PostRenterRenameSiapathNoContent) Error ¶
func (o *PostRenterRenameSiapathNoContent) Error() string
type PostRenterRenameSiapathParams ¶
type PostRenterRenameSiapathParams struct { /* Newsiapath. New location of the file in the renter on the network. */ Newsiapath string /* Siapath. Location of the file in the renter on the network. */ Siapath string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterRenameSiapathParams contains all the parameters to send to the API endpoint
for the post renter rename siapath operation. Typically these are written to a http.Request.
func NewPostRenterRenameSiapathParams ¶
func NewPostRenterRenameSiapathParams() *PostRenterRenameSiapathParams
NewPostRenterRenameSiapathParams creates a new PostRenterRenameSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterRenameSiapathParamsWithContext ¶
func NewPostRenterRenameSiapathParamsWithContext(ctx context.Context) *PostRenterRenameSiapathParams
NewPostRenterRenameSiapathParamsWithContext creates a new PostRenterRenameSiapathParams object with the ability to set a context for a request.
func NewPostRenterRenameSiapathParamsWithHTTPClient ¶
func NewPostRenterRenameSiapathParamsWithHTTPClient(client *http.Client) *PostRenterRenameSiapathParams
NewPostRenterRenameSiapathParamsWithHTTPClient creates a new PostRenterRenameSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterRenameSiapathParamsWithTimeout ¶
func NewPostRenterRenameSiapathParamsWithTimeout(timeout time.Duration) *PostRenterRenameSiapathParams
NewPostRenterRenameSiapathParamsWithTimeout creates a new PostRenterRenameSiapathParams object with the ability to set a timeout on a request.
func (*PostRenterRenameSiapathParams) SetContext ¶
func (o *PostRenterRenameSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterRenameSiapathParams) SetDefaults()
SetDefaults hydrates default values in the post renter rename siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterRenameSiapathParams) SetHTTPClient ¶
func (o *PostRenterRenameSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) SetNewsiapath ¶
func (o *PostRenterRenameSiapathParams) SetNewsiapath(newsiapath string)
SetNewsiapath adds the newsiapath to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) SetSiapath ¶
func (o *PostRenterRenameSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) SetTimeout ¶
func (o *PostRenterRenameSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) WithContext ¶
func (o *PostRenterRenameSiapathParams) WithContext(ctx context.Context) *PostRenterRenameSiapathParams
WithContext adds the context to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterRenameSiapathParams) WithDefaults() *PostRenterRenameSiapathParams
WithDefaults hydrates default values in the post renter rename siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterRenameSiapathParams) WithHTTPClient ¶
func (o *PostRenterRenameSiapathParams) WithHTTPClient(client *http.Client) *PostRenterRenameSiapathParams
WithHTTPClient adds the HTTPClient to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) WithNewsiapath ¶
func (o *PostRenterRenameSiapathParams) WithNewsiapath(newsiapath string) *PostRenterRenameSiapathParams
WithNewsiapath adds the newsiapath to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) WithSiapath ¶
func (o *PostRenterRenameSiapathParams) WithSiapath(siapath string) *PostRenterRenameSiapathParams
WithSiapath adds the siapath to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) WithTimeout ¶
func (o *PostRenterRenameSiapathParams) WithTimeout(timeout time.Duration) *PostRenterRenameSiapathParams
WithTimeout adds the timeout to the post renter rename siapath params
func (*PostRenterRenameSiapathParams) WriteToRequest ¶
func (o *PostRenterRenameSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterRenameSiapathReader ¶
type PostRenterRenameSiapathReader struct {
// contains filtered or unexported fields
}
PostRenterRenameSiapathReader is a Reader for the PostRenterRenameSiapath structure.
func (*PostRenterRenameSiapathReader) ReadResponse ¶
func (o *PostRenterRenameSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostRenterUploadSiapathDefault ¶
type PostRenterUploadSiapathDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostRenterUploadSiapathDefault describes a response with status code -1, with default header values.
Error Response
func NewPostRenterUploadSiapathDefault ¶
func NewPostRenterUploadSiapathDefault(code int) *PostRenterUploadSiapathDefault
NewPostRenterUploadSiapathDefault creates a PostRenterUploadSiapathDefault with default headers values
func (*PostRenterUploadSiapathDefault) Code ¶
func (o *PostRenterUploadSiapathDefault) Code() int
Code gets the status code for the post renter upload siapath default response
func (*PostRenterUploadSiapathDefault) Error ¶
func (o *PostRenterUploadSiapathDefault) Error() string
func (*PostRenterUploadSiapathDefault) GetPayload ¶ added in v0.5.4
func (o *PostRenterUploadSiapathDefault) GetPayload() *models.StandardError
type PostRenterUploadSiapathNoContent ¶
type PostRenterUploadSiapathNoContent struct { }
PostRenterUploadSiapathNoContent describes a response with status code 204, with default header values.
Successful Response
func NewPostRenterUploadSiapathNoContent ¶
func NewPostRenterUploadSiapathNoContent() *PostRenterUploadSiapathNoContent
NewPostRenterUploadSiapathNoContent creates a PostRenterUploadSiapathNoContent with default headers values
func (*PostRenterUploadSiapathNoContent) Error ¶
func (o *PostRenterUploadSiapathNoContent) Error() string
type PostRenterUploadSiapathParams ¶
type PostRenterUploadSiapathParams struct { /* Datapieces. The number of data pieces to use when erasure coding the file. Format: int64 */ Datapieces *int64 /* Paritypieces. The number of parity pieces to use when erasure coding the file. Total redundancy of the file is (datapieces+paritypieces)/datapieces. Format: int64 */ Paritypieces *int64 /* Siapath. Location where the file will reside in the renter on the network. The path must be non-empty, may not include any path traversal strings ("./", "../"), and may not begin with a forward-slash character. */ Siapath string /* Source. Location on disk of the file being uploaded. */ Source string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostRenterUploadSiapathParams contains all the parameters to send to the API endpoint
for the post renter upload siapath operation. Typically these are written to a http.Request.
func NewPostRenterUploadSiapathParams ¶
func NewPostRenterUploadSiapathParams() *PostRenterUploadSiapathParams
NewPostRenterUploadSiapathParams creates a new PostRenterUploadSiapathParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostRenterUploadSiapathParamsWithContext ¶
func NewPostRenterUploadSiapathParamsWithContext(ctx context.Context) *PostRenterUploadSiapathParams
NewPostRenterUploadSiapathParamsWithContext creates a new PostRenterUploadSiapathParams object with the ability to set a context for a request.
func NewPostRenterUploadSiapathParamsWithHTTPClient ¶
func NewPostRenterUploadSiapathParamsWithHTTPClient(client *http.Client) *PostRenterUploadSiapathParams
NewPostRenterUploadSiapathParamsWithHTTPClient creates a new PostRenterUploadSiapathParams object with the ability to set a custom HTTPClient for a request.
func NewPostRenterUploadSiapathParamsWithTimeout ¶
func NewPostRenterUploadSiapathParamsWithTimeout(timeout time.Duration) *PostRenterUploadSiapathParams
NewPostRenterUploadSiapathParamsWithTimeout creates a new PostRenterUploadSiapathParams object with the ability to set a timeout on a request.
func (*PostRenterUploadSiapathParams) SetContext ¶
func (o *PostRenterUploadSiapathParams) SetContext(ctx context.Context)
SetContext adds the context to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) SetDatapieces ¶
func (o *PostRenterUploadSiapathParams) SetDatapieces(datapieces *int64)
SetDatapieces adds the datapieces to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) SetDefaults ¶ added in v0.5.9
func (o *PostRenterUploadSiapathParams) SetDefaults()
SetDefaults hydrates default values in the post renter upload siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterUploadSiapathParams) SetHTTPClient ¶
func (o *PostRenterUploadSiapathParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) SetParitypieces ¶
func (o *PostRenterUploadSiapathParams) SetParitypieces(paritypieces *int64)
SetParitypieces adds the paritypieces to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) SetSiapath ¶
func (o *PostRenterUploadSiapathParams) SetSiapath(siapath string)
SetSiapath adds the siapath to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) SetSource ¶
func (o *PostRenterUploadSiapathParams) SetSource(source string)
SetSource adds the source to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) SetTimeout ¶
func (o *PostRenterUploadSiapathParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithContext ¶
func (o *PostRenterUploadSiapathParams) WithContext(ctx context.Context) *PostRenterUploadSiapathParams
WithContext adds the context to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithDatapieces ¶
func (o *PostRenterUploadSiapathParams) WithDatapieces(datapieces *int64) *PostRenterUploadSiapathParams
WithDatapieces adds the datapieces to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithDefaults ¶ added in v0.5.9
func (o *PostRenterUploadSiapathParams) WithDefaults() *PostRenterUploadSiapathParams
WithDefaults hydrates default values in the post renter upload siapath params (not the query body).
All values with no default are reset to their zero value.
func (*PostRenterUploadSiapathParams) WithHTTPClient ¶
func (o *PostRenterUploadSiapathParams) WithHTTPClient(client *http.Client) *PostRenterUploadSiapathParams
WithHTTPClient adds the HTTPClient to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithParitypieces ¶
func (o *PostRenterUploadSiapathParams) WithParitypieces(paritypieces *int64) *PostRenterUploadSiapathParams
WithParitypieces adds the paritypieces to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithSiapath ¶
func (o *PostRenterUploadSiapathParams) WithSiapath(siapath string) *PostRenterUploadSiapathParams
WithSiapath adds the siapath to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithSource ¶
func (o *PostRenterUploadSiapathParams) WithSource(source string) *PostRenterUploadSiapathParams
WithSource adds the source to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WithTimeout ¶
func (o *PostRenterUploadSiapathParams) WithTimeout(timeout time.Duration) *PostRenterUploadSiapathParams
WithTimeout adds the timeout to the post renter upload siapath params
func (*PostRenterUploadSiapathParams) WriteToRequest ¶
func (o *PostRenterUploadSiapathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostRenterUploadSiapathReader ¶
type PostRenterUploadSiapathReader struct {
// contains filtered or unexported fields
}
PostRenterUploadSiapathReader is a Reader for the PostRenterUploadSiapath structure.
func (*PostRenterUploadSiapathReader) ReadResponse ¶
func (o *PostRenterUploadSiapathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_renter_backup_parameters.go
- get_renter_backup_responses.go
- get_renter_contracts_parameters.go
- get_renter_contracts_responses.go
- get_renter_dir_siapath_parameters.go
- get_renter_dir_siapath_responses.go
- get_renter_download_siapath_parameters.go
- get_renter_download_siapath_responses.go
- get_renter_downloadasync_siapath_parameters.go
- get_renter_downloadasync_siapath_responses.go
- get_renter_downloads_parameters.go
- get_renter_downloads_responses.go
- get_renter_file_siapath_parameters.go
- get_renter_file_siapath_responses.go
- get_renter_files_parameters.go
- get_renter_files_responses.go
- get_renter_parameters.go
- get_renter_prices_parameters.go
- get_renter_prices_responses.go
- get_renter_responses.go
- get_renter_stream_siapath_parameters.go
- get_renter_stream_siapath_responses.go
- post_renter_backups_create_parameters.go
- post_renter_backups_create_responses.go
- post_renter_backups_restore_parameters.go
- post_renter_backups_restore_responses.go
- post_renter_delete_siapath_parameters.go
- post_renter_delete_siapath_responses.go
- post_renter_dir_siapath_parameters.go
- post_renter_dir_siapath_responses.go
- post_renter_downloads_clear_parameters.go
- post_renter_downloads_clear_responses.go
- post_renter_parameters.go
- post_renter_rename_siapath_parameters.go
- post_renter_rename_siapath_responses.go
- post_renter_responses.go
- post_renter_upload_siapath_parameters.go
- post_renter_upload_siapath_responses.go
- renter_client.go