ipfs

package
v0.0.0-...-3215caa Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveURLCreated

type ArchiveURLCreated struct {
	Payload *models.ArchiveResponse
}

ArchiveURLCreated handles this case with default header values.

Archive Response

func NewArchiveURLCreated

func NewArchiveURLCreated() *ArchiveURLCreated

NewArchiveURLCreated creates a ArchiveURLCreated with default headers values

func (*ArchiveURLCreated) Error

func (o *ArchiveURLCreated) Error() string

type ArchiveURLInternalServerError

type ArchiveURLInternalServerError struct {
	Payload *models.Error
}

ArchiveURLInternalServerError handles this case with default header values.

Archive Error

func NewArchiveURLInternalServerError

func NewArchiveURLInternalServerError() *ArchiveURLInternalServerError

NewArchiveURLInternalServerError creates a ArchiveURLInternalServerError with default headers values

func (*ArchiveURLInternalServerError) Error

type ArchiveURLParams

type ArchiveURLParams struct {

	/*Body
	  The URL to archive

	*/
	Body *models.ArchiveRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ArchiveURLParams contains all the parameters to send to the API endpoint for the archive Url operation typically these are written to a http.Request

func NewArchiveURLParams

func NewArchiveURLParams() *ArchiveURLParams

NewArchiveURLParams creates a new ArchiveURLParams object with the default values initialized.

func NewArchiveURLParamsWithContext

func NewArchiveURLParamsWithContext(ctx context.Context) *ArchiveURLParams

NewArchiveURLParamsWithContext creates a new ArchiveURLParams object with the default values initialized, and the ability to set a context for a request

func NewArchiveURLParamsWithHTTPClient

func NewArchiveURLParamsWithHTTPClient(client *http.Client) *ArchiveURLParams

NewArchiveURLParamsWithHTTPClient creates a new ArchiveURLParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewArchiveURLParamsWithTimeout

func NewArchiveURLParamsWithTimeout(timeout time.Duration) *ArchiveURLParams

NewArchiveURLParamsWithTimeout creates a new ArchiveURLParams object with the default values initialized, and the ability to set a timeout on a request

func (*ArchiveURLParams) SetBody

func (o *ArchiveURLParams) SetBody(body *models.ArchiveRequest)

SetBody adds the body to the archive Url params

func (*ArchiveURLParams) SetContext

func (o *ArchiveURLParams) SetContext(ctx context.Context)

SetContext adds the context to the archive Url params

func (*ArchiveURLParams) SetHTTPClient

func (o *ArchiveURLParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the archive Url params

func (*ArchiveURLParams) SetTimeout

func (o *ArchiveURLParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the archive Url params

func (*ArchiveURLParams) WithBody

WithBody adds the body to the archive Url params

func (*ArchiveURLParams) WithContext

func (o *ArchiveURLParams) WithContext(ctx context.Context) *ArchiveURLParams

WithContext adds the context to the archive Url params

func (*ArchiveURLParams) WithHTTPClient

func (o *ArchiveURLParams) WithHTTPClient(client *http.Client) *ArchiveURLParams

WithHTTPClient adds the HTTPClient to the archive Url params

func (*ArchiveURLParams) WithTimeout

func (o *ArchiveURLParams) WithTimeout(timeout time.Duration) *ArchiveURLParams

WithTimeout adds the timeout to the archive Url params

func (*ArchiveURLParams) WriteToRequest

func (o *ArchiveURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ArchiveURLReader

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

ArchiveURLReader is a Reader for the ArchiveURL structure.

func (*ArchiveURLReader) ReadResponse

func (o *ArchiveURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for ipfs API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new ipfs API client.

func (*Client) ArchiveURL

func (a *Client) ArchiveURL(params *ArchiveURLParams) (*ArchiveURLCreated, error)

ArchiveURL archives a URL

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

Jump to

Keyboard shortcuts

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