volumeapi

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package volumeapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.2 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteVolumecontentVolumeIDPathRequest

func NewDeleteVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams) (*http.Request, error)

NewDeleteVolumecontentVolumeIDPathRequest constructs an http.Request for the DeleteVolumecontentVolumeIDPath method

func NewGetVolumecontentVolumeIDDirRequest

func NewGetVolumecontentVolumeIDDirRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams) (*http.Request, error)

NewGetVolumecontentVolumeIDDirRequest constructs an http.Request for the GetVolumecontentVolumeIDDir method

func NewGetVolumecontentVolumeIDFileRequest

func NewGetVolumecontentVolumeIDFileRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams) (*http.Request, error)

NewGetVolumecontentVolumeIDFileRequest constructs an http.Request for the GetVolumecontentVolumeIDFile method

func NewGetVolumecontentVolumeIDPathRequest

func NewGetVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams) (*http.Request, error)

NewGetVolumecontentVolumeIDPathRequest constructs an http.Request for the GetVolumecontentVolumeIDPath method

func NewPatchVolumecontentVolumeIDPathRequest

func NewPatchVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody) (*http.Request, error)

NewPatchVolumecontentVolumeIDPathRequest calls the generic PatchVolumecontentVolumeIDPath builder with application/json body

func NewPatchVolumecontentVolumeIDPathRequestWithBody

func NewPatchVolumecontentVolumeIDPathRequestWithBody(server string, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader) (*http.Request, error)

NewPatchVolumecontentVolumeIDPathRequestWithBody constructs an http.Request for the PatchVolumecontentVolumeIDPath method, with any body, and a specified content type

func NewPostVolumecontentVolumeIDDirRequest

func NewPostVolumecontentVolumeIDDirRequest(server string, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams) (*http.Request, error)

NewPostVolumecontentVolumeIDDirRequest constructs an http.Request for the PostVolumecontentVolumeIDDir method

func NewPutVolumecontentVolumeIDFileRequestWithBody

func NewPutVolumecontentVolumeIDFileRequestWithBody(server string, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader) (*http.Request, error)

NewPutVolumecontentVolumeIDFileRequestWithBody constructs an http.Request for the PutVolumecontentVolumeIDFile method, with any body, and a specified content type

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteVolumecontentVolumeIDPath

func (c *Client) DeleteVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteVolumecontentVolumeIDPath performs a DELETE /volumecontent/{volumeID}/path (the `DeleteVolumecontentVolumeIDPath` operationId) request.

Delete a path.

func (*Client) GetVolumecontentVolumeIDDir

func (c *Client) GetVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVolumecontentVolumeIDDir performs a GET /volumecontent/{volumeID}/dir (the `GetVolumecontentVolumeIDDir` operationId) request.

List directory contents.

func (*Client) GetVolumecontentVolumeIDFile

