Documentation ¶
Index ¶
- type ConfigurationServiceAPI
- func (o *ConfigurationServiceAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *ConfigurationServiceAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *ConfigurationServiceAPI) Authorizer() runtime.Authorizer
- func (o *ConfigurationServiceAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *ConfigurationServiceAPI) Context() *middleware.Context
- func (o *ConfigurationServiceAPI) DefaultConsumes() string
- func (o *ConfigurationServiceAPI) DefaultProduces() string
- func (o *ConfigurationServiceAPI) Formats() strfmt.Registry
- func (o *ConfigurationServiceAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *ConfigurationServiceAPI) Init()
- func (o *ConfigurationServiceAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *ConfigurationServiceAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *ConfigurationServiceAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *ConfigurationServiceAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *ConfigurationServiceAPI) Serve(builder middleware.Builder) http.Handler
- func (o *ConfigurationServiceAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *ConfigurationServiceAPI) SetDefaultConsumes(mediaType string)
- func (o *ConfigurationServiceAPI) SetDefaultProduces(mediaType string)
- func (o *ConfigurationServiceAPI) SetSpec(spec *loads.Document)
- func (o *ConfigurationServiceAPI) UseRedoc()
- func (o *ConfigurationServiceAPI) UseSwaggerUI()
- func (o *ConfigurationServiceAPI) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationServiceAPI ¶
type ConfigurationServiceAPI 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/cloudevents+json // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // ProjectDeleteProjectProjectNameHandler sets the operation handler for the delete project project name operation ProjectDeleteProjectProjectNameHandler project.DeleteProjectProjectNameHandler // ProjectResourceDeleteProjectProjectNameResourceResourceURIHandler sets the operation handler for the delete project project name resource resource URI operation ProjectResourceDeleteProjectProjectNameResourceResourceURIHandler project_resource.DeleteProjectProjectNameResourceResourceURIHandler // ServiceDefaultResourceDeleteProjectProjectNameServiceServiceNameResourceResourceURIHandler sets the operation handler for the delete project project name service service name resource resource URI operation ServiceDefaultResourceDeleteProjectProjectNameServiceServiceNameResourceResourceURIHandler service_default_resource.DeleteProjectProjectNameServiceServiceNameResourceResourceURIHandler // StageDeleteProjectProjectNameStageStageNameHandler sets the operation handler for the delete project project name stage stage name operation StageDeleteProjectProjectNameStageStageNameHandler stage.DeleteProjectProjectNameStageStageNameHandler // StageResourceDeleteProjectProjectNameStageStageNameResourceResourceURIHandler sets the operation handler for the delete project project name stage stage name resource resource URI operation StageResourceDeleteProjectProjectNameStageStageNameResourceResourceURIHandler stage_resource.DeleteProjectProjectNameStageStageNameResourceResourceURIHandler // ServiceDeleteProjectProjectNameStageStageNameServiceServiceNameHandler sets the operation handler for the delete project project name stage stage name service service name operation ServiceDeleteProjectProjectNameStageStageNameServiceServiceNameHandler service.DeleteProjectProjectNameStageStageNameServiceServiceNameHandler // ServiceResourceDeleteProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler sets the operation handler for the delete project project name stage stage name service service name resource resource URI operation ServiceResourceDeleteProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler service_resource.DeleteProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler // ProjectResourceGetProjectProjectNameResourceHandler sets the operation handler for the get project project name resource operation ProjectResourceGetProjectProjectNameResourceHandler project_resource.GetProjectProjectNameResourceHandler // ProjectResourceGetProjectProjectNameResourceResourceURIHandler sets the operation handler for the get project project name resource resource URI operation ProjectResourceGetProjectProjectNameResourceResourceURIHandler project_resource.GetProjectProjectNameResourceResourceURIHandler // ServiceDefaultResourceGetProjectProjectNameServiceServiceNameResourceHandler sets the operation handler for the get project project name service service name resource operation ServiceDefaultResourceGetProjectProjectNameServiceServiceNameResourceHandler service_default_resource.GetProjectProjectNameServiceServiceNameResourceHandler // ServiceDefaultResourceGetProjectProjectNameServiceServiceNameResourceResourceURIHandler sets the operation handler for the get project project name service service name resource resource URI operation ServiceDefaultResourceGetProjectProjectNameServiceServiceNameResourceResourceURIHandler service_default_resource.GetProjectProjectNameServiceServiceNameResourceResourceURIHandler // StageResourceGetProjectProjectNameStageStageNameResourceHandler sets the operation handler for the get project project name stage stage name resource operation StageResourceGetProjectProjectNameStageStageNameResourceHandler stage_resource.GetProjectProjectNameStageStageNameResourceHandler // StageResourceGetProjectProjectNameStageStageNameResourceResourceURIHandler sets the operation handler for the get project project name stage stage name resource resource URI operation StageResourceGetProjectProjectNameStageStageNameResourceResourceURIHandler stage_resource.GetProjectProjectNameStageStageNameResourceResourceURIHandler // ServiceResourceGetProjectProjectNameStageStageNameServiceServiceNameResourceHandler sets the operation handler for the get project project name stage stage name service service name resource operation ServiceResourceGetProjectProjectNameStageStageNameServiceServiceNameResourceHandler service_resource.GetProjectProjectNameStageStageNameServiceServiceNameResourceHandler // ServiceResourceGetProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler sets the operation handler for the get project project name stage stage name service service name resource resource URI operation ServiceResourceGetProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler service_resource.GetProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler // ProjectPostProjectHandler sets the operation handler for the post project operation ProjectPostProjectHandler project.PostProjectHandler // ProjectResourcePostProjectProjectNameResourceHandler sets the operation handler for the post project project name resource operation ProjectResourcePostProjectProjectNameResourceHandler project_resource.PostProjectProjectNameResourceHandler // ServiceDefaultResourcePostProjectProjectNameServiceServiceNameResourceHandler sets the operation handler for the post project project name service service name resource operation ServiceDefaultResourcePostProjectProjectNameServiceServiceNameResourceHandler service_default_resource.PostProjectProjectNameServiceServiceNameResourceHandler // StagePostProjectProjectNameStageHandler sets the operation handler for the post project project name stage operation StagePostProjectProjectNameStageHandler stage.PostProjectProjectNameStageHandler // StageResourcePostProjectProjectNameStageStageNameResourceHandler sets the operation handler for the post project project name stage stage name resource operation StageResourcePostProjectProjectNameStageStageNameResourceHandler stage_resource.PostProjectProjectNameStageStageNameResourceHandler // ServicePostProjectProjectNameStageStageNameServiceHandler sets the operation handler for the post project project name stage stage name service operation ServicePostProjectProjectNameStageStageNameServiceHandler service.PostProjectProjectNameStageStageNameServiceHandler // ServiceResourcePostProjectProjectNameStageStageNameServiceServiceNameResourceHandler sets the operation handler for the post project project name stage stage name service service name resource operation ServiceResourcePostProjectProjectNameStageStageNameServiceServiceNameResourceHandler service_resource.PostProjectProjectNameStageStageNameServiceServiceNameResourceHandler // ProjectPutProjectProjectNameHandler sets the operation handler for the put project project name operation ProjectPutProjectProjectNameHandler project.PutProjectProjectNameHandler // ProjectResourcePutProjectProjectNameResourceHandler sets the operation handler for the put project project name resource operation ProjectResourcePutProjectProjectNameResourceHandler project_resource.PutProjectProjectNameResourceHandler // ProjectResourcePutProjectProjectNameResourceResourceURIHandler sets the operation handler for the put project project name resource resource URI operation ProjectResourcePutProjectProjectNameResourceResourceURIHandler project_resource.PutProjectProjectNameResourceResourceURIHandler // ServiceDefaultResourcePutProjectProjectNameServiceServiceNameResourceHandler sets the operation handler for the put project project name service service name resource operation ServiceDefaultResourcePutProjectProjectNameServiceServiceNameResourceHandler service_default_resource.PutProjectProjectNameServiceServiceNameResourceHandler // ServiceDefaultResourcePutProjectProjectNameServiceServiceNameResourceResourceURIHandler sets the operation handler for the put project project name service service name resource resource URI operation ServiceDefaultResourcePutProjectProjectNameServiceServiceNameResourceResourceURIHandler service_default_resource.PutProjectProjectNameServiceServiceNameResourceResourceURIHandler // StagePutProjectProjectNameStageStageNameHandler sets the operation handler for the put project project name stage stage name operation StagePutProjectProjectNameStageStageNameHandler stage.PutProjectProjectNameStageStageNameHandler // StageResourcePutProjectProjectNameStageStageNameResourceHandler sets the operation handler for the put project project name stage stage name resource operation StageResourcePutProjectProjectNameStageStageNameResourceHandler stage_resource.PutProjectProjectNameStageStageNameResourceHandler // StageResourcePutProjectProjectNameStageStageNameResourceResourceURIHandler sets the operation handler for the put project project name stage stage name resource resource URI operation StageResourcePutProjectProjectNameStageStageNameResourceResourceURIHandler stage_resource.PutProjectProjectNameStageStageNameResourceResourceURIHandler // ServicePutProjectProjectNameStageStageNameServiceServiceNameHandler sets the operation handler for the put project project name stage stage name service service name operation ServicePutProjectProjectNameStageStageNameServiceServiceNameHandler service.PutProjectProjectNameStageStageNameServiceServiceNameHandler // ServiceResourcePutProjectProjectNameStageStageNameServiceServiceNameResourceHandler sets the operation handler for the put project project name stage stage name service service name resource operation ServiceResourcePutProjectProjectNameStageStageNameServiceServiceNameResourceHandler service_resource.PutProjectProjectNameStageStageNameServiceServiceNameResourceHandler // ServiceResourcePutProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler sets the operation handler for the put project project name stage stage name service service name resource resource URI operation ServiceResourcePutProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler service_resource.PutProjectProjectNameStageStageNameServiceServiceNameResourceResourceURIHandler // 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 }
ConfigurationServiceAPI the configuration service API
func NewConfigurationServiceAPI ¶
func NewConfigurationServiceAPI(spec *loads.Document) *ConfigurationServiceAPI
NewConfigurationServiceAPI creates a new ConfigurationService instance
func (*ConfigurationServiceAPI) AddMiddlewareFor ¶
func (o *ConfigurationServiceAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*ConfigurationServiceAPI) AuthenticatorsFor ¶
func (o *ConfigurationServiceAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*ConfigurationServiceAPI) Authorizer ¶
func (o *ConfigurationServiceAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*ConfigurationServiceAPI) ConsumersFor ¶
func (o *ConfigurationServiceAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*ConfigurationServiceAPI) Context ¶
func (o *ConfigurationServiceAPI) Context() *middleware.Context
Context returns the middleware context for the configuration service API
func (*ConfigurationServiceAPI) DefaultConsumes ¶
func (o *ConfigurationServiceAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*ConfigurationServiceAPI) DefaultProduces ¶
func (o *ConfigurationServiceAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*ConfigurationServiceAPI) Formats ¶
func (o *ConfigurationServiceAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*ConfigurationServiceAPI) HandlerFor ¶
func (o *ConfigurationServiceAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*ConfigurationServiceAPI) Init ¶
func (o *ConfigurationServiceAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*ConfigurationServiceAPI) ProducersFor ¶
func (o *ConfigurationServiceAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*ConfigurationServiceAPI) RegisterConsumer ¶
func (o *ConfigurationServiceAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*ConfigurationServiceAPI) RegisterFormat ¶
func (o *ConfigurationServiceAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*ConfigurationServiceAPI) RegisterProducer ¶
func (o *ConfigurationServiceAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*ConfigurationServiceAPI) Serve ¶
func (o *ConfigurationServiceAPI) 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 (*ConfigurationServiceAPI) ServeErrorFor ¶
func (o *ConfigurationServiceAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*ConfigurationServiceAPI) SetDefaultConsumes ¶
func (o *ConfigurationServiceAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*ConfigurationServiceAPI) SetDefaultProduces ¶
func (o *ConfigurationServiceAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*ConfigurationServiceAPI) SetSpec ¶
func (o *ConfigurationServiceAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*ConfigurationServiceAPI) UseRedoc ¶
func (o *ConfigurationServiceAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*ConfigurationServiceAPI) UseSwaggerUI ¶
func (o *ConfigurationServiceAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*ConfigurationServiceAPI) Validate ¶
func (o *ConfigurationServiceAPI) Validate() error
Validate validates the registrations in the ConfigurationServiceAPI