mounts

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteMountOKCode int = 200

DeleteMountOKCode is the HTTP code returned for type DeleteMountOK

View Source
const ListMountsOKCode int = 200

ListMountsOKCode is the HTTP code returned for type ListMountsOK

View Source
const MountCreatedCode int = 201

MountCreatedCode is the HTTP code returned for type MountCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteMount

type DeleteMount struct {
	Context *middleware.Context
	Handler DeleteMountHandler
}
DeleteMount swagger:route DELETE /mount mounts deleteMount

Unmount a specified mount. Note that mount reference IDs must be specified.

func NewDeleteMount

func NewDeleteMount(ctx *middleware.Context, handler DeleteMountHandler) *DeleteMount

NewDeleteMount creates a new http.Handler for the delete mount operation

func (*DeleteMount) ServeHTTP

func (o *DeleteMount) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteMountDefault

type DeleteMountDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteMountDefault Unmount failed

swagger:response deleteMountDefault

func NewDeleteMountDefault

func NewDeleteMountDefault(code int) *DeleteMountDefault

NewDeleteMountDefault creates DeleteMountDefault with default headers values

func (*DeleteMountDefault) SetPayload

func (o *DeleteMountDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete mount default response

func (*DeleteMountDefault) SetStatusCode

func (o *DeleteMountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete mount default response

func (*DeleteMountDefault) WithPayload

func (o *DeleteMountDefault) WithPayload(payload *models.Error) *DeleteMountDefault

WithPayload adds the payload to the delete mount default response

func (*DeleteMountDefault) WithStatusCode

func (o *DeleteMountDefault) WithStatusCode(code int) *DeleteMountDefault

WithStatusCode adds the status to the delete mount default response

func (*DeleteMountDefault) WriteResponse

func (o *DeleteMountDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteMountHandler

type DeleteMountHandler interface {
	Handle(DeleteMountParams) middleware.Responder
}

DeleteMountHandler interface for that can handle valid delete mount params

type DeleteMountHandlerFunc

type DeleteMountHandlerFunc func(DeleteMountParams) middleware.Responder

DeleteMountHandlerFunc turns a function with the right signature into a delete mount handler

func (DeleteMountHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteMountOK

type DeleteMountOK struct {

	/*
	  In: Body
	*/
	Payload *models.Mount `json:"body,omitempty"`
}

DeleteMountOK Unmount succeeded

swagger:response deleteMountOK

func NewDeleteMountOK

func NewDeleteMountOK() *DeleteMountOK

NewDeleteMountOK creates DeleteMountOK with default headers values

func (*DeleteMountOK) SetPayload

func (o *DeleteMountOK) SetPayload(payload *models.Mount)

SetPayload sets the payload to the delete mount o k response

func (*DeleteMountOK) WithPayload

func (o *DeleteMountOK) WithPayload(payload *models.Mount) *DeleteMountOK

WithPayload adds the payload to the delete mount o k response

func (*DeleteMountOK) WriteResponse

func (o *DeleteMountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteMountParams

type DeleteMountParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Force deletion
	  In: query
	  Default: false
	*/
	Force *bool
	/*ID of mount to delete
	  Required: true
	  In: query
	*/
	ID int64
}

DeleteMountParams contains all the bound params for the delete mount operation typically these are obtained from a http.Request

swagger:parameters DeleteMount

func NewDeleteMountParams

func NewDeleteMountParams() DeleteMountParams

NewDeleteMountParams creates a new DeleteMountParams object with the default values initialized.

func (*DeleteMountParams) BindRequest

func (o *DeleteMountParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteMountParams() beforehand.

type DeleteMountURL

type DeleteMountURL struct {
	Force *bool
	ID    int64
	// contains filtered or unexported fields
}

DeleteMountURL generates an URL for the delete mount operation

func (*DeleteMountURL) Build

func (o *DeleteMountURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteMountURL) BuildFull

func (o *DeleteMountURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteMountURL) Must

func (o *DeleteMountURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteMountURL) SetBasePath

func (o *DeleteMountURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteMountURL) String

func (o *DeleteMountURL) String() string

String returns the string representation of the path with query string

func (*DeleteMountURL) StringFull

func (o *DeleteMountURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteMountURL) WithBasePath

func (o *DeleteMountURL) WithBasePath(bp string) *DeleteMountURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListMounts

type ListMounts struct {
	Context *middleware.Context
	Handler ListMountsHandler
}
ListMounts swagger:route GET /mount mounts listMounts

List mounts

func NewListMounts

func NewListMounts(ctx *middleware.Context, handler ListMountsHandler) *ListMounts

NewListMounts creates a new http.Handler for the list mounts operation

func (*ListMounts) ServeHTTP

func (o *ListMounts) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListMountsDefault

type ListMountsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListMountsDefault error

swagger:response listMountsDefault

func NewListMountsDefault

func NewListMountsDefault(code int) *ListMountsDefault

NewListMountsDefault creates ListMountsDefault with default headers values

func (*ListMountsDefault) SetPayload

func (o *ListMountsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the list mounts default response

func (*ListMountsDefault) SetStatusCode

func (o *ListMountsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list mounts default response

func (*ListMountsDefault) WithPayload

func (o *ListMountsDefault) WithPayload(payload *models.Error) *ListMountsDefault

WithPayload adds the payload to the list mounts default response

func (*ListMountsDefault) WithStatusCode

func (o *ListMountsDefault) WithStatusCode(code int) *ListMountsDefault

WithStatusCode adds the status to the list mounts default response

func (*ListMountsDefault) WriteResponse

func (o *ListMountsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMountsHandler

type ListMountsHandler interface {
	Handle(ListMountsParams) middleware.Responder
}

ListMountsHandler interface for that can handle valid list mounts params

type ListMountsHandlerFunc

type ListMountsHandlerFunc func(ListMountsParams) middleware.Responder

ListMountsHandlerFunc turns a function with the right signature into a list mounts handler

func (ListMountsHandlerFunc) Handle

Handle executing the request and returning a response

type ListMountsOK

type ListMountsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Mount `json:"body,omitempty"`
}

ListMountsOK list all mounts

swagger:response listMountsOK

func NewListMountsOK

func NewListMountsOK() *ListMountsOK

NewListMountsOK creates ListMountsOK with default headers values

func (*ListMountsOK) SetPayload

func (o *ListMountsOK) SetPayload(payload []*models.Mount)

SetPayload sets the payload to the list mounts o k response

func (*ListMountsOK) WithPayload

func (o *ListMountsOK) WithPayload(payload []*models.Mount) *ListMountsOK

WithPayload adds the payload to the list mounts o k response

func (*ListMountsOK) WriteResponse

func (o *ListMountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMountsParams

type ListMountsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of a single mount to query.
	  In: query
	*/
	ID *int64
	/*Kind of mounts to query.
	  In: query
	*/
	Kind *string
}

ListMountsParams contains all the bound params for the list mounts operation typically these are obtained from a http.Request

swagger:parameters list_mounts

func NewListMountsParams

func NewListMountsParams() ListMountsParams

NewListMountsParams creates a new ListMountsParams object

There are no default values defined in the spec.

func (*ListMountsParams) BindRequest

func (o *ListMountsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListMountsParams() beforehand.

type ListMountsURL

type ListMountsURL struct {
	ID   *int64
	Kind *string
	// contains filtered or unexported fields
}

ListMountsURL generates an URL for the list mounts operation

func (*ListMountsURL) Build

func (o *ListMountsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListMountsURL) BuildFull

func (o *ListMountsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListMountsURL) Must

func (o *ListMountsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListMountsURL) SetBasePath

func (o *ListMountsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListMountsURL) String

func (o *ListMountsURL) String() string

String returns the string representation of the path with query string

func (*ListMountsURL) StringFull

func (o *ListMountsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListMountsURL) WithBasePath

func (o *ListMountsURL) WithBasePath(bp string) *ListMountsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type Mount

type Mount struct {
	Context *middleware.Context
	Handler MountHandler
}
Mount swagger:route POST /mount mounts mount

Create a new mount by mount specification.

func NewMount

func NewMount(ctx *middleware.Context, handler MountHandler) *Mount

NewMount creates a new http.Handler for the mount operation

func (*Mount) ServeHTTP

func (o *Mount) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type MountCreated

type MountCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Mount `json:"body,omitempty"`
}

MountCreated mount succeed

swagger:response mountCreated

func NewMountCreated

func NewMountCreated() *MountCreated

NewMountCreated creates MountCreated with default headers values

func (*MountCreated) SetPayload

func (o *MountCreated) SetPayload(payload *models.Mount)

SetPayload sets the payload to the mount created response

func (*MountCreated) WithPayload

func (o *MountCreated) WithPayload(payload *models.Mount) *MountCreated

WithPayload adds the payload to the mount created response

func (*MountCreated) WriteResponse

func (o *MountCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type MountDefault

type MountDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

MountDefault error

swagger:response mountDefault

func NewMountDefault

func NewMountDefault(code int) *MountDefault

NewMountDefault creates MountDefault with default headers values

func (*MountDefault) SetPayload

func (o *MountDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the mount default response

func (*MountDefault) SetStatusCode

func (o *MountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the mount default response

func (*MountDefault) WithPayload

func (o *MountDefault) WithPayload(payload *models.Error) *MountDefault

WithPayload adds the payload to the mount default response

func (*MountDefault) WithStatusCode

func (o *MountDefault) WithStatusCode(code int) *MountDefault

WithStatusCode adds the status to the mount default response

func (*MountDefault) WriteResponse

func (o *MountDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type MountHandler

type MountHandler interface {
	Handle(MountParams) middleware.Responder
}

MountHandler interface for that can handle valid mount params

type MountHandlerFunc

type MountHandlerFunc func(MountParams) middleware.Responder

MountHandlerFunc turns a function with the right signature into a mount handler

func (MountHandlerFunc) Handle

Handle executing the request and returning a response

type MountParams

type MountParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Mount *models.Mount
}

MountParams contains all the bound params for the mount operation typically these are obtained from a http.Request

swagger:parameters mount

func NewMountParams

func NewMountParams() MountParams

NewMountParams creates a new MountParams object

There are no default values defined in the spec.

func (*MountParams) BindRequest

func (o *MountParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewMountParams() beforehand.

type MountURL

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

MountURL generates an URL for the mount operation

func (*MountURL) Build

func (o *MountURL) Build() (*url.URL, error)

Build a url path and query string

func (*MountURL) BuildFull

func (o *MountURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*MountURL) Must

func (o *MountURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*MountURL) SetBasePath

func (o *MountURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*MountURL) String

func (o *MountURL) String() string

String returns the string representation of the path with query string

func (*MountURL) StringFull

func (o *MountURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*MountURL) WithBasePath

func (o *MountURL) WithBasePath(bp string) *MountURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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