func (c *Client) GetVolumecontentVolumeIDFile(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVolumecontentVolumeIDFile performs a GET /volumecontent/{volumeID}/file (the `GetVolumecontentVolumeIDFile` operationId) request.

Download file.

func (*Client) GetVolumecontentVolumeIDPath

func (c *Client) GetVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetVolumecontentVolumeIDPath performs a GET /volumecontent/{volumeID}/path (the `GetVolumecontentVolumeIDPath` operationId) request.

Get path information.

func (*Client) PatchVolumecontentVolumeIDPath

func (c *Client) PatchVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PatchVolumecontentVolumeIDPath performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request. Takes a body of the `application/json` content type.

Update path metadata.

func (*Client) PatchVolumecontentVolumeIDPathWithBody

func (c *Client) PatchVolumecontentVolumeIDPathWithBody(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PatchVolumecontentVolumeIDPathWithBody performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request, with any type of body and a specified content type.

Update path metadata.

func (*Client) PostVolumecontentVolumeIDDir

func (c *Client) PostVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)

PostVolumecontentVolumeIDDir performs a POST /volumecontent/{volumeID}/dir (the `PostVolumecontentVolumeIDDir` operationId) request.

Create a directory.

func (*Client) PutVolumecontentVolumeIDFileWithBody

func (c *Client) PutVolumecontentVolumeIDFileWithBody(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PutVolumecontentVolumeIDFileWithBody performs a PUT /volumecontent/{volumeID}/file (the `PutVolumecontentVolumeIDFile` operationId) request, with any type of body and a specified content type.

Upload file.

type ClientInterface

type ClientInterface interface {

	// GetVolumecontentVolumeIDDir performs a GET /volumecontent/{volumeID}/dir (the `GetVolumecontentVolumeIDDir` operationId) request.
	//
	// List directory contents.
	GetVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostVolumecontentVolumeIDDir performs a POST /volumecontent/{volumeID}/dir (the `PostVolumecontentVolumeIDDir` operationId) request.
	//
	// Create a directory.
	PostVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVolumecontentVolumeIDFile performs a GET /volumecontent/{volumeID}/file (the `GetVolumecontentVolumeIDFile` operationId) request.
	//
	// Download file.
	GetVolumecontentVolumeIDFile(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutVolumecontentVolumeIDFileWithBody performs a PUT /volumecontent/{volumeID}/file (the `PutVolumecontentVolumeIDFile` operationId) request,
	// with any type of body and a specified content type.
	//
	// Upload file.
	PutVolumecontentVolumeIDFileWithBody(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVolumecontentVolumeIDPath performs a DELETE /volumecontent/{volumeID}/path (the `DeleteVolumecontentVolumeIDPath` operationId) request.
	//
	// Delete a path.
	DeleteVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVolumecontentVolumeIDPath performs a GET /volumecontent/{volumeID}/path (the `GetVolumecontentVolumeIDPath` operationId) request.
	//
	// Get path information.
	GetVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchVolumecontentVolumeIDPathWithBody performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request,
	// with any type of body and a specified content type.
	//
	// Update path metadata.
	PatchVolumecontentVolumeIDPathWithBody(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchVolumecontentVolumeIDPath performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Update path metadata.
	PatchVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteVolumecontentVolumeIDPathWithResponse

func (c *ClientWithResponses) DeleteVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*DeleteVolumecontentVolumeIDPathResponse, error)

DeleteVolumecontentVolumeIDPathWithResponse performs a DELETE /volumecontent/{volumeID}/path (the `DeleteVolumecontentVolumeIDPath` operationId) request.

Delete a path.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetVolumecontentVolumeIDDirWithResponse

func (c *ClientWithResponses) GetVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDDirResponse, error)

GetVolumecontentVolumeIDDirWithResponse performs a GET /volumecontent/{volumeID}/dir (the `GetVolumecontentVolumeIDDir` operationId) request.

List directory contents.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetVolumecontentVolumeIDFileWithResponse

func (c *ClientWithResponses) GetVolumecontentVolumeIDFileWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDFileResponse, error)

GetVolumecontentVolumeIDFileWithResponse performs a GET /volumecontent/{volumeID}/file (the `GetVolumecontentVolumeIDFile` operationId) request.

Download file.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetVolumecontentVolumeIDPathWithResponse

func (c *ClientWithResponses) GetVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDPathResponse, error)

GetVolumecontentVolumeIDPathWithResponse performs a GET /volumecontent/{volumeID}/path (the `GetVolumecontentVolumeIDPath` operationId) request.

Get path information.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PatchVolumecontentVolumeIDPathWithBodyWithResponse

func (c *ClientWithResponses) PatchVolumecontentVolumeIDPathWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVolumecontentVolumeIDPathResponse, error)

PatchVolumecontentVolumeIDPathWithBodyWithResponse performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request, with any type of body and a specified content type.

Update path metadata.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PatchVolumecontentVolumeIDPathWithResponse

PatchVolumecontentVolumeIDPathWithResponse performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Update path metadata.

func (*ClientWithResponses) PostVolumecontentVolumeIDDirWithResponse

func (c *ClientWithResponses) PostVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*PostVolumecontentVolumeIDDirResponse, error)

