workspace

package
v0.0.0-...-5d714f6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteWorkspaceNoContentCode int = 204

DeleteWorkspaceNoContentCode is the HTTP code returned for type DeleteWorkspaceNoContent

View Source
const GetWorkspacesOKCode int = 200

GetWorkspacesOKCode is the HTTP code returned for type GetWorkspacesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteWorkspace

type DeleteWorkspace struct {
	Context *middleware.Context
	Handler DeleteWorkspaceHandler
}

DeleteWorkspace swagger:route DELETE /workspaces workspace deleteWorkspace

delete user's workspace

func NewDeleteWorkspace

func NewDeleteWorkspace(ctx *middleware.Context, handler DeleteWorkspaceHandler) *DeleteWorkspace

NewDeleteWorkspace creates a new http.Handler for the delete workspace operation

func (*DeleteWorkspace) ServeHTTP

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

type DeleteWorkspaceBody

type DeleteWorkspaceBody struct {

	// path
	// Required: true
	Path *string `json:"path"`
}

DeleteWorkspaceBody workspace swagger:model DeleteWorkspaceBody

func (*DeleteWorkspaceBody) MarshalBinary

func (o *DeleteWorkspaceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteWorkspaceBody) UnmarshalBinary

func (o *DeleteWorkspaceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteWorkspaceBody) Validate

func (o *DeleteWorkspaceBody) Validate(formats strfmt.Registry) error

Validate validates this delete workspace body

type DeleteWorkspaceDefault

