operations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CreatePlanCreatedCode int = 201

CreatePlanCreatedCode is the HTTP code returned for type CreatePlanCreated

View Source
const CreatePlanRevisionOKCode int = 200

CreatePlanRevisionOKCode is the HTTP code returned for type CreatePlanRevisionOK

View Source
const CreateProjectCreatedCode int = 201

CreateProjectCreatedCode is the HTTP code returned for type CreateProjectCreated

View Source
const DeletePlanNoContentCode int = 204

DeletePlanNoContentCode is the HTTP code returned for type DeletePlanNoContent

View Source
const DeleteProjectNoContentCode int = 204

DeleteProjectNoContentCode is the HTTP code returned for type DeleteProjectNoContent

View Source
const GetAuthConfigOKCode int = 200

GetAuthConfigOKCode is the HTTP code returned for type GetAuthConfigOK

View Source
const GetPlanOKCode int = 200

GetPlanOKCode is the HTTP code returned for type GetPlanOK

View Source
const GetPlanRevisionOKCode int = 200

GetPlanRevisionOKCode is the HTTP code returned for type GetPlanRevisionOK

View Source
const GetPlanRevisionPracticeResponsesOKCode int = 200

GetPlanRevisionPracticeResponsesOKCode is the HTTP code returned for type GetPlanRevisionPracticeResponsesOK

View Source
const GetPlanVersionsOKCode int = 200

GetPlanVersionsOKCode is the HTTP code returned for type GetPlanVersionsOK

View Source
const GetPracticesOKCode int = 200

GetPracticesOKCode is the HTTP code returned for type GetPracticesOK

View Source
const GetProjectOKCode int = 200

GetProjectOKCode is the HTTP code returned for type GetProjectOK

View Source
const ListPracticesVersionsOKCode int = 200

ListPracticesVersionsOKCode is the HTTP code returned for type ListPracticesVersionsOK

View Source
const ListProjectsOKCode int = 200

ListProjectsOKCode is the HTTP code returned for type ListProjectsOK

View Source
const LoggedInOKCode int = 200

LoggedInOKCode is the HTTP code returned for type LoggedInOK

View Source
const UpdateProjectOKCode int = 200

UpdateProjectOKCode is the HTTP code returned for type UpdateProjectOK

Variables

This section is empty.

Functions

This section is empty.

Types

type BesecAPI

type BesecAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator

	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator

	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// KeyAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key Authorization provided in the header
	KeyAuth func(string) (*models.User, error)

	// APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal
	APIAuthorizer runtime.Authorizer

	// CreatePlanHandler sets the operation handler for the create plan operation
	CreatePlanHandler CreatePlanHandler
	// CreatePlanRevisionHandler sets the operation handler for the create plan revision operation
	CreatePlanRevisionHandler CreatePlanRevisionHandler
	// CreateProjectHandler sets the operation handler for the create project operation
	CreateProjectHandler CreateProjectHandler
	// DeletePlanHandler sets the operation handler for the delete plan operation
	DeletePlanHandler DeletePlanHandler
	// DeleteProjectHandler sets the operation handler for the delete project operation
	DeleteProjectHandler DeleteProjectHandler
	// GetAuthConfigHandler sets the operation handler for the get auth config operation
	GetAuthConfigHandler GetAuthConfigHandler
	// GetPlanHandler sets the operation handler for the get plan operation
	GetPlanHandler GetPlanHandler
	// GetPlanRevisionHandler sets the operation handler for the get plan revision operation
	GetPlanRevisionHandler GetPlanRevisionHandler
	// GetPlanRevisionPracticeResponsesHandler sets the operation handler for the get plan revision practice responses operation
	GetPlanRevisionPracticeResponsesHandler GetPlanRevisionPracticeResponsesHandler
	// GetPlanVersionsHandler sets the operation handler for the get plan versions operation
	GetPlanVersionsHandler GetPlanVersionsHandler
	// GetPracticesHandler sets the operation handler for the get practices operation
	GetPracticesHandler GetPracticesHandler
	// GetProjectHandler sets the operation handler for the get project operation
	GetProjectHandler GetProjectHandler
	// ListPracticesVersionsHandler sets the operation handler for the list practices versions operation
	ListPracticesVersionsHandler ListPracticesVersionsHandler
	// ListProjectsHandler sets the operation handler for the list projects operation
	ListProjectsHandler ListProjectsHandler
	// LoggedInHandler sets the operation handler for the logged in operation
	LoggedInHandler LoggedInHandler
	// UpdateProjectHandler sets the operation handler for the update project operation
	UpdateProjectHandler UpdateProjectHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

BesecAPI the besec API

func NewBesecAPI

func NewBesecAPI(spec *loads.Document) *BesecAPI

NewBesecAPI creates a new Besec instance

func (*BesecAPI) AddMiddlewareFor

func (o *BesecAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*BesecAPI) AuthenticatorsFor

func (o *BesecAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*BesecAPI) Authorizer

func (o *BesecAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*BesecAPI) ConsumersFor

func (o *BesecAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*BesecAPI) Context

func (o *BesecAPI) Context() *middleware.Context

Context returns the middleware context for the besec API

func (*BesecAPI) DefaultConsumes

func (o *BesecAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*BesecAPI) DefaultProduces

func (o *BesecAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*BesecAPI) Formats

func (o *BesecAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*BesecAPI) HandlerFor

func (o *BesecAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*BesecAPI) Init

func (o *BesecAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*BesecAPI) ProducersFor

func (o *BesecAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*BesecAPI) RegisterConsumer

func (o *BesecAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*BesecAPI) RegisterFormat

func (o *BesecAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*BesecAPI) RegisterProducer

func (o *BesecAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*BesecAPI) Serve

func (o *BesecAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*BesecAPI) ServeErrorFor

func (o *BesecAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*BesecAPI) SetDefaultConsumes

func (o *BesecAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*BesecAPI) SetDefaultProduces

func (o *BesecAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*BesecAPI) SetSpec

func (o *BesecAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*BesecAPI) UseRedoc

func (o *BesecAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*BesecAPI) UseSwaggerUI

func (o *BesecAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*BesecAPI) Validate

func (o *BesecAPI) Validate() error

Validate validates the registrations in the BesecAPI

type CreatePlan

type CreatePlan struct {
	Context *middleware.Context
	Handler CreatePlanHandler
}
CreatePlan swagger:route POST /plan createPlan

CreatePlan create plan API

func NewCreatePlan

func NewCreatePlan(ctx *middleware.Context, handler CreatePlanHandler) *CreatePlan

NewCreatePlan creates a new http.Handler for the create plan operation

func (*CreatePlan) ServeHTTP

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

type CreatePlanBody

type CreatePlanBody struct {

	// details
	// Required: true
	Details *lib.PlanDetails `json:"details"`

	// responses
	// Required: true
	Responses *lib.PlanResponses `json:"responses"`
}

CreatePlanBody create plan body

swagger:model CreatePlanBody

func (*CreatePlanBody) ContextValidate