PostVolumecontentVolumeIDDirWithResponse performs a POST /volumecontent/{volumeID}/dir (the `PostVolumecontentVolumeIDDir` operationId) request.

Create a directory.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PutVolumecontentVolumeIDFileWithBodyWithResponse

func (c *ClientWithResponses) PutVolumecontentVolumeIDFileWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVolumecontentVolumeIDFileResponse, error)

PutVolumecontentVolumeIDFileWithBodyWithResponse performs a PUT /volumecontent/{volumeID}/file (the `PutVolumecontentVolumeIDFile` operationId) request, with any type of body and a specified content type.

Upload file.

Returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetVolumecontentVolumeIDDirWithResponse performs a GET /volumecontent/{volumeID}/dir (the `GetVolumecontentVolumeIDDir` operationId) request.
	//
	// List directory contents.
	//
	// Returns a wrapper object for the known response body format(s).
	GetVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDDirResponse, error)

	// PostVolumecontentVolumeIDDirWithResponse performs a POST /volumecontent/{volumeID}/dir (the `PostVolumecontentVolumeIDDir` operationId) request.
	//
	// Create a directory.
	//
	// Returns a wrapper object for the known response body format(s).
	PostVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*PostVolumecontentVolumeIDDirResponse, error)

	// GetVolumecontentVolumeIDFileWithResponse performs a GET /volumecontent/{volumeID}/file (the `GetVolumecontentVolumeIDFile` operationId) request.
	//
	// Download file.
	//
	// Returns a wrapper object for the known response body format(s).
	GetVolumecontentVolumeIDFileWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDFileResponse, error)

	// PutVolumecontentVolumeIDFileWithBodyWithResponse performs a PUT /volumecontent/{volumeID}/file (the `PutVolumecontentVolumeIDFile` operationId) request,
	// with any type of body and a specified content type.
	//
	// Upload file.
	//
	// Returns a wrapper object for the known response body format(s).
	PutVolumecontentVolumeIDFileWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVolumecontentVolumeIDFileResponse, error)

	// DeleteVolumecontentVolumeIDPathWithResponse performs a DELETE /volumecontent/{volumeID}/path (the `DeleteVolumecontentVolumeIDPath` operationId) request.
	//
	// Delete a path.
	//
	// Returns a wrapper object for the known response body format(s).
	DeleteVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*DeleteVolumecontentVolumeIDPathResponse, error)

	// GetVolumecontentVolumeIDPathWithResponse performs a GET /volumecontent/{volumeID}/path (the `GetVolumecontentVolumeIDPath` operationId) request.
	//
	// Get path information.
	//
	// Returns a wrapper object for the known response body format(s).
	GetVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDPathResponse, error)

	// PatchVolumecontentVolumeIDPathWithBodyWithResponse performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request,
	// with any type of body and a specified content type.
	//
	// Update path metadata.
	//
	// Returns a wrapper object for the known response body format(s).
	PatchVolumecontentVolumeIDPathWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVolumecontentVolumeIDPathResponse, error)

	// PatchVolumecontentVolumeIDPathWithResponse performs a PATCH /volumecontent/{volumeID}/path (the `PatchVolumecontentVolumeIDPath` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Update path metadata.
	PatchVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchVolumecontentVolumeIDPathResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DeleteVolumecontentVolumeIDPathParams

type DeleteVolumecontentVolumeIDPathParams struct {
	Path Path `form:"path" json:"path"`
}

DeleteVolumecontentVolumeIDPathParams defines parameters for DeleteVolumecontentVolumeIDPath.

type DeleteVolumecontentVolumeIDPathResponse

type DeleteVolumecontentVolumeIDPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *N404
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *N413
}

func ParseDeleteVolumecontentVolumeIDPathResponse

func ParseDeleteVolumecontentVolumeIDPathResponse(rsp *http.Response) (*DeleteVolumecontentVolumeIDPathResponse, error)

