environment

package
v0.4.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DisableInternalServerErrorCode int = 500

DisableInternalServerErrorCode is the HTTP code returned for type DisableInternalServerError

View Source
const DisableOKCode int = 200

DisableOKCode is the HTTP code returned for type DisableOK

View Source
const DisableUnauthorizedCode int = 401

DisableUnauthorizedCode is the HTTP code returned for type DisableUnauthorized

View Source
const EnableCreatedCode int = 201

EnableCreatedCode is the HTTP code returned for type EnableCreated

View Source
const EnableInternalServerErrorCode int = 500

EnableInternalServerErrorCode is the HTTP code returned for type EnableInternalServerError

View Source
const EnableNotFoundCode int = 404

EnableNotFoundCode is the HTTP code returned for type EnableNotFound

View Source
const EnableUnauthorizedCode int = 401

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

func (*Disable) ServeHTTP

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

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

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) Must

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

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

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

func (*Enable) ServeHTTP

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

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

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) Build

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

Build a url path and query string

func (*EnableURL) BuildFull

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

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

func (*EnableURL) Must

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

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

func (*EnableURL) SetBasePath

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

func (o *EnableURL) String() string

String returns the string representation of the path with query string

func (*EnableURL) StringFull

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

StringFull returns the string representation of a complete url

func (*EnableURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

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