Documentation ¶
Index ¶
- Constants
- type CfgapisrvAPI
- func (o *CfgapisrvAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *CfgapisrvAPI) Authorizer() runtime.Authorizer
- func (o *CfgapisrvAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *CfgapisrvAPI) Context() *middleware.Context
- func (o *CfgapisrvAPI) DefaultConsumes() string
- func (o *CfgapisrvAPI) DefaultProduces() string
- func (o *CfgapisrvAPI) Formats() strfmt.Registry
- func (o *CfgapisrvAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *CfgapisrvAPI) Init()
- func (o *CfgapisrvAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *CfgapisrvAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *CfgapisrvAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *CfgapisrvAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *CfgapisrvAPI) Serve(builder middleware.Builder) http.Handler
- func (o *CfgapisrvAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *CfgapisrvAPI) SetDefaultConsumes(mediaType string)
- func (o *CfgapisrvAPI) SetDefaultProduces(mediaType string)
- func (o *CfgapisrvAPI) SetSpec(spec *loads.Document)
- func (o *CfgapisrvAPI) Validate() error
- type GetConfig
- type GetConfigHandler
- type GetConfigHandlerFunc
- type GetConfigOK
- type GetConfigParams
- type GetConfigURL
- func (o *GetConfigURL) Build() (*url.URL, error)
- func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *GetConfigURL) SetBasePath(bp string)
- func (o *GetConfigURL) String() string
- func (o *GetConfigURL) StringFull(scheme, host string) string
- func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL
- type GetGreeting
- type GetGreetingHandler
- type GetGreetingHandlerFunc
- type GetGreetingOK
- type GetGreetingParams
- type GetGreetingURL
- func (o *GetGreetingURL) Build() (*url.URL, error)
- func (o *GetGreetingURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetGreetingURL) Must(u *url.URL, err error) *url.URL
- func (o *GetGreetingURL) SetBasePath(bp string)
- func (o *GetGreetingURL) String() string
- func (o *GetGreetingURL) StringFull(scheme, host string) string
- func (o *GetGreetingURL) WithBasePath(bp string) *GetGreetingURL
- type ProbeLiveness
- type ProbeLivenessHandler
- type ProbeLivenessHandlerFunc
- type ProbeLivenessOK
- type ProbeLivenessParams
- type ProbeLivenessURL
- func (o *ProbeLivenessURL) Build() (*url.URL, error)
- func (o *ProbeLivenessURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ProbeLivenessURL) Must(u *url.URL, err error) *url.URL
- func (o *ProbeLivenessURL) SetBasePath(bp string)
- func (o *ProbeLivenessURL) String() string
- func (o *ProbeLivenessURL) StringFull(scheme, host string) string
- func (o *ProbeLivenessURL) WithBasePath(bp string) *ProbeLivenessURL
- type ProbeReadiness
- type ProbeReadinessHandler
- type ProbeReadinessHandlerFunc
- type ProbeReadinessOK
- type ProbeReadinessParams
- type ProbeReadinessURL
- func (o *ProbeReadinessURL) Build() (*url.URL, error)
- func (o *ProbeReadinessURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ProbeReadinessURL) Must(u *url.URL, err error) *url.URL
- func (o *ProbeReadinessURL) SetBasePath(bp string)
- func (o *ProbeReadinessURL) String() string
- func (o *ProbeReadinessURL) StringFull(scheme, host string) string
- func (o *ProbeReadinessURL) WithBasePath(bp string) *ProbeReadinessURL
Constants ¶
const GetConfigOKCode int = 200
GetConfigOKCode is the HTTP code returned for type GetConfigOK
const GetGreetingOKCode int = 200
GetGreetingOKCode is the HTTP code returned for type GetGreetingOK
const ProbeLivenessOKCode int = 200
ProbeLivenessOKCode is the HTTP code returned for type ProbeLivenessOK
const ProbeReadinessOKCode int = 200
ProbeReadinessOKCode is the HTTP code returned for type ProbeReadinessOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfgapisrvAPI ¶
type CfgapisrvAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implemention 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 implemention 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 implemention 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 a "application/json" mime type JSONConsumer runtime.Consumer // TxtProducer registers a producer for a "text/plain" mime type TxtProducer runtime.Producer // GetConfigHandler sets the operation handler for the get config operation GetConfigHandler GetConfigHandler // GetGreetingHandler sets the operation handler for the get greeting operation GetGreetingHandler GetGreetingHandler // ProbeLivenessHandler sets the operation handler for the probe liveness operation ProbeLivenessHandler ProbeLivenessHandler // ProbeReadinessHandler sets the operation handler for the probe readiness operation ProbeReadinessHandler ProbeReadinessHandler // 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) // 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 }
CfgapisrvAPI the cfgapisrv API
func NewCfgapisrvAPI ¶
func NewCfgapisrvAPI(spec *loads.Document) *CfgapisrvAPI
NewCfgapisrvAPI creates a new Cfgapisrv instance
func (*CfgapisrvAPI) AuthenticatorsFor ¶
func (o *CfgapisrvAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*CfgapisrvAPI) Authorizer ¶
func (o *CfgapisrvAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*CfgapisrvAPI) ConsumersFor ¶
func (o *CfgapisrvAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types
func (*CfgapisrvAPI) Context ¶
func (o *CfgapisrvAPI) Context() *middleware.Context
Context returns the middleware context for the cfgapisrv API
func (*CfgapisrvAPI) DefaultConsumes ¶
func (o *CfgapisrvAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*CfgapisrvAPI) DefaultProduces ¶
func (o *CfgapisrvAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*CfgapisrvAPI) Formats ¶
func (o *CfgapisrvAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*CfgapisrvAPI) HandlerFor ¶
func (o *CfgapisrvAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*CfgapisrvAPI) Init ¶
func (o *CfgapisrvAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*CfgapisrvAPI) ProducersFor ¶
func (o *CfgapisrvAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types
func (*CfgapisrvAPI) RegisterConsumer ¶
func (o *CfgapisrvAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*CfgapisrvAPI) RegisterFormat ¶
func (o *CfgapisrvAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*CfgapisrvAPI) RegisterProducer ¶
func (o *CfgapisrvAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*CfgapisrvAPI) Serve ¶
func (o *CfgapisrvAPI) 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 (*CfgapisrvAPI) ServeErrorFor ¶
func (o *CfgapisrvAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*CfgapisrvAPI) SetDefaultConsumes ¶
func (o *CfgapisrvAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*CfgapisrvAPI) SetDefaultProduces ¶
func (o *CfgapisrvAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*CfgapisrvAPI) SetSpec ¶
func (o *CfgapisrvAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*CfgapisrvAPI) Validate ¶
func (o *CfgapisrvAPI) Validate() error
Validate validates the registrations in the CfgapisrvAPI
type GetConfig ¶
type GetConfig struct { Context *middleware.Context Handler GetConfigHandler }
GetConfig swagger:route GET /config getConfig
GetConfig get config API
func NewGetConfig ¶
func NewGetConfig(ctx *middleware.Context, handler GetConfigHandler) *GetConfig
NewGetConfig creates a new http.Handler for the get config operation
type GetConfigHandler ¶
type GetConfigHandler interface {
Handle(GetConfigParams) middleware.Responder
}
GetConfigHandler interface for that can handle valid get config params
type GetConfigHandlerFunc ¶
type GetConfigHandlerFunc func(GetConfigParams) middleware.Responder
GetConfigHandlerFunc turns a function with the right signature into a get config handler
func (GetConfigHandlerFunc) Handle ¶
func (fn GetConfigHandlerFunc) Handle(params GetConfigParams) middleware.Responder
Handle executing the request and returning a response
type GetConfigOK ¶
type GetConfigOK struct { /*contains the actual config as plain text In: Body */ Payload string `json:"body,omitempty"` }
GetConfigOK returns a config file
swagger:response getConfigOK
func NewGetConfigOK ¶
func NewGetConfigOK() *GetConfigOK
NewGetConfigOK creates GetConfigOK with default headers values
func (*GetConfigOK) SetPayload ¶
func (o *GetConfigOK) SetPayload(payload string)
SetPayload sets the payload to the get config o k response
func (*GetConfigOK) WithPayload ¶
func (o *GetConfigOK) WithPayload(payload string) *GetConfigOK
WithPayload adds the payload to the get config o k response
func (*GetConfigOK) WriteResponse ¶
func (o *GetConfigOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetConfigParams ¶
type GetConfigParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*defaults to all if not given In: query */ Name *string }
GetConfigParams contains all the bound params for the get config operation typically these are obtained from a http.Request
swagger:parameters getConfig
func NewGetConfigParams ¶
func NewGetConfigParams() GetConfigParams
NewGetConfigParams creates a new GetConfigParams object no default values defined in spec.
func (*GetConfigParams) BindRequest ¶
func (o *GetConfigParams) 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 NewGetConfigParams() beforehand.
type GetConfigURL ¶
type GetConfigURL struct { Name *string // contains filtered or unexported fields }
GetConfigURL generates an URL for the get config operation
func (*GetConfigURL) Build ¶
func (o *GetConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetConfigURL) BuildFull ¶
func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetConfigURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetConfigURL) SetBasePath ¶
func (o *GetConfigURL) 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 (*GetConfigURL) String ¶
func (o *GetConfigURL) String() string
String returns the string representation of the path with query string
func (*GetConfigURL) StringFull ¶
func (o *GetConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetConfigURL) WithBasePath ¶
func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL
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 GetGreeting ¶
type GetGreeting struct { Context *middleware.Context Handler GetGreetingHandler }
GetGreeting swagger:route GET /hello getGreeting
GetGreeting get greeting API
func NewGetGreeting ¶
func NewGetGreeting(ctx *middleware.Context, handler GetGreetingHandler) *GetGreeting
NewGetGreeting creates a new http.Handler for the get greeting operation
func (*GetGreeting) ServeHTTP ¶
func (o *GetGreeting) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetGreetingHandler ¶
type GetGreetingHandler interface {
Handle(GetGreetingParams) middleware.Responder
}
GetGreetingHandler interface for that can handle valid get greeting params
type GetGreetingHandlerFunc ¶
type GetGreetingHandlerFunc func(GetGreetingParams) middleware.Responder
GetGreetingHandlerFunc turns a function with the right signature into a get greeting handler
func (GetGreetingHandlerFunc) Handle ¶
func (fn GetGreetingHandlerFunc) Handle(params GetGreetingParams) middleware.Responder
Handle executing the request and returning a response
type GetGreetingOK ¶
type GetGreetingOK struct { /*contains the actual greeting as plain text In: Body */ Payload string `json:"body,omitempty"` }
GetGreetingOK returns a greeting
swagger:response getGreetingOK
func NewGetGreetingOK ¶
func NewGetGreetingOK() *GetGreetingOK
NewGetGreetingOK creates GetGreetingOK with default headers values
func (*GetGreetingOK) SetPayload ¶
func (o *GetGreetingOK) SetPayload(payload string)
SetPayload sets the payload to the get greeting o k response
func (*GetGreetingOK) WithPayload ¶
func (o *GetGreetingOK) WithPayload(payload string) *GetGreetingOK
WithPayload adds the payload to the get greeting o k response
func (*GetGreetingOK) WriteResponse ¶
func (o *GetGreetingOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetGreetingParams ¶
type GetGreetingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*defaults to World if not given In: query */ Name *string }
GetGreetingParams contains all the bound params for the get greeting operation typically these are obtained from a http.Request
swagger:parameters getGreeting
func NewGetGreetingParams ¶
func NewGetGreetingParams() GetGreetingParams
NewGetGreetingParams creates a new GetGreetingParams object no default values defined in spec.
func (*GetGreetingParams) BindRequest ¶
func (o *GetGreetingParams) 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 NewGetGreetingParams() beforehand.
type GetGreetingURL ¶
type GetGreetingURL struct { Name *string // contains filtered or unexported fields }
GetGreetingURL generates an URL for the get greeting operation
func (*GetGreetingURL) Build ¶
func (o *GetGreetingURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetGreetingURL) BuildFull ¶
func (o *GetGreetingURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetGreetingURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetGreetingURL) SetBasePath ¶
func (o *GetGreetingURL) 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 (*GetGreetingURL) String ¶
func (o *GetGreetingURL) String() string
String returns the string representation of the path with query string
func (*GetGreetingURL) StringFull ¶
func (o *GetGreetingURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetGreetingURL) WithBasePath ¶
func (o *GetGreetingURL) WithBasePath(bp string) *GetGreetingURL
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 ProbeLiveness ¶
type ProbeLiveness struct { Context *middleware.Context Handler ProbeLivenessHandler }
ProbeLiveness swagger:route GET /liveness probeLiveness
ProbeLiveness probe liveness API
func NewProbeLiveness ¶
func NewProbeLiveness(ctx *middleware.Context, handler ProbeLivenessHandler) *ProbeLiveness
NewProbeLiveness creates a new http.Handler for the probe liveness operation
func (*ProbeLiveness) ServeHTTP ¶
func (o *ProbeLiveness) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ProbeLivenessHandler ¶
type ProbeLivenessHandler interface {
Handle(ProbeLivenessParams) middleware.Responder
}
ProbeLivenessHandler interface for that can handle valid probe liveness params
type ProbeLivenessHandlerFunc ¶
type ProbeLivenessHandlerFunc func(ProbeLivenessParams) middleware.Responder
ProbeLivenessHandlerFunc turns a function with the right signature into a probe liveness handler
func (ProbeLivenessHandlerFunc) Handle ¶
func (fn ProbeLivenessHandlerFunc) Handle(params ProbeLivenessParams) middleware.Responder
Handle executing the request and returning a response
type ProbeLivenessOK ¶
type ProbeLivenessOK struct { /*contains the actual liveness state as plain text In: Body */ Payload string `json:"body,omitempty"` }
ProbeLivenessOK returns a liveness state of the simulator
swagger:response probeLivenessOK
func NewProbeLivenessOK ¶
func NewProbeLivenessOK() *ProbeLivenessOK
NewProbeLivenessOK creates ProbeLivenessOK with default headers values
func (*ProbeLivenessOK) SetPayload ¶
func (o *ProbeLivenessOK) SetPayload(payload string)
SetPayload sets the payload to the probe liveness o k response
func (*ProbeLivenessOK) WithPayload ¶
func (o *ProbeLivenessOK) WithPayload(payload string) *ProbeLivenessOK
WithPayload adds the payload to the probe liveness o k response
func (*ProbeLivenessOK) WriteResponse ¶
func (o *ProbeLivenessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProbeLivenessParams ¶
ProbeLivenessParams contains all the bound params for the probe liveness operation typically these are obtained from a http.Request
swagger:parameters probeLiveness
func NewProbeLivenessParams ¶
func NewProbeLivenessParams() ProbeLivenessParams
NewProbeLivenessParams creates a new ProbeLivenessParams object no default values defined in spec.
func (*ProbeLivenessParams) BindRequest ¶
func (o *ProbeLivenessParams) 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 NewProbeLivenessParams() beforehand.
type ProbeLivenessURL ¶
type ProbeLivenessURL struct {
// contains filtered or unexported fields
}
ProbeLivenessURL generates an URL for the probe liveness operation
func (*ProbeLivenessURL) Build ¶
func (o *ProbeLivenessURL) Build() (*url.URL, error)
Build a url path and query string
func (*ProbeLivenessURL) BuildFull ¶
func (o *ProbeLivenessURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ProbeLivenessURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ProbeLivenessURL) SetBasePath ¶
func (o *ProbeLivenessURL) 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 (*ProbeLivenessURL) String ¶
func (o *ProbeLivenessURL) String() string
String returns the string representation of the path with query string
func (*ProbeLivenessURL) StringFull ¶
func (o *ProbeLivenessURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ProbeLivenessURL) WithBasePath ¶
func (o *ProbeLivenessURL) WithBasePath(bp string) *ProbeLivenessURL
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 ProbeReadiness ¶
type ProbeReadiness struct { Context *middleware.Context Handler ProbeReadinessHandler }
ProbeReadiness swagger:route GET /readiness probeReadiness
ProbeReadiness probe readiness API
func NewProbeReadiness ¶
func NewProbeReadiness(ctx *middleware.Context, handler ProbeReadinessHandler) *ProbeReadiness
NewProbeReadiness creates a new http.Handler for the probe readiness operation
func (*ProbeReadiness) ServeHTTP ¶
func (o *ProbeReadiness) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ProbeReadinessHandler ¶
type ProbeReadinessHandler interface {
Handle(ProbeReadinessParams) middleware.Responder
}
ProbeReadinessHandler interface for that can handle valid probe readiness params
type ProbeReadinessHandlerFunc ¶
type ProbeReadinessHandlerFunc func(ProbeReadinessParams) middleware.Responder
ProbeReadinessHandlerFunc turns a function with the right signature into a probe readiness handler
func (ProbeReadinessHandlerFunc) Handle ¶
func (fn ProbeReadinessHandlerFunc) Handle(params ProbeReadinessParams) middleware.Responder
Handle executing the request and returning a response
type ProbeReadinessOK ¶
type ProbeReadinessOK struct { /*contains the actual readiness state as plain text In: Body */ Payload string `json:"body,omitempty"` }
ProbeReadinessOK returns a readiness state of the simulator
swagger:response probeReadinessOK
func NewProbeReadinessOK ¶
func NewProbeReadinessOK() *ProbeReadinessOK
NewProbeReadinessOK creates ProbeReadinessOK with default headers values
func (*ProbeReadinessOK) SetPayload ¶
func (o *ProbeReadinessOK) SetPayload(payload string)
SetPayload sets the payload to the probe readiness o k response
func (*ProbeReadinessOK) WithPayload ¶
func (o *ProbeReadinessOK) WithPayload(payload string) *ProbeReadinessOK
WithPayload adds the payload to the probe readiness o k response
func (*ProbeReadinessOK) WriteResponse ¶
func (o *ProbeReadinessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ProbeReadinessParams ¶
ProbeReadinessParams contains all the bound params for the probe readiness operation typically these are obtained from a http.Request
swagger:parameters probeReadiness
func NewProbeReadinessParams ¶
func NewProbeReadinessParams() ProbeReadinessParams
NewProbeReadinessParams creates a new ProbeReadinessParams object no default values defined in spec.
func (*ProbeReadinessParams) BindRequest ¶
func (o *ProbeReadinessParams) 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 NewProbeReadinessParams() beforehand.
type ProbeReadinessURL ¶
type ProbeReadinessURL struct {
// contains filtered or unexported fields
}
ProbeReadinessURL generates an URL for the probe readiness operation
func (*ProbeReadinessURL) Build ¶
func (o *ProbeReadinessURL) Build() (*url.URL, error)
Build a url path and query string
func (*ProbeReadinessURL) BuildFull ¶
func (o *ProbeReadinessURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ProbeReadinessURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ProbeReadinessURL) SetBasePath ¶
func (o *ProbeReadinessURL) 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 (*ProbeReadinessURL) String ¶
func (o *ProbeReadinessURL) String() string
String returns the string representation of the path with query string
func (*ProbeReadinessURL) StringFull ¶
func (o *ProbeReadinessURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ProbeReadinessURL) WithBasePath ¶
func (o *ProbeReadinessURL) WithBasePath(bp string) *ProbeReadinessURL
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 ¶
- cfgapisrv_api.go
- get_config.go
- get_config_parameters.go
- get_config_responses.go
- get_config_urlbuilder.go
- get_greeting.go
- get_greeting_parameters.go
- get_greeting_responses.go
- get_greeting_urlbuilder.go
- probe_liveness.go
- probe_liveness_parameters.go
- probe_liveness_responses.go
- probe_liveness_urlbuilder.go
- probe_readiness.go
- probe_readiness_parameters.go
- probe_readiness_responses.go
- probe_readiness_urlbuilder.go