ParseDeleteVolumecontentVolumeIDPathResponse parses an HTTP response from a DeleteVolumecontentVolumeIDPathWithResponse call

func (DeleteVolumecontentVolumeIDPathResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteVolumecontentVolumeIDPathResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (DeleteVolumecontentVolumeIDPathResponse) GetJSON404 added in v0.1.4

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteVolumecontentVolumeIDPathResponse) GetJSON413 added in v0.1.4

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (DeleteVolumecontentVolumeIDPathResponse) Status

Status returns HTTPResponse.Status

func (DeleteVolumecontentVolumeIDPathResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	// Code Error code
	Code string `json:"code"`

	// Message Error message
	Message string `json:"message"`
}

Error defines model for Error.

type GetVolumecontentVolumeIDDirParams

type GetVolumecontentVolumeIDDirParams struct {
	Path Path `form:"path" json:"path"`

	// Depth Number of layers deep to recurse into the directory
	Depth *uint32 `form:"depth,omitempty" json:"depth,omitempty"`
}

GetVolumecontentVolumeIDDirParams defines parameters for GetVolumecontentVolumeIDDir.

type GetVolumecontentVolumeIDDirResponse

type GetVolumecontentVolumeIDDirResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *VolumeDirectoryListing
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *N413
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *N500
}

func ParseGetVolumecontentVolumeIDDirResponse

func ParseGetVolumecontentVolumeIDDirResponse(rsp *http.Response) (*GetVolumecontentVolumeIDDirResponse, error)

ParseGetVolumecontentVolumeIDDirResponse parses an HTTP response from a GetVolumecontentVolumeIDDirWithResponse call

func (GetVolumecontentVolumeIDDirResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVolumecontentVolumeIDDirResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (GetVolumecontentVolumeIDDirResponse) GetJSON200 added in v0.1.4

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVolumecontentVolumeIDDirResponse) GetJSON413 added in v0.1.4

func (r GetVolumecontentVolumeIDDirResponse) GetJSON413() *N413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (GetVolumecontentVolumeIDDirResponse) GetJSON500 added in v0.1.4

func (r GetVolumecontentVolumeIDDirResponse) GetJSON500() *N500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetVolumecontentVolumeIDDirResponse) Status

Status returns HTTPResponse.Status

func (GetVolumecontentVolumeIDDirResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetVolumecontentVolumeIDFileParams

type GetVolumecontentVolumeIDFileParams struct {
	Path Path `form:"path" json:"path"`
}

GetVolumecontentVolumeIDFileParams defines parameters for GetVolumecontentVolumeIDFile.

type GetVolumecontentVolumeIDFileResponse

type GetVolumecontentVolumeIDFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *N413
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *N500
}

func ParseGetVolumecontentVolumeIDFileResponse

func ParseGetVolumecontentVolumeIDFileResponse(rsp *http.Response) (*GetVolumecontentVolumeIDFileResponse, error)

ParseGetVolumecontentVolumeIDFileResponse parses an HTTP response from a GetVolumecontentVolumeIDFileWithResponse call

func (GetVolumecontentVolumeIDFileResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVolumecontentVolumeIDFileResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (GetVolumecontentVolumeIDFileResponse) GetJSON413 added in v0.1.4

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (GetVolumecontentVolumeIDFileResponse) GetJSON500 added in v0.1.4

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetVolumecontentVolumeIDFileResponse) Status

Status returns HTTPResponse.Status

func (GetVolumecontentVolumeIDFileResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetVolumecontentVolumeIDPathParams

type GetVolumecontentVolumeIDPathParams struct {
	Path Path `form:"path" json:"path"`
}

GetVolumecontentVolumeIDPathParams defines parameters for GetVolumecontentVolumeIDPath.

type GetVolumecontentVolumeIDPathResponse

type GetVolumecontentVolumeIDPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *VolumeEntryStat
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *N404
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *N413
}

func ParseGetVolumecontentVolumeIDPathResponse

func ParseGetVolumecontentVolumeIDPathResponse(rsp *http.Response) (*GetVolumecontentVolumeIDPathResponse, error)