type DeleteWorkspaceDefault struct {

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

DeleteWorkspaceDefault Unexpected error

swagger:response deleteWorkspaceDefault

func NewDeleteWorkspaceDefault

func NewDeleteWorkspaceDefault(code int) *DeleteWorkspaceDefault

NewDeleteWorkspaceDefault creates DeleteWorkspaceDefault with default headers values

func (*DeleteWorkspaceDefault) SetPayload

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

SetPayload sets the payload to the delete workspace default response

func (*DeleteWorkspaceDefault) SetStatusCode

func (o *DeleteWorkspaceDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete workspace default response

func (*DeleteWorkspaceDefault) WithPayload

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

WithPayload adds the payload to the delete workspace default response

func (*DeleteWorkspaceDefault) WithStatusCode

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

WithStatusCode adds the status to the delete workspace default response

func (*DeleteWorkspaceDefault) WriteResponse

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

WriteResponse to the client

type DeleteWorkspaceHandler

type DeleteWorkspaceHandler interface {
	Handle(DeleteWorkspaceParams) middleware.Responder
}

DeleteWorkspaceHandler interface for that can handle valid delete workspace params

type DeleteWorkspaceHandlerFunc

type DeleteWorkspaceHandlerFunc func(DeleteWorkspaceParams) middleware.Responder

DeleteWorkspaceHandlerFunc turns a function with the right signature into a delete workspace handler

func (DeleteWorkspaceHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteWorkspaceNoContent

type DeleteWorkspaceNoContent struct {
}

DeleteWorkspaceNoContent OK

swagger:response deleteWorkspaceNoContent

func NewDeleteWorkspaceNoContent

func NewDeleteWorkspaceNoContent() *DeleteWorkspaceNoContent

NewDeleteWorkspaceNoContent creates DeleteWorkspaceNoContent with default headers values

func (*DeleteWorkspaceNoContent) WriteResponse

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

WriteResponse to the client

type DeleteWorkspaceParams

type DeleteWorkspaceParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body DeleteWorkspaceBody
}

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

swagger:parameters deleteWorkspace

func NewDeleteWorkspaceParams

func NewDeleteWorkspaceParams() DeleteWorkspaceParams

NewDeleteWorkspaceParams creates a new DeleteWorkspaceParams object no default values defined in spec.

func (*DeleteWorkspaceParams) BindRequest

func (o *DeleteWorkspaceParams) 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 NewDeleteWorkspaceParams() beforehand.

type DeleteWorkspaceURL

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

DeleteWorkspaceURL generates an URL for the delete workspace operation

func (*DeleteWorkspaceURL) Build

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

Build a url path and query string

func (*DeleteWorkspaceURL) BuildFull

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

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

func (*DeleteWorkspaceURL) Must

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

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

func (*DeleteWorkspaceURL) SetBasePath

func (o *DeleteWorkspaceURL) 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 (*DeleteWorkspaceURL) String

func (o *DeleteWorkspaceURL) String() string

String returns the string representation of the path with query string

func (*DeleteWorkspaceURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteWorkspaceURL) WithBasePath

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

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 GetWorkspaces

type GetWorkspaces struct {
	Context *middleware.Context
	Handler GetWorkspacesHandler
}

GetWorkspaces swagger:route GET /workspaces workspace getWorkspaces

returns user's workspaces

func NewGetWorkspaces

func NewGetWorkspaces(ctx *middleware.Context, handler GetWorkspacesHandler) *GetWorkspaces

NewGetWorkspaces creates a new http.Handler for the get workspaces operation

func (*GetWorkspaces) ServeHTTP

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

type GetWorkspacesDefault

type GetWorkspacesDefault struct {

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

GetWorkspacesDefault Unexpected error

swagger:response getWorkspacesDefault

func NewGetWorkspacesDefault

func NewGetWorkspacesDefault(code int) *GetWorkspacesDefault

NewGetWorkspacesDefault creates GetWorkspacesDefault with default headers values

func (*GetWorkspacesDefault) SetPayload

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

SetPayload sets the payload to the get workspaces default response

func (*GetWorkspacesDefault) SetStatusCode

func (o *GetWorkspacesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get workspaces default response

func (*GetWorkspacesDefault) WithPayload

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

WithPayload adds the payload to the get workspaces default response

func (*GetWorkspacesDefault) WithStatusCode

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

WithStatusCode adds the status to the get workspaces default response

func (*GetWorkspacesDefault) WriteResponse

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

WriteResponse to the client

type GetWorkspacesHandler

type GetWorkspacesHandler interface {
	Handle(GetWorkspacesParams) middleware.Responder
}

GetWorkspacesHandler interface for that can handle valid get workspaces params

type GetWorkspacesHandlerFunc

type GetWorkspacesHandlerFunc func(GetWorkspacesParams) middleware.Responder

GetWorkspacesHandlerFunc turns a function with the right signature into a get workspaces handler

func (GetWorkspacesHandlerFunc) Handle

Handle executing the request and returning a response

type GetWorkspacesOK

type GetWorkspacesOK struct {

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

GetWorkspacesOK OK

swagger:response getWorkspacesOK

func NewGetWorkspacesOK

func NewGetWorkspacesOK() *GetWorkspacesOK

NewGetWorkspacesOK creates GetWorkspacesOK with default headers values

func (*GetWorkspacesOK) SetPayload

func (o *GetWorkspacesOK) SetPayload(payload []*models.Workspace)

SetPayload sets the payload to the get workspaces o k response

func (*GetWorkspacesOK) WithPayload

func (o *GetWorkspacesOK) WithPayload(payload []*models.Workspace) *GetWorkspacesOK

WithPayload adds the payload to the get workspaces o k response

func (*GetWorkspacesOK) WriteResponse

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

WriteResponse to the client

type GetWorkspacesParams

type GetWorkspacesParams struct {

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

GetWorkspacesParams contains all the bound params for the get workspaces operation typically these are obtained from a http.Request

swagger:parameters getWorkspaces

func NewGetWorkspacesParams

func NewGetWorkspacesParams() GetWorkspacesParams

NewGetWorkspacesParams creates a new GetWorkspacesParams object no default values defined in spec.

func (*GetWorkspacesParams) BindRequest

func (o *GetWorkspacesParams) 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 NewGetWorkspacesParams() beforehand.

type GetWorkspacesURL

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

GetWorkspacesURL generates an URL for the get workspaces operation

func (*GetWorkspacesURL) Build

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

Build a url path and query string

func (*GetWorkspacesURL) BuildFull

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

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

func (*GetWorkspacesURL) Must

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

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

func (*GetWorkspacesURL) SetBasePath

func (o *GetWorkspacesURL) 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 (*GetWorkspacesURL) String

func (o *GetWorkspacesURL) String() string

String returns the string representation of the path with query string

func (*GetWorkspacesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetWorkspacesURL) WithBasePath

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

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