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.6.0 DO NOT EDIT.
Index ¶
- Constants
- func NewDeleteVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, ...) (*http.Request, error)
- func NewGetVolumecontentVolumeIDDirRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams) (*http.Request, error)
- func NewGetVolumecontentVolumeIDFileRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams) (*http.Request, error)
- func NewGetVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams) (*http.Request, error)
- func NewPatchVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, ...) (*http.Request, error)
- func NewPatchVolumecontentVolumeIDPathRequestWithBody(server string, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, ...) (*http.Request, error)
- func NewPostVolumecontentVolumeIDDirRequest(server string, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams) (*http.Request, error)
- func NewPutVolumecontentVolumeIDFileRequestWithBody(server string, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, ...) (*http.Request, error)
- type Client
- func (c *Client) DeleteVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) GetVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) GetVolumecontentVolumeIDFile(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) GetVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) PatchVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) PatchVolumecontentVolumeIDPathWithBody(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) PostVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- func (c *Client) PutVolumecontentVolumeIDFileWithBody(ctx context.Context, volumeID VolumeID, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, ...) (*DeleteVolumecontentVolumeIDPathResponse, error)
- func (c *ClientWithResponses) GetVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, ...) (*GetVolumecontentVolumeIDDirResponse, error)
- func (c *ClientWithResponses) GetVolumecontentVolumeIDFileWithResponse(ctx context.Context, volumeID VolumeID, ...) (*GetVolumecontentVolumeIDFileResponse, error)
- func (c *ClientWithResponses) GetVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, ...) (*GetVolumecontentVolumeIDPathResponse, error)
- func (c *ClientWithResponses) PatchVolumecontentVolumeIDPathWithBodyWithResponse(ctx context.Context, volumeID VolumeID, ...) (*PatchVolumecontentVolumeIDPathResponse, error)
- func (c *ClientWithResponses) PatchVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, ...) (*PatchVolumecontentVolumeIDPathResponse, error)
- func (c *ClientWithResponses) PostVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, ...) (*PostVolumecontentVolumeIDDirResponse, error)
- func (c *ClientWithResponses) PutVolumecontentVolumeIDFileWithBodyWithResponse(ctx context.Context, volumeID VolumeID, ...) (*PutVolumecontentVolumeIDFileResponse, error)
- type ClientWithResponsesInterface
- type DeleteVolumecontentVolumeIDPathParams
- type DeleteVolumecontentVolumeIDPathResponse
- type Error
- type GetVolumecontentVolumeIDDirParams
- type GetVolumecontentVolumeIDDirResponse
- type GetVolumecontentVolumeIDFileParams
- type GetVolumecontentVolumeIDFileResponse
- type GetVolumecontentVolumeIDPathParams
- type GetVolumecontentVolumeIDPathResponse
- type HttpRequestDoer
- type N400
- type N401
- type N403
- type N404
- type N409
- type N500
- type PatchVolumecontentVolumeIDPathJSONBody
- type PatchVolumecontentVolumeIDPathJSONRequestBody
- type PatchVolumecontentVolumeIDPathParams
- type PatchVolumecontentVolumeIDPathResponse
- type Path
- type PostVolumecontentVolumeIDDirParams
- type PostVolumecontentVolumeIDDirResponse
- type PutVolumecontentVolumeIDFileParams
- type PutVolumecontentVolumeIDFileResponse
- type RequestEditorFn
- type VolumeDirectoryListing
- type VolumeEntryStat
- type VolumeEntryStatType
- type VolumeID
Constants ¶
const (
VolumeJWTScopes = "VolumeJWT.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeleteVolumecontentVolumeIDPathRequest ¶
func NewDeleteVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams) (*http.Request, error)
NewDeleteVolumecontentVolumeIDPathRequest generates requests for DeleteVolumecontentVolumeIDPath
func NewGetVolumecontentVolumeIDDirRequest ¶
func NewGetVolumecontentVolumeIDDirRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams) (*http.Request, error)
NewGetVolumecontentVolumeIDDirRequest generates requests for GetVolumecontentVolumeIDDir
func NewGetVolumecontentVolumeIDFileRequest ¶
func NewGetVolumecontentVolumeIDFileRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams) (*http.Request, error)
NewGetVolumecontentVolumeIDFileRequest generates requests for GetVolumecontentVolumeIDFile
func NewGetVolumecontentVolumeIDPathRequest ¶
func NewGetVolumecontentVolumeIDPathRequest(server string, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams) (*http.Request, error)
NewGetVolumecontentVolumeIDPathRequest generates requests for GetVolumecontentVolumeIDPath
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 generates requests for PatchVolumecontentVolumeIDPath with any type of body
func NewPostVolumecontentVolumeIDDirRequest ¶
func NewPostVolumecontentVolumeIDDirRequest(server string, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams) (*http.Request, error)
NewPostVolumecontentVolumeIDDirRequest generates requests for PostVolumecontentVolumeIDDir
func NewPutVolumecontentVolumeIDFileRequestWithBody ¶
func NewPutVolumecontentVolumeIDFileRequestWithBody(server string, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader) (*http.Request, error)
NewPutVolumecontentVolumeIDFileRequestWithBody generates requests for PutVolumecontentVolumeIDFile with any type of body
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)
func (*Client) GetVolumecontentVolumeIDDir ¶
func (c *Client) GetVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVolumecontentVolumeIDFile ¶
func (c *Client) GetVolumecontentVolumeIDFile(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVolumecontentVolumeIDPath ¶
func (c *Client) GetVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchVolumecontentVolumeIDPath ¶
func (c *Client) PatchVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PatchVolumecontentVolumeIDPathWithBody ¶
func (*Client) PostVolumecontentVolumeIDDir ¶
func (c *Client) PostVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutVolumecontentVolumeIDFileWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// GetVolumecontentVolumeIDDir request
GetVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostVolumecontentVolumeIDDir request
PostVolumecontentVolumeIDDir(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVolumecontentVolumeIDFile request
GetVolumecontentVolumeIDFile(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutVolumecontentVolumeIDFileWithBody request with any body
PutVolumecontentVolumeIDFileWithBody(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVolumecontentVolumeIDPath request
DeleteVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVolumecontentVolumeIDPath request
GetVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchVolumecontentVolumeIDPathWithBody request with any body
PatchVolumecontentVolumeIDPathWithBody(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchVolumecontentVolumeIDPath(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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 request returning *DeleteVolumecontentVolumeIDPathResponse
func (*ClientWithResponses) GetVolumecontentVolumeIDDirWithResponse ¶
func (c *ClientWithResponses) GetVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDDirResponse, error)
GetVolumecontentVolumeIDDirWithResponse request returning *GetVolumecontentVolumeIDDirResponse
func (*ClientWithResponses) GetVolumecontentVolumeIDFileWithResponse ¶
func (c *ClientWithResponses) GetVolumecontentVolumeIDFileWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDFileResponse, error)
GetVolumecontentVolumeIDFileWithResponse request returning *GetVolumecontentVolumeIDFileResponse
func (*ClientWithResponses) GetVolumecontentVolumeIDPathWithResponse ¶
func (c *ClientWithResponses) GetVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDPathResponse, error)
GetVolumecontentVolumeIDPathWithResponse request returning *GetVolumecontentVolumeIDPathResponse
func (*ClientWithResponses) PatchVolumecontentVolumeIDPathWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchVolumecontentVolumeIDPathWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVolumecontentVolumeIDPathResponse, error)
PatchVolumecontentVolumeIDPathWithBodyWithResponse request with arbitrary body returning *PatchVolumecontentVolumeIDPathResponse
func (*ClientWithResponses) PatchVolumecontentVolumeIDPathWithResponse ¶
func (c *ClientWithResponses) PatchVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, body PatchVolumecontentVolumeIDPathJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchVolumecontentVolumeIDPathResponse, error)
func (*ClientWithResponses) PostVolumecontentVolumeIDDirWithResponse ¶
func (c *ClientWithResponses) PostVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*PostVolumecontentVolumeIDDirResponse, error)
PostVolumecontentVolumeIDDirWithResponse request returning *PostVolumecontentVolumeIDDirResponse
func (*ClientWithResponses) PutVolumecontentVolumeIDFileWithBodyWithResponse ¶
func (c *ClientWithResponses) PutVolumecontentVolumeIDFileWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVolumecontentVolumeIDFileResponse, error)
PutVolumecontentVolumeIDFileWithBodyWithResponse request with arbitrary body returning *PutVolumecontentVolumeIDFileResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetVolumecontentVolumeIDDirWithResponse request
GetVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDDirResponse, error)
// PostVolumecontentVolumeIDDirWithResponse request
PostVolumecontentVolumeIDDirWithResponse(ctx context.Context, volumeID VolumeID, params *PostVolumecontentVolumeIDDirParams, reqEditors ...RequestEditorFn) (*PostVolumecontentVolumeIDDirResponse, error)
// GetVolumecontentVolumeIDFileWithResponse request
GetVolumecontentVolumeIDFileWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDFileParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDFileResponse, error)
// PutVolumecontentVolumeIDFileWithBodyWithResponse request with any body
PutVolumecontentVolumeIDFileWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PutVolumecontentVolumeIDFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVolumecontentVolumeIDFileResponse, error)
// DeleteVolumecontentVolumeIDPathWithResponse request
DeleteVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *DeleteVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*DeleteVolumecontentVolumeIDPathResponse, error)
// GetVolumecontentVolumeIDPathWithResponse request
GetVolumecontentVolumeIDPathWithResponse(ctx context.Context, volumeID VolumeID, params *GetVolumecontentVolumeIDPathParams, reqEditors ...RequestEditorFn) (*GetVolumecontentVolumeIDPathResponse, error)
// PatchVolumecontentVolumeIDPathWithBodyWithResponse request with any body
PatchVolumecontentVolumeIDPathWithBodyWithResponse(ctx context.Context, volumeID VolumeID, params *PatchVolumecontentVolumeIDPathParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVolumecontentVolumeIDPathResponse, error)
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 *N404
}
func ParseDeleteVolumecontentVolumeIDPathResponse ¶
func ParseDeleteVolumecontentVolumeIDPathResponse(rsp *http.Response) (*DeleteVolumecontentVolumeIDPathResponse, error)
ParseDeleteVolumecontentVolumeIDPathResponse parses an HTTP response from a DeleteVolumecontentVolumeIDPathWithResponse call
func (DeleteVolumecontentVolumeIDPathResponse) Status ¶
func (r DeleteVolumecontentVolumeIDPathResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVolumecontentVolumeIDPathResponse) StatusCode ¶
func (r DeleteVolumecontentVolumeIDPathResponse) StatusCode() int
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 *VolumeDirectoryListing
JSON500 *N500
}
func ParseGetVolumecontentVolumeIDDirResponse ¶
func ParseGetVolumecontentVolumeIDDirResponse(rsp *http.Response) (*GetVolumecontentVolumeIDDirResponse, error)
ParseGetVolumecontentVolumeIDDirResponse parses an HTTP response from a GetVolumecontentVolumeIDDirWithResponse call
func (GetVolumecontentVolumeIDDirResponse) Status ¶
func (r GetVolumecontentVolumeIDDirResponse) Status() string
Status returns HTTPResponse.Status
func (GetVolumecontentVolumeIDDirResponse) StatusCode ¶
func (r GetVolumecontentVolumeIDDirResponse) StatusCode() int
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
JSON500 *N500
}
func ParseGetVolumecontentVolumeIDFileResponse ¶
func ParseGetVolumecontentVolumeIDFileResponse(rsp *http.Response) (*GetVolumecontentVolumeIDFileResponse, error)
ParseGetVolumecontentVolumeIDFileResponse parses an HTTP response from a GetVolumecontentVolumeIDFileWithResponse call
func (GetVolumecontentVolumeIDFileResponse) Status ¶
func (r GetVolumecontentVolumeIDFileResponse) Status() string
Status returns HTTPResponse.Status
func (GetVolumecontentVolumeIDFileResponse) StatusCode ¶
func (r GetVolumecontentVolumeIDFileResponse) StatusCode() int
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 *VolumeEntryStat
JSON404 *N404
}
func ParseGetVolumecontentVolumeIDPathResponse ¶
func ParseGetVolumecontentVolumeIDPathResponse(rsp *http.Response) (*GetVolumecontentVolumeIDPathResponse, error)
ParseGetVolumecontentVolumeIDPathResponse parses an HTTP response from a GetVolumecontentVolumeIDPathWithResponse call
func (GetVolumecontentVolumeIDPathResponse) Status ¶
func (r GetVolumecontentVolumeIDPathResponse) Status() string
Status returns HTTPResponse.Status
func (GetVolumecontentVolumeIDPathResponse) StatusCode ¶
func (r GetVolumecontentVolumeIDPathResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
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 *VolumeEntryStat
}
func ParsePatchVolumecontentVolumeIDPathResponse ¶
func ParsePatchVolumecontentVolumeIDPathResponse(rsp *http.Response) (*PatchVolumecontentVolumeIDPathResponse, error)
ParsePatchVolumecontentVolumeIDPathResponse parses an HTTP response from a PatchVolumecontentVolumeIDPathWithResponse call
func (PatchVolumecontentVolumeIDPathResponse) Status ¶
func (r PatchVolumecontentVolumeIDPathResponse) Status() string
Status returns HTTPResponse.Status
func (PatchVolumecontentVolumeIDPathResponse) StatusCode ¶
func (r PatchVolumecontentVolumeIDPathResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 *VolumeEntryStat
JSON500 *N500
}
func ParsePostVolumecontentVolumeIDDirResponse ¶
func ParsePostVolumecontentVolumeIDDirResponse(rsp *http.Response) (*PostVolumecontentVolumeIDDirResponse, error)
ParsePostVolumecontentVolumeIDDirResponse parses an HTTP response from a PostVolumecontentVolumeIDDirWithResponse call
func (PostVolumecontentVolumeIDDirResponse) Status ¶
func (r PostVolumecontentVolumeIDDirResponse) Status() string
Status returns HTTPResponse.Status
func (PostVolumecontentVolumeIDDirResponse) StatusCode ¶
func (r PostVolumecontentVolumeIDDirResponse) StatusCode() int
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 *VolumeEntryStat
JSON500 *N500
}
func ParsePutVolumecontentVolumeIDFileResponse ¶
func ParsePutVolumecontentVolumeIDFileResponse(rsp *http.Response) (*PutVolumecontentVolumeIDFileResponse, error)
ParsePutVolumecontentVolumeIDFileResponse parses an HTTP response from a PutVolumecontentVolumeIDFileWithResponse call
func (PutVolumecontentVolumeIDFileResponse) Status ¶
func (r PutVolumecontentVolumeIDFileResponse) Status() string
Status returns HTTPResponse.Status
func (PutVolumecontentVolumeIDFileResponse) StatusCode ¶
func (r PutVolumecontentVolumeIDFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
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.