ParseGetVolumecontentVolumeIDPathResponse parses an HTTP response from a GetVolumecontentVolumeIDPathWithResponse call

func (GetVolumecontentVolumeIDPathResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVolumecontentVolumeIDPathResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (GetVolumecontentVolumeIDPathResponse) GetJSON200 added in v0.1.4

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetVolumecontentVolumeIDPathResponse) GetJSON404 added in v0.1.4

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetVolumecontentVolumeIDPathResponse) GetJSON413 added in v0.1.4

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (GetVolumecontentVolumeIDPathResponse) Status

Status returns HTTPResponse.Status

func (GetVolumecontentVolumeIDPathResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type N404

type N404 = Error

N404 defines model for 404.

type N413 added in v0.1.4

type N413 = Error

N413 defines model for 413.

type N500

type N500 = Error

N500 defines model for 500.

type PatchVolumecontentVolumeIDPathJSONBody

type PatchVolumecontentVolumeIDPathJSONBody struct {
	Gid  *uint32 `json:"gid,omitempty"`
	Mode *uint32 `json:"mode,omitempty"`
	Uid  *uint32 `json:"uid,omitempty"`
}

PatchVolumecontentVolumeIDPathJSONBody defines parameters for PatchVolumecontentVolumeIDPath.

type PatchVolumecontentVolumeIDPathJSONRequestBody

type PatchVolumecontentVolumeIDPathJSONRequestBody PatchVolumecontentVolumeIDPathJSONBody

PatchVolumecontentVolumeIDPathJSONRequestBody defines body for PatchVolumecontentVolumeIDPath for application/json ContentType.

type PatchVolumecontentVolumeIDPathParams

type PatchVolumecontentVolumeIDPathParams struct {
	Path Path `form:"path" json:"path"`
}

PatchVolumecontentVolumeIDPathParams defines parameters for PatchVolumecontentVolumeIDPath.

type PatchVolumecontentVolumeIDPathResponse

type PatchVolumecontentVolumeIDPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *VolumeEntryStat
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *N413
}

func ParsePatchVolumecontentVolumeIDPathResponse

func ParsePatchVolumecontentVolumeIDPathResponse(rsp *http.Response) (*PatchVolumecontentVolumeIDPathResponse, error)

ParsePatchVolumecontentVolumeIDPathResponse parses an HTTP response from a PatchVolumecontentVolumeIDPathWithResponse call

func (PatchVolumecontentVolumeIDPathResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PatchVolumecontentVolumeIDPathResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (PatchVolumecontentVolumeIDPathResponse) GetJSON200 added in v0.1.4

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PatchVolumecontentVolumeIDPathResponse) GetJSON413 added in v0.1.4

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (PatchVolumecontentVolumeIDPathResponse) Status

Status returns HTTPResponse.Status

func (PatchVolumecontentVolumeIDPathResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Path

type Path = string

Path defines model for path.

type PostVolumecontentVolumeIDDirParams

type PostVolumecontentVolumeIDDirParams struct {
	Path Path `form:"path" json:"path"`

	// Uid User ID of the created directory
	Uid *uint32 `form:"uid,omitempty" json:"uid,omitempty"`

	// Gid Group ID of the created directory
	Gid *uint32 `form:"gid,omitempty" json:"gid,omitempty"`

	// Mode Mode of the created directory
	Mode *uint32 `form:"mode,omitempty" json:"mode,omitempty"`

	// Force Create the parents of a directory if they don't exist
	Force *bool `form:"force,omitempty" json:"force,omitempty"`
}

PostVolumecontentVolumeIDDirParams defines parameters for PostVolumecontentVolumeIDDir.

type PostVolumecontentVolumeIDDirResponse

type PostVolumecontentVolumeIDDirResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *VolumeEntryStat
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *N413
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *N500
}

func ParsePostVolumecontentVolumeIDDirResponse

func ParsePostVolumecontentVolumeIDDirResponse(rsp *http.Response) (*PostVolumecontentVolumeIDDirResponse, error)

