Documentation ¶
Index ¶
- Constants
- type CreateConfig
- type CreateConfigBadRequest
- type CreateConfigCreated
- type CreateConfigHandler
- type CreateConfigHandlerFunc
- type CreateConfigInternalServerError
- type CreateConfigParams
- type CreateConfigServiceUnavailable
- func (o *CreateConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
- func (o *CreateConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CreateConfigServiceUnavailable
- func (o *CreateConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateConfigURL
- func (o *CreateConfigURL) Build() (*url.URL, error)
- func (o *CreateConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateConfigURL) SetBasePath(bp string)
- func (o *CreateConfigURL) String() string
- func (o *CreateConfigURL) StringFull(scheme, host string) string
- func (o *CreateConfigURL) WithBasePath(bp string) *CreateConfigURL
- type CreateConfigUnauthorized
- type DeleteConfig
- type DeleteConfigBadRequest
- type DeleteConfigBody
- type DeleteConfigHandler
- type DeleteConfigHandlerFunc
- type DeleteConfigInternalServerError
- type DeleteConfigNoContent
- type DeleteConfigParams
- type DeleteConfigServiceUnavailable
- func (o *DeleteConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
- func (o *DeleteConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *DeleteConfigServiceUnavailable
- func (o *DeleteConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteConfigURL
- func (o *DeleteConfigURL) Build() (*url.URL, error)
- func (o *DeleteConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteConfigURL) SetBasePath(bp string)
- func (o *DeleteConfigURL) String() string
- func (o *DeleteConfigURL) StringFull(scheme, host string) string
- func (o *DeleteConfigURL) WithBasePath(bp string) *DeleteConfigURL
- type DeleteConfigUnauthorized
- type VGSocketRealmAPI
- func (o *VGSocketRealmAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *VGSocketRealmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *VGSocketRealmAPI) Authorizer() runtime.Authorizer
- func (o *VGSocketRealmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *VGSocketRealmAPI) Context() *middleware.Context
- func (o *VGSocketRealmAPI) DefaultConsumes() string
- func (o *VGSocketRealmAPI) DefaultProduces() string
- func (o *VGSocketRealmAPI) Formats() strfmt.Registry
- func (o *VGSocketRealmAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *VGSocketRealmAPI) Init()
- func (o *VGSocketRealmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *VGSocketRealmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *VGSocketRealmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *VGSocketRealmAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *VGSocketRealmAPI) Serve(builder middleware.Builder) http.Handler
- func (o *VGSocketRealmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *VGSocketRealmAPI) SetDefaultConsumes(mediaType string)
- func (o *VGSocketRealmAPI) SetDefaultProduces(mediaType string)
- func (o *VGSocketRealmAPI) SetSpec(spec *loads.Document)
- func (o *VGSocketRealmAPI) UseRedoc()
- func (o *VGSocketRealmAPI) UseSwaggerUI()
- func (o *VGSocketRealmAPI) Validate() error
Constants ¶
const CreateConfigBadRequestCode int = 400
CreateConfigBadRequestCode is the HTTP code returned for type CreateConfigBadRequest
const CreateConfigCreatedCode int = 201
CreateConfigCreatedCode is the HTTP code returned for type CreateConfigCreated
const CreateConfigInternalServerErrorCode int = 500
CreateConfigInternalServerErrorCode is the HTTP code returned for type CreateConfigInternalServerError
CreateConfigServiceUnavailableCode is the HTTP code returned for type CreateConfigServiceUnavailable
CreateConfigUnauthorizedCode is the HTTP code returned for type CreateConfigUnauthorized
const DeleteConfigBadRequestCode int = 400
DeleteConfigBadRequestCode is the HTTP code returned for type DeleteConfigBadRequest
const DeleteConfigInternalServerErrorCode int = 500
DeleteConfigInternalServerErrorCode is the HTTP code returned for type DeleteConfigInternalServerError
const DeleteConfigNoContentCode int = 204
DeleteConfigNoContentCode is the HTTP code returned for type DeleteConfigNoContent
DeleteConfigServiceUnavailableCode is the HTTP code returned for type DeleteConfigServiceUnavailable
DeleteConfigUnauthorizedCode is the HTTP code returned for type DeleteConfigUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateConfig ¶ added in v1.9.2
type CreateConfig struct { Context *middleware.Context Handler CreateConfigHandler }
CreateConfig swagger:route POST /config createConfig
Create VPN config
func NewCreateConfig ¶ added in v1.9.2
func NewCreateConfig(ctx *middleware.Context, handler CreateConfigHandler) *CreateConfig
NewCreateConfig creates a new http.Handler for the create config operation
func (*CreateConfig) ServeHTTP ¶ added in v1.9.2
func (o *CreateConfig) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateConfigBadRequest ¶ added in v1.9.2
CreateConfigBadRequest Bad Request
swagger:response createConfigBadRequest
func NewCreateConfigBadRequest ¶ added in v1.9.2
func NewCreateConfigBadRequest() *CreateConfigBadRequest
NewCreateConfigBadRequest creates CreateConfigBadRequest with default headers values
func (*CreateConfigBadRequest) SetPayload ¶ added in v1.9.2
func (o *CreateConfigBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create config bad request response
func (*CreateConfigBadRequest) WithPayload ¶ added in v1.9.2
func (o *CreateConfigBadRequest) WithPayload(payload *models.Error) *CreateConfigBadRequest
WithPayload adds the payload to the create config bad request response
func (*CreateConfigBadRequest) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigCreated ¶ added in v1.9.2
type CreateConfigCreated struct { /* In: Body */ Payload *models.VPNConfig `json:"body,omitempty"` }
CreateConfigCreated Created
swagger:response createConfigCreated
func NewCreateConfigCreated ¶ added in v1.9.2
func NewCreateConfigCreated() *CreateConfigCreated
NewCreateConfigCreated creates CreateConfigCreated with default headers values
func (*CreateConfigCreated) SetPayload ¶ added in v1.9.2
func (o *CreateConfigCreated) SetPayload(payload *models.VPNConfig)
SetPayload sets the payload to the create config created response
func (*CreateConfigCreated) WithPayload ¶ added in v1.9.2
func (o *CreateConfigCreated) WithPayload(payload *models.VPNConfig) *CreateConfigCreated
WithPayload adds the payload to the create config created response
func (*CreateConfigCreated) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigHandler ¶ added in v1.9.2
type CreateConfigHandler interface {
Handle(CreateConfigParams, *models.Principal) middleware.Responder
}
CreateConfigHandler interface for that can handle valid create config params
type CreateConfigHandlerFunc ¶ added in v1.9.2
type CreateConfigHandlerFunc func(CreateConfigParams, *models.Principal) middleware.Responder
CreateConfigHandlerFunc turns a function with the right signature into a create config handler
func (CreateConfigHandlerFunc) Handle ¶ added in v1.9.2
func (fn CreateConfigHandlerFunc) Handle(params CreateConfigParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateConfigInternalServerError ¶ added in v1.9.2
type CreateConfigInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateConfigInternalServerError Internal Server Error
swagger:response createConfigInternalServerError
func NewCreateConfigInternalServerError ¶ added in v1.9.2
func NewCreateConfigInternalServerError() *CreateConfigInternalServerError
NewCreateConfigInternalServerError creates CreateConfigInternalServerError with default headers values
func (*CreateConfigInternalServerError) SetPayload ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create config internal server error response
func (*CreateConfigInternalServerError) WithPayload ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) WithPayload(payload *models.Error) *CreateConfigInternalServerError
WithPayload adds the payload to the create config internal server error response
func (*CreateConfigInternalServerError) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigParams ¶ added in v1.9.2
type CreateConfigParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Config data Required: true In: body */ Body *models.CreateConfigRequest }
CreateConfigParams contains all the bound params for the create config operation typically these are obtained from a http.Request
swagger:parameters createConfig
func NewCreateConfigParams ¶ added in v1.9.2
func NewCreateConfigParams() CreateConfigParams
NewCreateConfigParams creates a new CreateConfigParams object
There are no default values defined in the spec.
func (*CreateConfigParams) BindRequest ¶ added in v1.9.2
func (o *CreateConfigParams) 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 NewCreateConfigParams() beforehand.
type CreateConfigServiceUnavailable ¶ added in v1.9.2
type CreateConfigServiceUnavailable struct { models.ServiceTemporarilyUnavailable `json:"body,omitempty"` }Payload *
CreateConfigServiceUnavailable Service Temporarily Unavailable
swagger:response createConfigServiceUnavailable
func NewCreateConfigServiceUnavailable ¶ added in v1.9.2
func NewCreateConfigServiceUnavailable() *CreateConfigServiceUnavailable
NewCreateConfigServiceUnavailable creates CreateConfigServiceUnavailable with default headers values
func (*CreateConfigServiceUnavailable) SetPayload ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
SetPayload sets the payload to the create config service unavailable response
func (*CreateConfigServiceUnavailable) WithPayload ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *CreateConfigServiceUnavailable
WithPayload adds the payload to the create config service unavailable response
func (*CreateConfigServiceUnavailable) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateConfigURL ¶ added in v1.9.2
type CreateConfigURL struct {
// contains filtered or unexported fields
}
CreateConfigURL generates an URL for the create config operation
func (*CreateConfigURL) Build ¶ added in v1.9.2
func (o *CreateConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateConfigURL) BuildFull ¶ added in v1.9.2
func (o *CreateConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateConfigURL) Must ¶ added in v1.9.2
Must is a helper function to panic when the url builder returns an error
func (*CreateConfigURL) SetBasePath ¶ added in v1.9.2
func (o *CreateConfigURL) 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 (*CreateConfigURL) String ¶ added in v1.9.2
func (o *CreateConfigURL) String() string
String returns the string representation of the path with query string
func (*CreateConfigURL) StringFull ¶ added in v1.9.2
func (o *CreateConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateConfigURL) WithBasePath ¶ added in v1.9.2
func (o *CreateConfigURL) WithBasePath(bp string) *CreateConfigURL
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 CreateConfigUnauthorized ¶ added in v1.9.2
CreateConfigUnauthorized Unauthorized
swagger:response createConfigUnauthorized
func NewCreateConfigUnauthorized ¶ added in v1.9.2
func NewCreateConfigUnauthorized() *CreateConfigUnauthorized
NewCreateConfigUnauthorized creates CreateConfigUnauthorized with default headers values
func (*CreateConfigUnauthorized) SetPayload ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the create config unauthorized response
func (*CreateConfigUnauthorized) WithPayload ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) WithPayload(payload *models.Error) *CreateConfigUnauthorized
WithPayload adds the payload to the create config unauthorized response
func (*CreateConfigUnauthorized) WriteResponse ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfig ¶ added in v1.9.2
type DeleteConfig struct { Context *middleware.Context Handler DeleteConfigHandler }
DeleteConfig swagger:route DELETE /config/{config_id} deleteConfig
Delete VPN config
func NewDeleteConfig ¶ added in v1.9.2
func NewDeleteConfig(ctx *middleware.Context, handler DeleteConfigHandler) *DeleteConfig
NewDeleteConfig creates a new http.Handler for the delete config operation
func (*DeleteConfig) ServeHTTP ¶ added in v1.9.2
func (o *DeleteConfig) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteConfigBadRequest ¶ added in v1.9.2
DeleteConfigBadRequest Bad Request
swagger:response deleteConfigBadRequest
func NewDeleteConfigBadRequest ¶ added in v1.9.2
func NewDeleteConfigBadRequest() *DeleteConfigBadRequest
NewDeleteConfigBadRequest creates DeleteConfigBadRequest with default headers values
func (*DeleteConfigBadRequest) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete config bad request response
func (*DeleteConfigBadRequest) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) WithPayload(payload *models.Error) *DeleteConfigBadRequest
WithPayload adds the payload to the delete config bad request response
func (*DeleteConfigBadRequest) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigBody ¶ added in v1.9.2
type DeleteConfigBody struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigadeID"` }
DeleteConfigBody delete config body
swagger:model DeleteConfigBody
func (*DeleteConfigBody) ContextValidate ¶ added in v1.9.2
ContextValidate validates this delete config body based on context it is used
func (*DeleteConfigBody) MarshalBinary ¶ added in v1.9.2
func (o *DeleteConfigBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteConfigBody) UnmarshalBinary ¶ added in v1.9.2
func (o *DeleteConfigBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteConfigHandler ¶ added in v1.9.2
type DeleteConfigHandler interface {
Handle(DeleteConfigParams, *models.Principal) middleware.Responder
}
DeleteConfigHandler interface for that can handle valid delete config params
type DeleteConfigHandlerFunc ¶ added in v1.9.2
type DeleteConfigHandlerFunc func(DeleteConfigParams, *models.Principal) middleware.Responder
DeleteConfigHandlerFunc turns a function with the right signature into a delete config handler
func (DeleteConfigHandlerFunc) Handle ¶ added in v1.9.2
func (fn DeleteConfigHandlerFunc) Handle(params DeleteConfigParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteConfigInternalServerError ¶ added in v1.9.2
type DeleteConfigInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteConfigInternalServerError Internal Server Error
swagger:response deleteConfigInternalServerError
func NewDeleteConfigInternalServerError ¶ added in v1.9.2
func NewDeleteConfigInternalServerError() *DeleteConfigInternalServerError
NewDeleteConfigInternalServerError creates DeleteConfigInternalServerError with default headers values
func (*DeleteConfigInternalServerError) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete config internal server error response
func (*DeleteConfigInternalServerError) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) WithPayload(payload *models.Error) *DeleteConfigInternalServerError
WithPayload adds the payload to the delete config internal server error response
func (*DeleteConfigInternalServerError) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigNoContent ¶ added in v1.9.2
type DeleteConfigNoContent struct { }
DeleteConfigNoContent No Content
swagger:response deleteConfigNoContent
func NewDeleteConfigNoContent ¶ added in v1.9.2
func NewDeleteConfigNoContent() *DeleteConfigNoContent
NewDeleteConfigNoContent creates DeleteConfigNoContent with default headers values
func (*DeleteConfigNoContent) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigParams ¶ added in v1.9.2
type DeleteConfigParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Brigade ID Required: true In: body */ Body DeleteConfigBody /*Config ID Required: true In: path */ ConfigID string }
DeleteConfigParams contains all the bound params for the delete config operation typically these are obtained from a http.Request
swagger:parameters deleteConfig
func NewDeleteConfigParams ¶ added in v1.9.2
func NewDeleteConfigParams() DeleteConfigParams
NewDeleteConfigParams creates a new DeleteConfigParams object
There are no default values defined in the spec.
func (*DeleteConfigParams) BindRequest ¶ added in v1.9.2
func (o *DeleteConfigParams) 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 NewDeleteConfigParams() beforehand.
type DeleteConfigServiceUnavailable ¶ added in v1.9.2
type DeleteConfigServiceUnavailable struct { models.ServiceTemporarilyUnavailable `json:"body,omitempty"` }Payload *
DeleteConfigServiceUnavailable Service Temporarily Unavailable
swagger:response deleteConfigServiceUnavailable
func NewDeleteConfigServiceUnavailable ¶ added in v1.9.2
func NewDeleteConfigServiceUnavailable() *DeleteConfigServiceUnavailable
NewDeleteConfigServiceUnavailable creates DeleteConfigServiceUnavailable with default headers values
func (*DeleteConfigServiceUnavailable) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) SetPayload(payload *models.ServiceTemporarilyUnavailable)
SetPayload sets the payload to the delete config service unavailable response
func (*DeleteConfigServiceUnavailable) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) WithPayload(payload *models.ServiceTemporarilyUnavailable) *DeleteConfigServiceUnavailable
WithPayload adds the payload to the delete config service unavailable response
func (*DeleteConfigServiceUnavailable) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteConfigURL ¶ added in v1.9.2
type DeleteConfigURL struct { ConfigID string // contains filtered or unexported fields }
DeleteConfigURL generates an URL for the delete config operation
func (*DeleteConfigURL) Build ¶ added in v1.9.2
func (o *DeleteConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteConfigURL) BuildFull ¶ added in v1.9.2
func (o *DeleteConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteConfigURL) Must ¶ added in v1.9.2
Must is a helper function to panic when the url builder returns an error
func (*DeleteConfigURL) SetBasePath ¶ added in v1.9.2
func (o *DeleteConfigURL) 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 (*DeleteConfigURL) String ¶ added in v1.9.2
func (o *DeleteConfigURL) String() string
String returns the string representation of the path with query string
func (*DeleteConfigURL) StringFull ¶ added in v1.9.2
func (o *DeleteConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteConfigURL) WithBasePath ¶ added in v1.9.2
func (o *DeleteConfigURL) WithBasePath(bp string) *DeleteConfigURL
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 DeleteConfigUnauthorized ¶ added in v1.9.2
DeleteConfigUnauthorized Unauthorized
swagger:response deleteConfigUnauthorized
func NewDeleteConfigUnauthorized ¶ added in v1.9.2
func NewDeleteConfigUnauthorized() *DeleteConfigUnauthorized
NewDeleteConfigUnauthorized creates DeleteConfigUnauthorized with default headers values
func (*DeleteConfigUnauthorized) SetPayload ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete config unauthorized response
func (*DeleteConfigUnauthorized) WithPayload ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) WithPayload(payload *models.Error) *DeleteConfigUnauthorized
WithPayload adds the payload to the delete config unauthorized response
func (*DeleteConfigUnauthorized) WriteResponse ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VGSocketRealmAPI ¶
type VGSocketRealmAPI 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 // XMLConsumer registers a consumer for the following mime types: // - application/xml XMLConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // XMLProducer registers a producer for the following mime types: // - application/xml XMLProducer runtime.Producer // JWTAuth registers a function that takes an access token and a collection of required scopes and returns a principal // it performs authentication based on an oauth2 bearer token provided in the request JWTAuth func(string, []string) (*models.Principal, error) // APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal APIAuthorizer runtime.Authorizer // CreateConfigHandler sets the operation handler for the create config operation CreateConfigHandler CreateConfigHandler // DeleteConfigHandler sets the operation handler for the delete config operation DeleteConfigHandler DeleteConfigHandler // 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 }
VGSocketRealmAPI VPN Generator socket datacenter API
func NewVGSocketRealmAPI ¶
func NewVGSocketRealmAPI(spec *loads.Document) *VGSocketRealmAPI
NewVGSocketRealmAPI creates a new VGSocketRealm instance
func (*VGSocketRealmAPI) AddMiddlewareFor ¶
func (o *VGSocketRealmAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*VGSocketRealmAPI) AuthenticatorsFor ¶
func (o *VGSocketRealmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*VGSocketRealmAPI) Authorizer ¶
func (o *VGSocketRealmAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*VGSocketRealmAPI) ConsumersFor ¶
func (o *VGSocketRealmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*VGSocketRealmAPI) Context ¶
func (o *VGSocketRealmAPI) Context() *middleware.Context
Context returns the middleware context for the v g socket realm API
func (*VGSocketRealmAPI) DefaultConsumes ¶
func (o *VGSocketRealmAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*VGSocketRealmAPI) DefaultProduces ¶
func (o *VGSocketRealmAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*VGSocketRealmAPI) Formats ¶
func (o *VGSocketRealmAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*VGSocketRealmAPI) HandlerFor ¶
func (o *VGSocketRealmAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*VGSocketRealmAPI) Init ¶
func (o *VGSocketRealmAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*VGSocketRealmAPI) ProducersFor ¶
func (o *VGSocketRealmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*VGSocketRealmAPI) RegisterConsumer ¶
func (o *VGSocketRealmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*VGSocketRealmAPI) RegisterFormat ¶
func (o *VGSocketRealmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*VGSocketRealmAPI) RegisterProducer ¶
func (o *VGSocketRealmAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*VGSocketRealmAPI) Serve ¶
func (o *VGSocketRealmAPI) 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 (*VGSocketRealmAPI) ServeErrorFor ¶
func (o *VGSocketRealmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*VGSocketRealmAPI) SetDefaultConsumes ¶
func (o *VGSocketRealmAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*VGSocketRealmAPI) SetDefaultProduces ¶
func (o *VGSocketRealmAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*VGSocketRealmAPI) SetSpec ¶
func (o *VGSocketRealmAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*VGSocketRealmAPI) UseRedoc ¶
func (o *VGSocketRealmAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*VGSocketRealmAPI) UseSwaggerUI ¶
func (o *VGSocketRealmAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*VGSocketRealmAPI) Validate ¶
func (o *VGSocketRealmAPI) Validate() error
Validate validates the registrations in the VGSocketRealmAPI