Documentation ¶
Index ¶
- Constants
- type Disable
- type DisableHandler
- type DisableHandlerFunc
- type DisableInternalServerError
- type DisableOK
- type DisableParams
- type DisableURL
- func (o *DisableURL) Build() (*url.URL, error)
- func (o *DisableURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DisableURL) Must(u *url.URL, err error) *url.URL
- func (o *DisableURL) SetBasePath(bp string)
- func (o *DisableURL) String() string
- func (o *DisableURL) StringFull(scheme, host string) string
- func (o *DisableURL) WithBasePath(bp string) *DisableURL
- type DisableUnauthorized
- type Enable
- type EnableCreated
- type EnableHandler
- type EnableHandlerFunc
- type EnableInternalServerError
- type EnableNotFound
- type EnableParams
- type EnableURL
- func (o *EnableURL) Build() (*url.URL, error)
- func (o *EnableURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EnableURL) Must(u *url.URL, err error) *url.URL
- func (o *EnableURL) SetBasePath(bp string)
- func (o *EnableURL) String() string
- func (o *EnableURL) StringFull(scheme, host string) string
- func (o *EnableURL) WithBasePath(bp string) *EnableURL
- type EnableUnauthorized
Constants ¶
const DisableInternalServerErrorCode int = 500
DisableInternalServerErrorCode is the HTTP code returned for type DisableInternalServerError
const DisableOKCode int = 200
DisableOKCode is the HTTP code returned for type DisableOK
DisableUnauthorizedCode is the HTTP code returned for type DisableUnauthorized
const EnableCreatedCode int = 201
EnableCreatedCode is the HTTP code returned for type EnableCreated
const EnableInternalServerErrorCode int = 500
EnableInternalServerErrorCode is the HTTP code returned for type EnableInternalServerError
const EnableNotFoundCode int = 404
EnableNotFoundCode is the HTTP code returned for type EnableNotFound
EnableUnauthorizedCode is the HTTP code returned for type EnableUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disable ¶
type Disable struct { Context *middleware.Context Handler DisableHandler }
Disable swagger:route POST /disable environment disable
Disable disable API
func NewDisable ¶
func NewDisable(ctx *middleware.Context, handler DisableHandler) *Disable
NewDisable creates a new http.Handler for the disable operation
type DisableHandler ¶
type DisableHandler interface {
Handle(DisableParams, *rest_model_zrok.Principal) middleware.Responder
}
DisableHandler interface for that can handle valid disable params
type DisableHandlerFunc ¶
type DisableHandlerFunc func(DisableParams, *rest_model_zrok.Principal) middleware.Responder
DisableHandlerFunc turns a function with the right signature into a disable handler
func (DisableHandlerFunc) Handle ¶
func (fn DisableHandlerFunc) Handle(params DisableParams, principal *rest_model_zrok.Principal) middleware.Responder
Handle executing the request and returning a response
type DisableInternalServerError ¶
type DisableInternalServerError struct { }
DisableInternalServerError internal server error
swagger:response disableInternalServerError
func NewDisableInternalServerError ¶
func NewDisableInternalServerError() *DisableInternalServerError
NewDisableInternalServerError creates DisableInternalServerError with default headers values
func (*DisableInternalServerError) WriteResponse ¶
func (o *DisableInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DisableOK ¶
type DisableOK struct { }
DisableOK environment disabled
swagger:response disableOK
func NewDisableOK ¶
func NewDisableOK() *DisableOK
NewDisableOK creates DisableOK with default headers values
func (*DisableOK) WriteResponse ¶
func (o *DisableOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DisableParams ¶
type DisableParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *rest_model_zrok.DisableRequest }
DisableParams contains all the bound params for the disable operation typically these are obtained from a http.Request
swagger:parameters disable
func NewDisableParams ¶
func NewDisableParams() DisableParams
NewDisableParams creates a new DisableParams object
There are no default values defined in the spec.
func (*DisableParams) BindRequest ¶
func (o *DisableParams) 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 NewDisableParams() beforehand.
type DisableURL ¶
type DisableURL struct {
// contains filtered or unexported fields
}
DisableURL generates an URL for the disable operation
func (*DisableURL) Build ¶
func (o *DisableURL) Build() (*url.URL, error)
Build a url path and query string
func (*DisableURL) BuildFull ¶
func (o *DisableURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DisableURL) SetBasePath ¶
func (o *DisableURL) 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 (*DisableURL) String ¶
func (o *DisableURL) String() string
String returns the string representation of the path with query string
func (*DisableURL) StringFull ¶
func (o *DisableURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DisableURL) WithBasePath ¶
func (o *DisableURL) WithBasePath(bp string) *DisableURL
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 DisableUnauthorized ¶
type DisableUnauthorized struct { }
DisableUnauthorized invalid environment
swagger:response disableUnauthorized
func NewDisableUnauthorized ¶
func NewDisableUnauthorized() *DisableUnauthorized
NewDisableUnauthorized creates DisableUnauthorized with default headers values
func (*DisableUnauthorized) WriteResponse ¶
func (o *DisableUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Enable ¶
type Enable struct { Context *middleware.Context Handler EnableHandler }
Enable swagger:route POST /enable environment enable
Enable enable API
func NewEnable ¶
func NewEnable(ctx *middleware.Context, handler EnableHandler) *Enable
NewEnable creates a new http.Handler for the enable operation
type EnableCreated ¶
type EnableCreated struct { /* In: Body */ Payload *rest_model_zrok.EnableResponse `json:"body,omitempty"` }
EnableCreated environment enabled
swagger:response enableCreated
func NewEnableCreated ¶
func NewEnableCreated() *EnableCreated
NewEnableCreated creates EnableCreated with default headers values
func (*EnableCreated) SetPayload ¶
func (o *EnableCreated) SetPayload(payload *rest_model_zrok.EnableResponse)
SetPayload sets the payload to the enable created response
func (*EnableCreated) WithPayload ¶
func (o *EnableCreated) WithPayload(payload *rest_model_zrok.EnableResponse) *EnableCreated
WithPayload adds the payload to the enable created response
func (*EnableCreated) WriteResponse ¶
func (o *EnableCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnableHandler ¶
type EnableHandler interface {
Handle(EnableParams, *rest_model_zrok.Principal) middleware.Responder
}
EnableHandler interface for that can handle valid enable params
type EnableHandlerFunc ¶
type EnableHandlerFunc func(EnableParams, *rest_model_zrok.Principal) middleware.Responder
EnableHandlerFunc turns a function with the right signature into a enable handler
func (EnableHandlerFunc) Handle ¶
func (fn EnableHandlerFunc) Handle(params EnableParams, principal *rest_model_zrok.Principal) middleware.Responder
Handle executing the request and returning a response
type EnableInternalServerError ¶
type EnableInternalServerError struct { }
EnableInternalServerError internal server error
swagger:response enableInternalServerError
func NewEnableInternalServerError ¶
func NewEnableInternalServerError() *EnableInternalServerError
NewEnableInternalServerError creates EnableInternalServerError with default headers values
func (*EnableInternalServerError) WriteResponse ¶
func (o *EnableInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnableNotFound ¶
type EnableNotFound struct { }
EnableNotFound account not found
swagger:response enableNotFound
func NewEnableNotFound ¶
func NewEnableNotFound() *EnableNotFound
NewEnableNotFound creates EnableNotFound with default headers values
func (*EnableNotFound) WriteResponse ¶
func (o *EnableNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EnableParams ¶
type EnableParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *rest_model_zrok.EnableRequest }
EnableParams contains all the bound params for the enable operation typically these are obtained from a http.Request
swagger:parameters enable
func NewEnableParams ¶
func NewEnableParams() EnableParams
NewEnableParams creates a new EnableParams object
There are no default values defined in the spec.
func (*EnableParams) BindRequest ¶
func (o *EnableParams) 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 NewEnableParams() beforehand.
type EnableURL ¶
type EnableURL struct {
// contains filtered or unexported fields
}
EnableURL generates an URL for the enable operation
func (*EnableURL) SetBasePath ¶
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 (*EnableURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*EnableURL) 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 EnableUnauthorized ¶
type EnableUnauthorized struct { }
EnableUnauthorized unauthorized
swagger:response enableUnauthorized
func NewEnableUnauthorized ¶
func NewEnableUnauthorized() *EnableUnauthorized
NewEnableUnauthorized creates EnableUnauthorized with default headers values
func (*EnableUnauthorized) WriteResponse ¶
func (o *EnableUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client