ParsePostVolumecontentVolumeIDDirResponse parses an HTTP response from a PostVolumecontentVolumeIDDirWithResponse call

func (PostVolumecontentVolumeIDDirResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostVolumecontentVolumeIDDirResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (PostVolumecontentVolumeIDDirResponse) GetJSON201 added in v0.1.4

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PostVolumecontentVolumeIDDirResponse) GetJSON413 added in v0.1.4

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (PostVolumecontentVolumeIDDirResponse) GetJSON500 added in v0.1.4

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PostVolumecontentVolumeIDDirResponse) Status

Status returns HTTPResponse.Status

func (PostVolumecontentVolumeIDDirResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PutVolumecontentVolumeIDFileParams

type PutVolumecontentVolumeIDFileParams struct {
	Path Path `form:"path" json:"path"`

	// Uid User ID of the uploaded file
	Uid *uint32 `form:"uid,omitempty" json:"uid,omitempty"`

	// Gid Group ID of the uploaded file
	Gid *uint32 `form:"gid,omitempty" json:"gid,omitempty"`

	// Mode Mode of the uploaded file
	Mode *uint32 `form:"mode,omitempty" json:"mode,omitempty"`

	// Force Force overwrite of an existing file
	Force *bool `form:"force,omitempty" json:"force,omitempty"`
}

PutVolumecontentVolumeIDFileParams defines parameters for PutVolumecontentVolumeIDFile.

type PutVolumecontentVolumeIDFileResponse

type PutVolumecontentVolumeIDFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *VolumeEntryStat
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *N500
}

func ParsePutVolumecontentVolumeIDFileResponse

func ParsePutVolumecontentVolumeIDFileResponse(rsp *http.Response) (*PutVolumecontentVolumeIDFileResponse, error)

ParsePutVolumecontentVolumeIDFileResponse parses an HTTP response from a PutVolumecontentVolumeIDFileWithResponse call

func (PutVolumecontentVolumeIDFileResponse) ContentType added in v0.1.4

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutVolumecontentVolumeIDFileResponse) GetBody added in v0.1.4

GetBody returns the raw response body bytes

func (PutVolumecontentVolumeIDFileResponse) GetJSON201 added in v0.1.4

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PutVolumecontentVolumeIDFileResponse) GetJSON500 added in v0.1.4

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PutVolumecontentVolumeIDFileResponse) Status

Status returns HTTPResponse.Status

func (PutVolumecontentVolumeIDFileResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type VolumeDirectoryListing

type VolumeDirectoryListing = []VolumeEntryStat

VolumeDirectoryListing defines model for VolumeDirectoryListing.

type VolumeEntryStat

type VolumeEntryStat struct {
	Atime  time.Time           `json:"atime"`
	Ctime  time.Time           `json:"ctime"`
	Gid    uint32              `json:"gid"`
	Mode   uint32              `json:"mode"`
	Mtime  time.Time           `json:"mtime"`
	Name   string              `json:"name"`
	Path   string              `json:"path"`
	Size   int64               `json:"size"`
	Target *string             `json:"target,omitempty"`
	Type   VolumeEntryStatType `json:"type"`
	Uid    uint32              `json:"uid"`
}

VolumeEntryStat defines model for VolumeEntryStat.

type VolumeEntryStatType

type VolumeEntryStatType string

VolumeEntryStatType defines model for VolumeEntryStat.Type.

const (
	Directory VolumeEntryStatType = "directory"
	File      VolumeEntryStatType = "file"
	Symlink   VolumeEntryStatType = "symlink"
	Unknown   VolumeEntryStatType = "unknown"
)

Defines values for VolumeEntryStatType.

func (VolumeEntryStatType) Valid

func (e VolumeEntryStatType) Valid() bool

Valid indicates whether the value is a known member of the VolumeEntryStatType enum.

type VolumeID

type VolumeID = string

VolumeID defines model for volumeID.

Jump to

Keyboard shortcuts

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