func (o *CreatePlanBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create plan body based on the context it is used

func (*CreatePlanBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreatePlanBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreatePlanBody) Validate

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

Validate validates this create plan body

type CreatePlanCreated

type CreatePlanCreated struct {

	/*
	  In: Body
	*/
	Payload *CreatePlanCreatedBody `json:"body,omitempty"`
}

CreatePlanCreated Created

swagger:response createPlanCreated

func NewCreatePlanCreated

func NewCreatePlanCreated() *CreatePlanCreated

NewCreatePlanCreated creates CreatePlanCreated with default headers values

func (*CreatePlanCreated) SetPayload

func (o *CreatePlanCreated) SetPayload(payload *CreatePlanCreatedBody)

SetPayload sets the payload to the create plan created response

func (*CreatePlanCreated) WithPayload

func (o *CreatePlanCreated) WithPayload(payload *CreatePlanCreatedBody) *CreatePlanCreated

WithPayload adds the payload to the create plan created response

func (*CreatePlanCreated) WriteResponse

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

WriteResponse to the client

type CreatePlanCreatedBody

type CreatePlanCreatedBody struct {

	// The ID of the plan
	// Required: true
	PlanID *string `json:"planId"`

	// The revision ID of the initial revision
	// Required: true
	RevisionID *string `json:"revisionId"`
}

CreatePlanCreatedBody create plan created body

swagger:model CreatePlanCreatedBody

func (*CreatePlanCreatedBody) ContextValidate

func (o *CreatePlanCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create plan created body based on context it is used

func (*CreatePlanCreatedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreatePlanCreatedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreatePlanCreatedBody) Validate

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

Validate validates this create plan created body

type CreatePlanDefault

type CreatePlanDefault struct {

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

CreatePlanDefault error

swagger:response createPlanDefault

func NewCreatePlanDefault

func NewCreatePlanDefault(code int) *CreatePlanDefault

NewCreatePlanDefault creates CreatePlanDefault with default headers values

func (*CreatePlanDefault) SetPayload

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

SetPayload sets the payload to the create plan default response

func (*CreatePlanDefault) SetStatusCode

func (o *CreatePlanDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create plan default response

func (*CreatePlanDefault) WithPayload

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

WithPayload adds the payload to the create plan default response

func (*CreatePlanDefault) WithStatusCode

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

WithStatusCode adds the status to the create plan default response

func (*CreatePlanDefault) WriteResponse

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

WriteResponse to the client

type CreatePlanHandler

type CreatePlanHandler interface {
	Handle(CreatePlanParams, *models.User) middleware.Responder
}

CreatePlanHandler interface for that can handle valid create plan params

type CreatePlanHandlerFunc

type CreatePlanHandlerFunc func(CreatePlanParams, *models.User) middleware.Responder

CreatePlanHandlerFunc turns a function with the right signature into a create plan handler

func (CreatePlanHandlerFunc) Handle

func (fn CreatePlanHandlerFunc) Handle(params CreatePlanParams, principal *models.User) middleware.Responder

Handle executing the request and returning a response

type CreatePlanParams

type CreatePlanParams struct {

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

	/*
	  In: body
	*/
	Body CreatePlanBody
}

CreatePlanParams contains all the bound params for the create plan operation typically these are obtained from a http.Request

swagger:parameters createPlan

func NewCreatePlanParams

func NewCreatePlanParams() CreatePlanParams

NewCreatePlanParams creates a new CreatePlanParams object

There are no default values defined in the spec.

func (*CreatePlanParams) BindRequest

func (o *CreatePlanParams) 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 NewCreatePlanParams() beforehand.

type CreatePlanRevision

type CreatePlanRevision struct {
	Context *middleware.Context
	Handler CreatePlanRevisionHandler
}
CreatePlanRevision swagger:route POST /plan/{id} createPlanRevision

CreatePlanRevision create plan revision API

func NewCreatePlanRevision

func NewCreatePlanRevision(ctx *middleware.Context, handler CreatePlanRevisionHandler) *CreatePlanRevision

NewCreatePlanRevision creates a new http.Handler for the create plan revision operation

func (*CreatePlanRevision) ServeHTTP

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

type CreatePlanRevisionBody

type CreatePlanRevisionBody struct {

	// details
	// Required: true
	Details *lib.PlanDetails `json:"details"`

	// responses
	// Required: true
	Responses *lib.PlanResponses `json:"responses"`
}

CreatePlanRevisionBody create plan revision body

swagger:model CreatePlanRevisionBody

func (*CreatePlanRevisionBody) ContextValidate

func (o *CreatePlanRevisionBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create plan revision body based on the context it is used

func (*CreatePlanRevisionBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreatePlanRevisionBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreatePlanRevisionBody) Validate

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

Validate validates this create plan revision body

type CreatePlanRevisionDefault

type CreatePlanRevisionDefault struct {

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

CreatePlanRevisionDefault error

swagger:response createPlanRevisionDefault

func NewCreatePlanRevisionDefault

func NewCreatePlanRevisionDefault(code int) *CreatePlanRevisionDefault

NewCreatePlanRevisionDefault creates CreatePlanRevisionDefault with default headers values

func (*CreatePlanRevisionDefault) SetPayload

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

SetPayload sets the payload to the create plan revision default response

func (*CreatePlanRevisionDefault) SetStatusCode

func (o *CreatePlanRevisionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create plan revision default response

func (*CreatePlanRevisionDefault) WithPayload

WithPayload adds the payload to the create plan revision default response

func (*CreatePlanRevisionDefault) WithStatusCode

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

WithStatusCode adds the status to the create plan revision default response

func (*CreatePlanRevisionDefault) WriteResponse

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

WriteResponse to the client

type CreatePlanRevisionHandler

type CreatePlanRevisionHandler interface {
	Handle(CreatePlanRevisionParams, *models.User) middleware.Responder
}

CreatePlanRevisionHandler interface for that can handle valid create plan revision params

type CreatePlanRevisionHandlerFunc

type CreatePlanRevisionHandlerFunc func(CreatePlanRevisionParams, *models.User) middleware.Responder

CreatePlanRevisionHandlerFunc turns a function with the right signature into a create plan revision handler

func (CreatePlanRevisionHandlerFunc) Handle

Handle executing the request and returning a response

type CreatePlanRevisionOK

type CreatePlanRevisionOK struct {

	/*The ID of the new revision
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

CreatePlanRevisionOK OK

swagger:response createPlanRevisionOK

func NewCreatePlanRevisionOK

func NewCreatePlanRevisionOK() *CreatePlanRevisionOK

NewCreatePlanRevisionOK creates CreatePlanRevisionOK with default headers values

func (*CreatePlanRevisionOK) SetPayload

func (o *CreatePlanRevisionOK) SetPayload(payload string)

SetPayload sets the payload to the create plan revision o k response

func (*CreatePlanRevisionOK) WithPayload

func (o *CreatePlanRevisionOK) WithPayload(payload string) *CreatePlanRevisionOK

WithPayload adds the payload to the create plan revision o k response

func (*CreatePlanRevisionOK) WriteResponse

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

WriteResponse to the client

type CreatePlanRevisionParams

type CreatePlanRevisionParams struct {

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

	/*
	  In: body
	*/
	Body CreatePlanRevisionBody
	/*
	  Required: true
	  In: path
	*/
	ID string
}

CreatePlanRevisionParams contains all the bound params for the create plan revision operation typically these are obtained from a http.Request

swagger:parameters createPlanRevision

func NewCreatePlanRevisionParams

func NewCreatePlanRevisionParams() CreatePlanRevisionParams

NewCreatePlanRevisionParams creates a new CreatePlanRevisionParams object

There are no default values defined in the spec.

func (*CreatePlanRevisionParams) BindRequest

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 NewCreatePlanRevisionParams() beforehand.

type CreatePlanRevisionURL

type CreatePlanRevisionURL struct {
	ID string
	// contains filtered or unexported fields
}

CreatePlanRevisionURL generates an URL for the create plan revision operation

func (*CreatePlanRevisionURL) Build

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

Build a url path and query string

func (*CreatePlanRevisionURL) BuildFull

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

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

func (*CreatePlanRevisionURL) Must

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

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

func (*CreatePlanRevisionURL) SetBasePath

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

func (o *CreatePlanRevisionURL) String() string

String returns the string representation of the path with query string

func (*CreatePlanRevisionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreatePlanRevisionURL) WithBasePath

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

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 CreatePlanURL

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

CreatePlanURL generates an URL for the create plan operation

func (*CreatePlanURL) Build

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

Build a url path and query string

func (*CreatePlanURL) BuildFull

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

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

func (*CreatePlanURL) Must

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

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

func (*CreatePlanURL) SetBasePath

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

func (o *CreatePlanURL) String() string

String returns the string representation of the path with query string

func (*CreatePlanURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreatePlanURL) WithBasePath

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

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 CreateProject

type CreateProject struct {
	Context *middleware.Context
	Handler CreateProjectHandler
}
CreateProject swagger:route POST /project createProject

CreateProject create project API

func NewCreateProject

func NewCreateProject(ctx *middleware.Context, handler CreateProjectHandler) *CreateProject

NewCreateProject creates a new http.Handler for the create project operation

func (*CreateProject) ServeHTTP

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

type CreateProjectCreated

type CreateProjectCreated struct {

	/*The ID of the project
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

CreateProjectCreated Created

swagger:response createProjectCreated

func NewCreateProjectCreated

func NewCreateProjectCreated() *CreateProjectCreated

NewCreateProjectCreated creates CreateProjectCreated with default headers values

func (*CreateProjectCreated) SetPayload

func (o *CreateProjectCreated) SetPayload(payload string)

SetPayload sets the payload to the create project created response

func (*CreateProjectCreated) WithPayload

func (o *CreateProjectCreated) WithPayload(payload string) *CreateProjectCreated

WithPayload adds the payload to the create project created response

func (*CreateProjectCreated) WriteResponse

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

WriteResponse to the client

type CreateProjectDefault

type CreateProjectDefault struct {

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

CreateProjectDefault error

swagger:response createProjectDefault

func NewCreateProjectDefault

func NewCreateProjectDefault(code int) *CreateProjectDefault

NewCreateProjectDefault creates CreateProjectDefault with default headers values

func (*CreateProjectDefault) SetPayload

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

SetPayload sets the payload to the create project default response

func (*CreateProjectDefault) SetStatusCode

func (o *CreateProjectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create project default response

func (*CreateProjectDefault) WithPayload

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

WithPayload adds the payload to the create project default response

func (*CreateProjectDefault) WithStatusCode

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

WithStatusCode adds the status to the create project default response

func (*CreateProjectDefault) WriteResponse

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

WriteResponse to the client

type CreateProjectHandler

type CreateProjectHandler interface {
	Handle(CreateProjectParams, *models.User) middleware.Responder
}

CreateProjectHandler interface for that can handle valid create project params

type CreateProjectHandlerFunc

type CreateProjectHandlerFunc func(CreateProjectParams, *models.User) middleware.Responder

CreateProjectHandlerFunc turns a function with the right signature into a create project handler

func (CreateProjectHandlerFunc) Handle

Handle executing the request and returning a response

type CreateProjectParams

type CreateProjectParams struct {

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

	/*
	  In: body
	*/
	Body *models.ProjectDetails
}

CreateProjectParams contains all the bound params for the create project operation typically these are obtained from a http.Request

swagger:parameters createProject

func NewCreateProjectParams

func NewCreateProjectParams() CreateProjectParams

NewCreateProjectParams creates a new CreateProjectParams object

There are no default values defined in the spec.

func (*CreateProjectParams) BindRequest

func (o *CreateProjectParams) 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 NewCreateProjectParams() beforehand.

type CreateProjectURL

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

CreateProjectURL generates an URL for the create project operation

func (*CreateProjectURL) Build

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

Build a url path and query string

func (*CreateProjectURL) BuildFull

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

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

func (*CreateProjectURL) Must

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

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

func (*CreateProjectURL) SetBasePath

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

func (o *CreateProjectURL) String() string

String returns the string representation of the path with query string

func (*CreateProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateProjectURL) WithBasePath

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

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 DeletePlan

type DeletePlan struct {
	Context *middleware.Context
	Handler DeletePlanHandler
}
DeletePlan swagger:route DELETE /plan/{id} deletePlan

Delete this plan and all of the revisions associated with it

func NewDeletePlan

func NewDeletePlan(ctx *middleware.Context, handler DeletePlanHandler) *DeletePlan

NewDeletePlan creates a new http.Handler for the delete plan operation

func (*DeletePlan) ServeHTTP

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

type DeletePlanDefault

type DeletePlanDefault struct {

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

DeletePlanDefault error

swagger:response deletePlanDefault

func NewDeletePlanDefault

func NewDeletePlanDefault(code int) *DeletePlanDefault

NewDeletePlanDefault creates DeletePlanDefault with default headers values

func (*DeletePlanDefault) SetPayload

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

SetPayload sets the payload to the delete plan default response

func (*DeletePlanDefault) SetStatusCode

func (o *DeletePlanDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete plan default response

func (*DeletePlanDefault) WithPayload

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

WithPayload adds the payload to the delete plan default response

func (*DeletePlanDefault) WithStatusCode

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

WithStatusCode adds the status to the delete plan default response

func (*DeletePlanDefault) WriteResponse

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

WriteResponse to the client

type DeletePlanHandler

type DeletePlanHandler interface {
	Handle(DeletePlanParams, *models.User) middleware.Responder
}

DeletePlanHandler interface for that can handle valid delete plan params

type DeletePlanHandlerFunc

type DeletePlanHandlerFunc func(DeletePlanParams, *models.User) middleware.Responder

DeletePlanHandlerFunc turns a function with the right signature into a delete plan handler

func (DeletePlanHandlerFunc) Handle

func (fn DeletePlanHandlerFunc) Handle(params DeletePlanParams, principal *models.User) middleware.Responder

Handle executing the request and returning a response

type DeletePlanNoContent

type DeletePlanNoContent struct {
}

DeletePlanNoContent Deleted

swagger:response deletePlanNoContent

func NewDeletePlanNoContent

func NewDeletePlanNoContent() *DeletePlanNoContent

NewDeletePlanNoContent creates DeletePlanNoContent with default headers values

func (*DeletePlanNoContent) WriteResponse

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

WriteResponse to the client

type DeletePlanParams

type DeletePlanParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters deletePlan

func NewDeletePlanParams

func NewDeletePlanParams() DeletePlanParams

NewDeletePlanParams creates a new DeletePlanParams object

There are no default values defined in the spec.

func (*DeletePlanParams) BindRequest

func (o *DeletePlanParams) 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 NewDeletePlanParams() beforehand.

type DeletePlanURL

type DeletePlanURL struct {
	ID string
	// contains filtered or unexported fields
}

DeletePlanURL generates an URL for the delete plan operation

func (*DeletePlanURL) Build

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

Build a url path and query string

func (*DeletePlanURL) BuildFull

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

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

func (*DeletePlanURL) Must

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

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

func (*DeletePlanURL) SetBasePath

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

func (o *DeletePlanURL) String() string

String returns the string representation of the path with query string

func (*DeletePlanURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeletePlanURL) WithBasePath

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

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 DeleteProject

type DeleteProject struct {
	Context *middleware.Context
	Handler DeleteProjectHandler
}
DeleteProject swagger:route DELETE /project/{id} deleteProject

DeleteProject delete project API

func NewDeleteProject

func NewDeleteProject(ctx *middleware.Context, handler DeleteProjectHandler) *DeleteProject

NewDeleteProject creates a new http.Handler for the delete project operation

func (*DeleteProject) ServeHTTP

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

type DeleteProjectDefault

type DeleteProjectDefault struct {

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

DeleteProjectDefault error

swagger:response deleteProjectDefault

func NewDeleteProjectDefault

func NewDeleteProjectDefault(code int) *DeleteProjectDefault

NewDeleteProjectDefault creates DeleteProjectDefault with default headers values

func (*DeleteProjectDefault) SetPayload

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

SetPayload sets the payload to the delete project default response

func (*DeleteProjectDefault) SetStatusCode

func (o *DeleteProjectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete project default response

func (*DeleteProjectDefault) WithPayload

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

WithPayload adds the payload to the delete project default response

func (*DeleteProjectDefault) WithStatusCode

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

WithStatusCode adds the status to the delete project default response

func (*DeleteProjectDefault) WriteResponse

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

WriteResponse to the client

type DeleteProjectHandler

type DeleteProjectHandler interface {
	Handle(DeleteProjectParams, *models.User) middleware.Responder
}

DeleteProjectHandler interface for that can handle valid delete project params

type DeleteProjectHandlerFunc

type DeleteProjectHandlerFunc func(DeleteProjectParams, *models.User) middleware.Responder

DeleteProjectHandlerFunc turns a function with the right signature into a delete project handler

func (DeleteProjectHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteProjectNoContent

type DeleteProjectNoContent struct {
}

DeleteProjectNoContent Deleted

swagger:response deleteProjectNoContent

func NewDeleteProjectNoContent

func NewDeleteProjectNoContent() *DeleteProjectNoContent

NewDeleteProjectNoContent creates DeleteProjectNoContent with default headers values

func (*DeleteProjectNoContent) WriteResponse

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

WriteResponse to the client

type DeleteProjectParams

type DeleteProjectParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters deleteProject

func NewDeleteProjectParams

func NewDeleteProjectParams() DeleteProjectParams

NewDeleteProjectParams creates a new DeleteProjectParams object

There are no default values defined in the spec.

func (*DeleteProjectParams) BindRequest

func (o *DeleteProjectParams) 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 NewDeleteProjectParams() beforehand.

type DeleteProjectURL

type DeleteProjectURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteProjectURL generates an URL for the delete project operation

func (*DeleteProjectURL) Build

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

Build a url path and query string

func (*DeleteProjectURL) BuildFull

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

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

func (*DeleteProjectURL) Must

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

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

func (*DeleteProjectURL) SetBasePath

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

func (o *DeleteProjectURL) String() string

String returns the string representation of the path with query string

func (*DeleteProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteProjectURL) WithBasePath

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

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 GetAuthConfig

type GetAuthConfig struct {
	Context *middleware.Context
	Handler GetAuthConfigHandler
}
GetAuthConfig swagger:route GET /auth getAuthConfig

GetAuthConfig get auth config API

func NewGetAuthConfig

func NewGetAuthConfig(ctx *middleware.Context, handler GetAuthConfigHandler) *GetAuthConfig

NewGetAuthConfig creates a new http.Handler for the get auth config operation

func (*GetAuthConfig) ServeHTTP

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

type GetAuthConfigDefault

type GetAuthConfigDefault struct {

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

GetAuthConfigDefault error

swagger:response getAuthConfigDefault

func NewGetAuthConfigDefault

func NewGetAuthConfigDefault(code int) *GetAuthConfigDefault

NewGetAuthConfigDefault creates GetAuthConfigDefault with default headers values

func (*GetAuthConfigDefault) SetPayload

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

SetPayload sets the payload to the get auth config default response

func (*GetAuthConfigDefault) SetStatusCode

func (o *GetAuthConfigDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get auth config default response

func (*GetAuthConfigDefault) WithPayload

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

WithPayload adds the payload to the get auth config default response

func (*GetAuthConfigDefault) WithStatusCode

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

WithStatusCode adds the status to the get auth config default response

func (*GetAuthConfigDefault) WriteResponse

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

WriteResponse to the client

type GetAuthConfigHandler

type GetAuthConfigHandler interface {
	Handle(GetAuthConfigParams) middleware.Responder
}

GetAuthConfigHandler interface for that can handle valid get auth config params

type GetAuthConfigHandlerFunc

type GetAuthConfigHandlerFunc func(GetAuthConfigParams) middleware.Responder

GetAuthConfigHandlerFunc turns a function with the right signature into a get auth config handler

func (GetAuthConfigHandlerFunc) Handle

Handle executing the request and returning a response

type GetAuthConfigOK

type GetAuthConfigOK struct {

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

GetAuthConfigOK OK

swagger:response getAuthConfigOK

func NewGetAuthConfigOK

func NewGetAuthConfigOK() *GetAuthConfigOK

NewGetAuthConfigOK creates GetAuthConfigOK with default headers values

func (*GetAuthConfigOK) SetPayload

func (o *GetAuthConfigOK) SetPayload(payload *models.AuthConfig)

SetPayload sets the payload to the get auth config o k response

func (*GetAuthConfigOK) WithPayload

func (o *GetAuthConfigOK) WithPayload(payload *models.AuthConfig) *GetAuthConfigOK

WithPayload adds the payload to the get auth config o k response

func (*GetAuthConfigOK) WriteResponse

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

WriteResponse to the client

type GetAuthConfigParams

type GetAuthConfigParams struct {

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

GetAuthConfigParams contains all the bound params for the get auth config operation typically these are obtained from a http.Request

swagger:parameters getAuthConfig

func NewGetAuthConfigParams

func NewGetAuthConfigParams() GetAuthConfigParams

NewGetAuthConfigParams creates a new GetAuthConfigParams object

There are no default values defined in the spec.

func (*GetAuthConfigParams) BindRequest

func (o *GetAuthConfigParams) 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 NewGetAuthConfigParams() beforehand.

type GetAuthConfigURL

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

GetAuthConfigURL generates an URL for the get auth config operation

func (*GetAuthConfigURL) Build

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

Build a url path and query string

func (*GetAuthConfigURL) BuildFull

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

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

func (*GetAuthConfigURL) Must

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

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

func (*GetAuthConfigURL) SetBasePath

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

func (o *GetAuthConfigURL) String() string

String returns the string representation of the path with query string

func (*GetAuthConfigURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAuthConfigURL) WithBasePath

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

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 GetPlan

type GetPlan struct {
	Context *middleware.Context
	Handler GetPlanHandler
}
GetPlan swagger:route GET /plan/{id} getPlan

GetPlan get plan API

func NewGetPlan

func NewGetPlan(ctx *middleware.Context, handler GetPlanHandler) *GetPlan

NewGetPlan creates a new http.Handler for the get plan operation

func (*GetPlan) ServeHTTP

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

type GetPlanDefault

type GetPlanDefault struct {

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

GetPlanDefault error

swagger:response getPlanDefault

func NewGetPlanDefault

func NewGetPlanDefault(code int) *GetPlanDefault

NewGetPlanDefault creates GetPlanDefault with default headers values

func (*GetPlanDefault) SetPayload

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

SetPayload sets the payload to the get plan default response

func (*GetPlanDefault) SetStatusCode

func (o *GetPlanDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get plan default response

func (*GetPlanDefault) WithPayload

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

WithPayload adds the payload to the get plan default response

func (*GetPlanDefault) WithStatusCode

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

WithStatusCode adds the status to the get plan default response

func (*GetPlanDefault) WriteResponse

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

WriteResponse to the client

type GetPlanHandler

type GetPlanHandler interface {
	Handle(GetPlanParams, *models.User) middleware.Responder
}

GetPlanHandler interface for that can handle valid get plan params

type GetPlanHandlerFunc

type GetPlanHandlerFunc func(GetPlanParams, *models.User) middleware.Responder

GetPlanHandlerFunc turns a function with the right signature into a get plan handler

func (GetPlanHandlerFunc) Handle

func (fn GetPlanHandlerFunc) Handle(params GetPlanParams, principal *models.User) middleware.Responder

Handle executing the request and returning a response

type GetPlanOK

type GetPlanOK struct {

	/*
	  In: Body
	*/
	Payload *GetPlanOKBody `json:"body,omitempty"`
}

GetPlanOK OK

swagger:response getPlanOK

func NewGetPlanOK

func NewGetPlanOK() *GetPlanOK

NewGetPlanOK creates GetPlanOK with default headers values

func (*GetPlanOK) SetPayload

func (o *GetPlanOK) SetPayload(payload *GetPlanOKBody)

SetPayload sets the payload to the get plan o k response

func (*GetPlanOK) WithPayload

func (o *GetPlanOK) WithPayload(payload *GetPlanOKBody) *GetPlanOK

WithPayload adds the payload to the get plan o k response

func (*GetPlanOK) WriteResponse

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

WriteResponse to the client

type GetPlanOKBody

type GetPlanOKBody struct {

	// The ID of the latest revision of this plan
	// Required: true
	LatestRevision *string `json:"latestRevision"`

	// plan
	// Required: true
	Plan *models.Plan `json:"plan"`
}

GetPlanOKBody get plan o k body

swagger:model GetPlanOKBody

func (*GetPlanOKBody) ContextValidate

func (o *GetPlanOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get plan o k body based on the context it is used

func (*GetPlanOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetPlanOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetPlanOKBody) Validate

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

Validate validates this get plan o k body

type GetPlanParams

type GetPlanParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters getPlan

func NewGetPlanParams

func NewGetPlanParams() GetPlanParams

NewGetPlanParams creates a new GetPlanParams object

There are no default values defined in the spec.

func (*GetPlanParams) BindRequest

func (o *GetPlanParams) 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 NewGetPlanParams() beforehand.

type GetPlanRevision

type GetPlanRevision struct {
	Context *middleware.Context
	Handler GetPlanRevisionHandler
}
GetPlanRevision swagger:route GET /plan/{id}/revision/{revId} getPlanRevision

GetPlanRevision get plan revision API

func NewGetPlanRevision

func NewGetPlanRevision(ctx *middleware.Context, handler GetPlanRevisionHandler) *GetPlanRevision

NewGetPlanRevision creates a new http.Handler for the get plan revision operation

func (*GetPlanRevision) ServeHTTP

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

type GetPlanRevisionDefault

type GetPlanRevisionDefault struct {

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

GetPlanRevisionDefault error

swagger:response getPlanRevisionDefault

func NewGetPlanRevisionDefault

func NewGetPlanRevisionDefault(code int) *GetPlanRevisionDefault

NewGetPlanRevisionDefault creates GetPlanRevisionDefault with default headers values

func (*GetPlanRevisionDefault) SetPayload

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

SetPayload sets the payload to the get plan revision default response

func (*GetPlanRevisionDefault) SetStatusCode

func (o *GetPlanRevisionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get plan revision default response

func (*GetPlanRevisionDefault) WithPayload

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

WithPayload adds the payload to the get plan revision default response

func (*GetPlanRevisionDefault) WithStatusCode

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

WithStatusCode adds the status to the get plan revision default response

func (*GetPlanRevisionDefault) WriteResponse

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

WriteResponse to the client

type GetPlanRevisionHandler

type GetPlanRevisionHandler interface {
	Handle(GetPlanRevisionParams, *models.User) middleware.Responder
}

GetPlanRevisionHandler interface for that can handle valid get plan revision params

type GetPlanRevisionHandlerFunc

type GetPlanRevisionHandlerFunc func(GetPlanRevisionParams, *models.User) middleware.Responder

GetPlanRevisionHandlerFunc turns a function with the right signature into a get plan revision handler

func (GetPlanRevisionHandlerFunc) Handle

Handle executing the request and returning a response

type GetPlanRevisionOK

type GetPlanRevisionOK struct {

	/*
	  In: Body
	*/
	Payload *lib.PlanDetails `json:"body,omitempty"`
}

GetPlanRevisionOK OK

swagger:response getPlanRevisionOK

func NewGetPlanRevisionOK

func NewGetPlanRevisionOK() *GetPlanRevisionOK

NewGetPlanRevisionOK creates GetPlanRevisionOK with default headers values

func (*GetPlanRevisionOK) SetPayload

func (o *GetPlanRevisionOK) SetPayload(payload *lib.PlanDetails)

SetPayload sets the payload to the get plan revision o k response

func (*GetPlanRevisionOK) WithPayload

func (o *GetPlanRevisionOK) WithPayload(payload *lib.PlanDetails) *GetPlanRevisionOK

WithPayload adds the payload to the get plan revision o k response

func (*GetPlanRevisionOK) WriteResponse

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

WriteResponse to the client

type GetPlanRevisionParams

type GetPlanRevisionParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
	/*
	  Required: true
	  In: path
	*/
	RevID string
}

GetPlanRevisionParams contains all the bound params for the get plan revision operation typically these are obtained from a http.Request

swagger:parameters getPlanRevision

func NewGetPlanRevisionParams

func NewGetPlanRevisionParams() GetPlanRevisionParams

NewGetPlanRevisionParams creates a new GetPlanRevisionParams object

There are no default values defined in the spec.

func (*GetPlanRevisionParams) BindRequest

func (o *GetPlanRevisionParams) 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 NewGetPlanRevisionParams() beforehand.

type GetPlanRevisionPracticeResponses

type GetPlanRevisionPracticeResponses struct {
	Context *middleware.Context
	Handler GetPlanRevisionPracticeResponsesHandler
}
GetPlanRevisionPracticeResponses swagger:route GET /plan/{id}/revision/{revId}/responses getPlanRevisionPracticeResponses

GetPlanRevisionPracticeResponses get plan revision practice responses API

func NewGetPlanRevisionPracticeResponses

func NewGetPlanRevisionPracticeResponses(ctx *middleware.Context, handler GetPlanRevisionPracticeResponsesHandler) *GetPlanRevisionPracticeResponses

NewGetPlanRevisionPracticeResponses creates a new http.Handler for the get plan revision practice responses operation

func (*GetPlanRevisionPracticeResponses) ServeHTTP

type GetPlanRevisionPracticeResponsesDefault

type GetPlanRevisionPracticeResponsesDefault struct {

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

GetPlanRevisionPracticeResponsesDefault error

swagger:response getPlanRevisionPracticeResponsesDefault

func NewGetPlanRevisionPracticeResponsesDefault

func NewGetPlanRevisionPracticeResponsesDefault(code int) *GetPlanRevisionPracticeResponsesDefault

NewGetPlanRevisionPracticeResponsesDefault creates GetPlanRevisionPracticeResponsesDefault with default headers values

func (*GetPlanRevisionPracticeResponsesDefault) SetPayload

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

SetPayload sets the payload to the get plan revision practice responses default response

func (*GetPlanRevisionPracticeResponsesDefault) SetStatusCode

func (o *GetPlanRevisionPracticeResponsesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get plan revision practice responses default response

func (*GetPlanRevisionPracticeResponsesDefault) WithPayload

WithPayload adds the payload to the get plan revision practice responses default response

func (*GetPlanRevisionPracticeResponsesDefault) WithStatusCode

WithStatusCode adds the status to the get plan revision practice responses default response

func (*GetPlanRevisionPracticeResponsesDefault) WriteResponse

WriteResponse to the client

type GetPlanRevisionPracticeResponsesHandler

type GetPlanRevisionPracticeResponsesHandler interface {
	Handle(GetPlanRevisionPracticeResponsesParams, *models.User) middleware.Responder
}

GetPlanRevisionPracticeResponsesHandler interface for that can handle valid get plan revision practice responses params

type GetPlanRevisionPracticeResponsesHandlerFunc

type GetPlanRevisionPracticeResponsesHandlerFunc func(GetPlanRevisionPracticeResponsesParams, *models.User) middleware.Responder

GetPlanRevisionPracticeResponsesHandlerFunc turns a function with the right signature into a get plan revision practice responses handler

func (GetPlanRevisionPracticeResponsesHandlerFunc) Handle

Handle executing the request and returning a response

type GetPlanRevisionPracticeResponsesOK

type GetPlanRevisionPracticeResponsesOK struct {

	/*
	  In: Body
	*/
	Payload *lib.PlanResponses `json:"body,omitempty"`
}

GetPlanRevisionPracticeResponsesOK OK

swagger:response getPlanRevisionPracticeResponsesOK

func NewGetPlanRevisionPracticeResponsesOK

func NewGetPlanRevisionPracticeResponsesOK() *GetPlanRevisionPracticeResponsesOK

NewGetPlanRevisionPracticeResponsesOK creates GetPlanRevisionPracticeResponsesOK with default headers values

func (*GetPlanRevisionPracticeResponsesOK) SetPayload

func (o *GetPlanRevisionPracticeResponsesOK) SetPayload(payload *lib.PlanResponses)

SetPayload sets the payload to the get plan revision practice responses o k response

func (*GetPlanRevisionPracticeResponsesOK) WithPayload

WithPayload adds the payload to the get plan revision practice responses o k response

func (*GetPlanRevisionPracticeResponsesOK) WriteResponse

WriteResponse to the client

type GetPlanRevisionPracticeResponsesParams

type GetPlanRevisionPracticeResponsesParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
	/*
	  Required: true
	  In: path
	*/
	RevID string
}

GetPlanRevisionPracticeResponsesParams contains all the bound params for the get plan revision practice responses operation typically these are obtained from a http.Request

swagger:parameters getPlanRevisionPracticeResponses

func NewGetPlanRevisionPracticeResponsesParams

func NewGetPlanRevisionPracticeResponsesParams() GetPlanRevisionPracticeResponsesParams

NewGetPlanRevisionPracticeResponsesParams creates a new GetPlanRevisionPracticeResponsesParams object

There are no default values defined in the spec.

func (*GetPlanRevisionPracticeResponsesParams) BindRequest

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 NewGetPlanRevisionPracticeResponsesParams() beforehand.

type GetPlanRevisionPracticeResponsesURL

type GetPlanRevisionPracticeResponsesURL struct {
	ID    string
	RevID string
	// contains filtered or unexported fields
}

GetPlanRevisionPracticeResponsesURL generates an URL for the get plan revision practice responses operation

func (*GetPlanRevisionPracticeResponsesURL) Build

Build a url path and query string

func (*GetPlanRevisionPracticeResponsesURL) BuildFull

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

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

func (*GetPlanRevisionPracticeResponsesURL) Must

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

func (*GetPlanRevisionPracticeResponsesURL) SetBasePath

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

String returns the string representation of the path with query string

func (*GetPlanRevisionPracticeResponsesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPlanRevisionPracticeResponsesURL) WithBasePath

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 GetPlanRevisionURL

type GetPlanRevisionURL struct {
	ID    string
	RevID string
	// contains filtered or unexported fields
}

GetPlanRevisionURL generates an URL for the get plan revision operation

func (*GetPlanRevisionURL) Build

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

Build a url path and query string

func (*GetPlanRevisionURL) BuildFull

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

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

func (*GetPlanRevisionURL) Must

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

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

func (*GetPlanRevisionURL) SetBasePath

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

func (o *GetPlanRevisionURL) String() string

String returns the string representation of the path with query string

func (*GetPlanRevisionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPlanRevisionURL) WithBasePath

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

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 GetPlanURL

type GetPlanURL struct {
	ID string
	// contains filtered or unexported fields
}

GetPlanURL generates an URL for the get plan operation

func (*GetPlanURL) Build

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

Build a url path and query string

func (*GetPlanURL) BuildFull

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

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

func (*GetPlanURL) Must

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

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

func (*GetPlanURL) SetBasePath

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

func (o *GetPlanURL) String() string

String returns the string representation of the path with query string

func (*GetPlanURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPlanURL) WithBasePath

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

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 GetPlanVersions

type GetPlanVersions struct {
	Context *middleware.Context
	Handler GetPlanVersionsHandler
}
GetPlanVersions swagger:route GET /plan/{id}/versions getPlanVersions

GetPlanVersions get plan versions API

func NewGetPlanVersions

func NewGetPlanVersions(ctx *middleware.Context, handler GetPlanVersionsHandler) *GetPlanVersions

NewGetPlanVersions creates a new http.Handler for the get plan versions operation

func (*GetPlanVersions) ServeHTTP

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

type GetPlanVersionsDefault

type GetPlanVersionsDefault struct {

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

GetPlanVersionsDefault error

swagger:response getPlanVersionsDefault

func NewGetPlanVersionsDefault

func NewGetPlanVersionsDefault(code int) *GetPlanVersionsDefault

NewGetPlanVersionsDefault creates GetPlanVersionsDefault with default headers values

func (*GetPlanVersionsDefault) SetPayload

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

SetPayload sets the payload to the get plan versions default response

func (*GetPlanVersionsDefault) SetStatusCode

func (o *GetPlanVersionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get plan versions default response

func (*GetPlanVersionsDefault) WithPayload

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

WithPayload adds the payload to the get plan versions default response

func (*GetPlanVersionsDefault) WithStatusCode

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

WithStatusCode adds the status to the get plan versions default response

func (*GetPlanVersionsDefault) WriteResponse

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

WriteResponse to the client

type GetPlanVersionsHandler

type GetPlanVersionsHandler interface {
	Handle(GetPlanVersionsParams, *models.User) middleware.Responder
}

GetPlanVersionsHandler interface for that can handle valid get plan versions params

type GetPlanVersionsHandlerFunc

type GetPlanVersionsHandlerFunc func(GetPlanVersionsParams, *models.User) middleware.Responder

GetPlanVersionsHandlerFunc turns a function with the right signature into a get plan versions handler

func (GetPlanVersionsHandlerFunc) Handle

Handle executing the request and returning a response

type GetPlanVersionsOK

type GetPlanVersionsOK struct {

	/*all of the versions for this plan, in order from oldest to latest
	  In: Body
	*/
	Payload []*models.RevisionVersion `json:"body,omitempty"`
}

GetPlanVersionsOK OK

swagger:response getPlanVersionsOK

func NewGetPlanVersionsOK

func NewGetPlanVersionsOK() *GetPlanVersionsOK

NewGetPlanVersionsOK creates GetPlanVersionsOK with default headers values

func (*GetPlanVersionsOK) SetPayload

func (o *GetPlanVersionsOK) SetPayload(payload []*models.RevisionVersion)

SetPayload sets the payload to the get plan versions o k response

func (*GetPlanVersionsOK) WithPayload

func (o *GetPlanVersionsOK) WithPayload(payload []*models.RevisionVersion) *GetPlanVersionsOK

WithPayload adds the payload to the get plan versions o k response

func (*GetPlanVersionsOK) WriteResponse

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

WriteResponse to the client

type GetPlanVersionsParams

type GetPlanVersionsParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

GetPlanVersionsParams contains all the bound params for the get plan versions operation typically these are obtained from a http.Request

swagger:parameters getPlanVersions

func NewGetPlanVersionsParams

func NewGetPlanVersionsParams() GetPlanVersionsParams

NewGetPlanVersionsParams creates a new GetPlanVersionsParams object

There are no default values defined in the spec.

func (*GetPlanVersionsParams) BindRequest

func (o *GetPlanVersionsParams) 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 NewGetPlanVersionsParams() beforehand.

type GetPlanVersionsURL

type GetPlanVersionsURL struct {
	ID string
	// contains filtered or unexported fields
}

GetPlanVersionsURL generates an URL for the get plan versions operation

func (*GetPlanVersionsURL) Build

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

Build a url path and query string

func (*GetPlanVersionsURL) BuildFull

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

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

func (*GetPlanVersionsURL) Must

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

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

func (*GetPlanVersionsURL) SetBasePath

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

func (o *GetPlanVersionsURL) String() string

String returns the string representation of the path with query string

func (*GetPlanVersionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPlanVersionsURL) WithBasePath

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

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 GetPractices

type GetPractices struct {
	Context *middleware.Context
	Handler GetPracticesHandler
}
GetPractices swagger:route GET /practices/{version} getPractices

GetPractices get practices API

func NewGetPractices

func NewGetPractices(ctx *middleware.Context, handler GetPracticesHandler) *GetPractices

NewGetPractices creates a new http.Handler for the get practices operation

func (*GetPractices) ServeHTTP

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

type GetPracticesDefault

type GetPracticesDefault struct {

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

GetPracticesDefault error

swagger:response getPracticesDefault

func NewGetPracticesDefault

func NewGetPracticesDefault(code int) *GetPracticesDefault

NewGetPracticesDefault creates GetPracticesDefault with default headers values

func (*GetPracticesDefault) SetPayload

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

SetPayload sets the payload to the get practices default response

func (*GetPracticesDefault) SetStatusCode

func (o *GetPracticesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get practices default response

func (*GetPracticesDefault) WithPayload

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

WithPayload adds the payload to the get practices default response

func (*GetPracticesDefault) WithStatusCode

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

WithStatusCode adds the status to the get practices default response

func (*GetPracticesDefault) WriteResponse

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

WriteResponse to the client

type GetPracticesHandler

type GetPracticesHandler interface {
	Handle(GetPracticesParams, *models.User) middleware.Responder
}

GetPracticesHandler interface for that can handle valid get practices params

type GetPracticesHandlerFunc

type GetPracticesHandlerFunc func(GetPracticesParams, *models.User) middleware.Responder

GetPracticesHandlerFunc turns a function with the right signature into a get practices handler

func (GetPracticesHandlerFunc) Handle

Handle executing the request and returning a response

type GetPracticesOK

type GetPracticesOK struct {

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

GetPracticesOK OK

swagger:response getPracticesOK

func NewGetPracticesOK

func NewGetPracticesOK() *GetPracticesOK

NewGetPracticesOK creates GetPracticesOK with default headers values

func (*GetPracticesOK) SetPayload

func (o *GetPracticesOK) SetPayload(payload *models.GotPractices)

SetPayload sets the payload to the get practices o k response

func (*GetPracticesOK) WithPayload

func (o *GetPracticesOK) WithPayload(payload *models.GotPractices) *GetPracticesOK

WithPayload adds the payload to the get practices o k response

func (*GetPracticesOK) WriteResponse

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

WriteResponse to the client

type GetPracticesParams

type GetPracticesParams struct {

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

	/*The version, or the special value "latest".
	  Required: true
	  In: path
	*/
	Version string
}

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

swagger:parameters getPractices

func NewGetPracticesParams

func NewGetPracticesParams() GetPracticesParams

NewGetPracticesParams creates a new GetPracticesParams object

There are no default values defined in the spec.

func (*GetPracticesParams) BindRequest

func (o *GetPracticesParams) 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 NewGetPracticesParams() beforehand.

type GetPracticesURL

type GetPracticesURL struct {
	Version string
	// contains filtered or unexported fields
}

GetPracticesURL generates an URL for the get practices operation

func (*GetPracticesURL) Build

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

Build a url path and query string

func (*GetPracticesURL) BuildFull

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

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

func (*GetPracticesURL) Must

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

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

func (*GetPracticesURL) SetBasePath

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

func (o *GetPracticesURL) String() string

String returns the string representation of the path with query string

func (*GetPracticesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPracticesURL) WithBasePath

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

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 GetProject

type GetProject struct {
	Context *middleware.Context
	Handler GetProjectHandler
}
GetProject swagger:route GET /project/{id} getProject

GetProject get project API

func NewGetProject

func NewGetProject(ctx *middleware.Context, handler GetProjectHandler) *GetProject

NewGetProject creates a new http.Handler for the get project operation

func (*GetProject) ServeHTTP

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

type GetProjectDefault

type GetProjectDefault struct {

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

GetProjectDefault error

swagger:response getProjectDefault

func NewGetProjectDefault

func NewGetProjectDefault(code int) *GetProjectDefault

NewGetProjectDefault creates GetProjectDefault with default headers values

func (*GetProjectDefault) SetPayload

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

SetPayload sets the payload to the get project default response

func (*GetProjectDefault) SetStatusCode

func (o *GetProjectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get project default response

func (*GetProjectDefault) WithPayload

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

WithPayload adds the payload to the get project default response

func (*GetProjectDefault) WithStatusCode

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

WithStatusCode adds the status to the get project default response

func (*GetProjectDefault) WriteResponse

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

WriteResponse to the client

type GetProjectHandler

type GetProjectHandler interface {
	Handle(GetProjectParams, *models.User) middleware.Responder
}

GetProjectHandler interface for that can handle valid get project params

type GetProjectHandlerFunc

type GetProjectHandlerFunc func(GetProjectParams, *models.User) middleware.Responder

GetProjectHandlerFunc turns a function with the right signature into a get project handler

func (GetProjectHandlerFunc) Handle

func (fn GetProjectHandlerFunc) Handle(params GetProjectParams, principal *models.User) middleware.Responder

Handle executing the request and returning a response

type GetProjectOK

type GetProjectOK struct {

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

GetProjectOK OK

swagger:response getProjectOK

func NewGetProjectOK

func NewGetProjectOK() *GetProjectOK

NewGetProjectOK creates GetProjectOK with default headers values

func (*GetProjectOK) SetPayload

func (o *GetProjectOK) SetPayload(payload *models.Project)

SetPayload sets the payload to the get project o k response

func (*GetProjectOK) WithPayload

func (o *GetProjectOK) WithPayload(payload *models.Project) *GetProjectOK

WithPayload adds the payload to the get project o k response

func (*GetProjectOK) WriteResponse

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

WriteResponse to the client

type GetProjectParams

type GetProjectParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters getProject

func NewGetProjectParams

func NewGetProjectParams() GetProjectParams

NewGetProjectParams creates a new GetProjectParams object

There are no default values defined in the spec.

func (*GetProjectParams) BindRequest

func (o *GetProjectParams) 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 NewGetProjectParams() beforehand.

type GetProjectURL

type GetProjectURL struct {
	ID string
	// contains filtered or unexported fields
}

GetProjectURL generates an URL for the get project operation

func (*GetProjectURL) Build

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

Build a url path and query string

func (*GetProjectURL) BuildFull

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

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

func (*GetProjectURL) Must

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

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

func (*GetProjectURL) SetBasePath

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

func (o *GetProjectURL) String() string

String returns the string representation of the path with query string

func (*GetProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetProjectURL) WithBasePath

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

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 ListPracticesVersions

type ListPracticesVersions struct {
	Context *middleware.Context
	Handler ListPracticesVersionsHandler
}
ListPracticesVersions swagger:route GET /practices listPracticesVersions

ListPracticesVersions list practices versions API

func NewListPracticesVersions

func NewListPracticesVersions(ctx *middleware.Context, handler ListPracticesVersionsHandler) *ListPracticesVersions

NewListPracticesVersions creates a new http.Handler for the list practices versions operation

func (*ListPracticesVersions) ServeHTTP

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

type ListPracticesVersionsDefault

type ListPracticesVersionsDefault struct {

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

ListPracticesVersionsDefault error

swagger:response listPracticesVersionsDefault

func NewListPracticesVersionsDefault

func NewListPracticesVersionsDefault(code int) *ListPracticesVersionsDefault

NewListPracticesVersionsDefault creates ListPracticesVersionsDefault with default headers values

func (*ListPracticesVersionsDefault) SetPayload

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

SetPayload sets the payload to the list practices versions default response

func (*ListPracticesVersionsDefault) SetStatusCode

func (o *ListPracticesVersionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list practices versions default response

func (*ListPracticesVersionsDefault) WithPayload

WithPayload adds the payload to the list practices versions default response

func (*ListPracticesVersionsDefault) WithStatusCode

WithStatusCode adds the status to the list practices versions default response

func (*ListPracticesVersionsDefault) WriteResponse

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

WriteResponse to the client

type ListPracticesVersionsHandler

type ListPracticesVersionsHandler interface {
	Handle(ListPracticesVersionsParams, *models.User) middleware.Responder
}

ListPracticesVersionsHandler interface for that can handle valid list practices versions params

type ListPracticesVersionsHandlerFunc

type ListPracticesVersionsHandlerFunc func(ListPracticesVersionsParams, *models.User) middleware.Responder

ListPracticesVersionsHandlerFunc turns a function with the right signature into a list practices versions handler

func (ListPracticesVersionsHandlerFunc) Handle

Handle executing the request and returning a response

type ListPracticesVersionsOK

type ListPracticesVersionsOK struct {

	/*All of the versions, from oldest to newest
	  In: Body
	*/
	Payload []string `json:"body,omitempty"`
}

ListPracticesVersionsOK OK

swagger:response listPracticesVersionsOK

func NewListPracticesVersionsOK

func NewListPracticesVersionsOK() *ListPracticesVersionsOK

NewListPracticesVersionsOK creates ListPracticesVersionsOK with default headers values

func (*ListPracticesVersionsOK) SetPayload

func (o *ListPracticesVersionsOK) SetPayload(payload []string)

SetPayload sets the payload to the list practices versions o k response

func (*ListPracticesVersionsOK) WithPayload

func (o *ListPracticesVersionsOK) WithPayload(payload []string) *ListPracticesVersionsOK

WithPayload adds the payload to the list practices versions o k response

func (*ListPracticesVersionsOK) WriteResponse

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

WriteResponse to the client

type ListPracticesVersionsParams

type ListPracticesVersionsParams struct {

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

ListPracticesVersionsParams contains all the bound params for the list practices versions operation typically these are obtained from a http.Request

swagger:parameters listPracticesVersions

func NewListPracticesVersionsParams

func NewListPracticesVersionsParams() ListPracticesVersionsParams

NewListPracticesVersionsParams creates a new ListPracticesVersionsParams object

There are no default values defined in the spec.

func (*ListPracticesVersionsParams) BindRequest

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 NewListPracticesVersionsParams() beforehand.

type ListPracticesVersionsURL

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

ListPracticesVersionsURL generates an URL for the list practices versions operation

func (*ListPracticesVersionsURL) Build

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

Build a url path and query string

func (*ListPracticesVersionsURL) BuildFull

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

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

func (*ListPracticesVersionsURL) Must

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

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

func (*ListPracticesVersionsURL) SetBasePath

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

func (o *ListPracticesVersionsURL) String() string

String returns the string representation of the path with query string

func (*ListPracticesVersionsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListPracticesVersionsURL) WithBasePath

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 ListProjects

type ListProjects struct {
	Context *middleware.Context
	Handler ListProjectsHandler
}
ListProjects swagger:route GET /project listProjects

ListProjects list projects API

func NewListProjects

func NewListProjects(ctx *middleware.Context, handler ListProjectsHandler) *ListProjects

NewListProjects creates a new http.Handler for the list projects operation

func (*ListProjects) ServeHTTP

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

type ListProjectsDefault

type ListProjectsDefault struct {

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

ListProjectsDefault error

swagger:response listProjectsDefault

func NewListProjectsDefault

func NewListProjectsDefault(code int) *ListProjectsDefault

NewListProjectsDefault creates ListProjectsDefault with default headers values

func (*ListProjectsDefault) SetPayload

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

SetPayload sets the payload to the list projects default response

func (*ListProjectsDefault) SetStatusCode

func (o *ListProjectsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list projects default response

func (*ListProjectsDefault) WithPayload

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

WithPayload adds the payload to the list projects default response

func (*ListProjectsDefault) WithStatusCode

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

WithStatusCode adds the status to the list projects default response

func (*ListProjectsDefault) WriteResponse

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

WriteResponse to the client

type ListProjectsHandler

type ListProjectsHandler interface {
	Handle(ListProjectsParams, *models.User) middleware.Responder
}

ListProjectsHandler interface for that can handle valid list projects params

type ListProjectsHandlerFunc

type ListProjectsHandlerFunc func(ListProjectsParams, *models.User) middleware.Responder

ListProjectsHandlerFunc turns a function with the right signature into a list projects handler

func (ListProjectsHandlerFunc) Handle

Handle executing the request and returning a response

type ListProjectsOK

type ListProjectsOK struct {

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

ListProjectsOK OK

swagger:response listProjectsOK

func NewListProjectsOK

func NewListProjectsOK() *ListProjectsOK

NewListProjectsOK creates ListProjectsOK with default headers values

func (*ListProjectsOK) SetPayload

func (o *ListProjectsOK) SetPayload(payload []*models.Project)

SetPayload sets the payload to the list projects o k response

func (*ListProjectsOK) WithPayload

func (o *ListProjectsOK) WithPayload(payload []*models.Project) *ListProjectsOK

WithPayload adds the payload to the list projects o k response

func (*ListProjectsOK) WriteResponse

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

WriteResponse to the client

type ListProjectsParams

type ListProjectsParams struct {

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

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

swagger:parameters listProjects

func NewListProjectsParams

func NewListProjectsParams() ListProjectsParams

NewListProjectsParams creates a new ListProjectsParams object

There are no default values defined in the spec.

func (*ListProjectsParams) BindRequest

func (o *ListProjectsParams) 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 NewListProjectsParams() beforehand.

type ListProjectsURL

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

ListProjectsURL generates an URL for the list projects operation

func (*ListProjectsURL) Build

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

Build a url path and query string

func (*ListProjectsURL) BuildFull

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

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

func (*ListProjectsURL) Must

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

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

func (*ListProjectsURL) SetBasePath

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

func (o *ListProjectsURL) String() string

String returns the string representation of the path with query string

func (*ListProjectsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListProjectsURL) WithBasePath

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

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 LoggedIn

type LoggedIn struct {
	Context *middleware.Context
	Handler LoggedInHandler
}
LoggedIn swagger:route POST /auth loggedIn

Used to trigger one-time events like requesting access. Clients should hit this once after obtaining an ID token, and can use or ignore the response.

func NewLoggedIn

func NewLoggedIn(ctx *middleware.Context, handler LoggedInHandler) *LoggedIn

NewLoggedIn creates a new http.Handler for the logged in operation

func (*LoggedIn) ServeHTTP

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

type LoggedInDefault

type LoggedInDefault struct {

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

LoggedInDefault No access, access requested, invalid ID token, or internal error

swagger:response loggedInDefault

func NewLoggedInDefault

func NewLoggedInDefault(code int) *LoggedInDefault

NewLoggedInDefault creates LoggedInDefault with default headers values

func (*LoggedInDefault) SetPayload

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

SetPayload sets the payload to the logged in default response

func (*LoggedInDefault) SetStatusCode

func (o *LoggedInDefault) SetStatusCode(code int)

SetStatusCode sets the status to the logged in default response

func (*LoggedInDefault) WithPayload

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

WithPayload adds the payload to the logged in default response

func (*LoggedInDefault) WithStatusCode

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

WithStatusCode adds the status to the logged in default response

func (*LoggedInDefault) WriteResponse

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

WriteResponse to the client

type LoggedInHandler

type LoggedInHandler interface {
	Handle(LoggedInParams, *models.User) middleware.Responder
}

LoggedInHandler interface for that can handle valid logged in params

type LoggedInHandlerFunc

type LoggedInHandlerFunc func(LoggedInParams, *models.User) middleware.Responder

LoggedInHandlerFunc turns a function with the right signature into a logged in handler

func (LoggedInHandlerFunc) Handle

func (fn LoggedInHandlerFunc) Handle(params LoggedInParams, principal *models.User) middleware.Responder

Handle executing the request and returning a response

type LoggedInOK

type LoggedInOK struct {
}

LoggedInOK OK

swagger:response loggedInOK

func NewLoggedInOK

func NewLoggedInOK() *LoggedInOK

NewLoggedInOK creates LoggedInOK with default headers values

func (*LoggedInOK) WriteResponse

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

WriteResponse to the client

type LoggedInParams

type LoggedInParams struct {

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

LoggedInParams contains all the bound params for the logged in operation typically these are obtained from a http.Request

swagger:parameters loggedIn

func NewLoggedInParams

func NewLoggedInParams() LoggedInParams

NewLoggedInParams creates a new LoggedInParams object

There are no default values defined in the spec.

func (*LoggedInParams) BindRequest

func (o *LoggedInParams) 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 NewLoggedInParams() beforehand.

type LoggedInURL

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

LoggedInURL generates an URL for the logged in operation

func (*LoggedInURL) Build

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

Build a url path and query string

func (*LoggedInURL) BuildFull

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

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

func (*LoggedInURL) Must

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

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

func (*LoggedInURL) SetBasePath

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

func (o *LoggedInURL) String() string

String returns the string representation of the path with query string

func (*LoggedInURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LoggedInURL) WithBasePath

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

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 UpdateProject

type UpdateProject struct {
	Context *middleware.Context
	Handler UpdateProjectHandler
}
UpdateProject swagger:route PUT /project/{id} updateProject

UpdateProject update project API

func NewUpdateProject

func NewUpdateProject(ctx *middleware.Context, handler UpdateProjectHandler) *UpdateProject

NewUpdateProject creates a new http.Handler for the update project operation

func (*UpdateProject) ServeHTTP

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

type UpdateProjectDefault

type UpdateProjectDefault struct {

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

UpdateProjectDefault error

swagger:response updateProjectDefault

func NewUpdateProjectDefault

func NewUpdateProjectDefault(code int) *UpdateProjectDefault

NewUpdateProjectDefault creates UpdateProjectDefault with default headers values

func (*UpdateProjectDefault) SetPayload

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

SetPayload sets the payload to the update project default response

func (*UpdateProjectDefault) SetStatusCode

func (o *UpdateProjectDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update project default response

func (*UpdateProjectDefault) WithPayload

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

WithPayload adds the payload to the update project default response

func (*UpdateProjectDefault) WithStatusCode

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

WithStatusCode adds the status to the update project default response

func (*UpdateProjectDefault) WriteResponse

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

WriteResponse to the client

type UpdateProjectHandler

type UpdateProjectHandler interface {
	Handle(UpdateProjectParams, *models.User) middleware.Responder
}

UpdateProjectHandler interface for that can handle valid update project params

type UpdateProjectHandlerFunc

type UpdateProjectHandlerFunc func(UpdateProjectParams, *models.User) middleware.Responder

UpdateProjectHandlerFunc turns a function with the right signature into a update project handler

func (UpdateProjectHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateProjectOK

type UpdateProjectOK struct {
}

UpdateProjectOK OK

swagger:response updateProjectOK

func NewUpdateProjectOK

func NewUpdateProjectOK() *UpdateProjectOK

NewUpdateProjectOK creates UpdateProjectOK with default headers values

func (*UpdateProjectOK) WriteResponse

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

WriteResponse to the client

type UpdateProjectParams

type UpdateProjectParams struct {

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

	/*
	  In: body
	*/
	Body *models.ProjectDetails
	/*
	  Required: true
	  In: path
	*/
	ID string
}

UpdateProjectParams contains all the bound params for the update project operation typically these are obtained from a http.Request

swagger:parameters updateProject

func NewUpdateProjectParams

func NewUpdateProjectParams() UpdateProjectParams

NewUpdateProjectParams creates a new UpdateProjectParams object

There are no default values defined in the spec.

func (*UpdateProjectParams) BindRequest

func (o *UpdateProjectParams) 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 NewUpdateProjectParams() beforehand.

type UpdateProjectURL

type UpdateProjectURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdateProjectURL generates an URL for the update project operation

func (*UpdateProjectURL) Build

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

Build a url path and query string

func (*UpdateProjectURL) BuildFull

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

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

func (*UpdateProjectURL) Must

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

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

func (*UpdateProjectURL) SetBasePath

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

func (o *UpdateProjectURL) String() string

String returns the string representation of the path with query string

func (*UpdateProjectURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateProjectURL) WithBasePath

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

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

Source Files

Jump to

Keyboard shortcuts

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