Documentation ¶
Index ¶
- type SwaggerPandasAPI
- func (o *SwaggerPandasAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *SwaggerPandasAPI) Authorizer() runtime.Authorizer
- func (o *SwaggerPandasAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *SwaggerPandasAPI) Context() *middleware.Context
- func (o *SwaggerPandasAPI) DefaultConsumes() string
- func (o *SwaggerPandasAPI) DefaultProduces() string
- func (o *SwaggerPandasAPI) Formats() strfmt.Registry
- func (o *SwaggerPandasAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *SwaggerPandasAPI) Init()
- func (o *SwaggerPandasAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *SwaggerPandasAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *SwaggerPandasAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *SwaggerPandasAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *SwaggerPandasAPI) Serve(builder middleware.Builder) http.Handler
- func (o *SwaggerPandasAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *SwaggerPandasAPI) SetDefaultConsumes(mediaType string)
- func (o *SwaggerPandasAPI) SetDefaultProduces(mediaType string)
- func (o *SwaggerPandasAPI) SetSpec(spec *loads.Document)
- func (o *SwaggerPandasAPI) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwaggerPandasAPI ¶
type SwaggerPandasAPI 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 // UrlformConsumer registers a consumer for the following mime types: // - application/x-www-form-urlencoded UrlformConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // RoleAuthAuth 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 RoleAuthAuth 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 // UserChangeCurrentUserPasswordHandler sets the operation handler for the change current user password operation UserChangeCurrentUserPasswordHandler user.ChangeCurrentUserPasswordHandler // UserChangeUserPasswordHandler sets the operation handler for the change user password operation UserChangeUserPasswordHandler user.ChangeUserPasswordHandler // ProjectGetProjectsProjectIDHandler sets the operation handler for the get projects project ID operation ProjectGetProjectsProjectIDHandler project.GetProjectsProjectIDHandler // ProjectAddProjectDeviceHandler sets the operation handler for the add project device operation ProjectAddProjectDeviceHandler project.AddProjectDeviceHandler // DeploymentCreateDeploymentHandler sets the operation handler for the create deployment operation DeploymentCreateDeploymentHandler deployment.CreateDeploymentHandler // ModelCreateModelHandler sets the operation handler for the create model operation ModelCreateModelHandler model.CreateModelHandler // ProjectCreateProjectHandler sets the operation handler for the create project operation ProjectCreateProjectHandler project.CreateProjectHandler // DeploymentDeleteDeploymentHandler sets the operation handler for the delete deployment operation DeploymentDeleteDeploymentHandler deployment.DeleteDeploymentHandler // ModelDeleteModelHandler sets the operation handler for the delete model operation ModelDeleteModelHandler model.DeleteModelHandler // ProjectDeleteProjectHandler sets the operation handler for the delete project operation ProjectDeleteProjectHandler project.DeleteProjectHandler // ProjectDeleteProjectDeviceHandler sets the operation handler for the delete project device operation ProjectDeleteProjectDeviceHandler project.DeleteProjectDeviceHandler // RulechainDeleteRuleChainHandler sets the operation handler for the delete rule chain operation RulechainDeleteRuleChainHandler rulechain.DeleteRuleChainHandler // UserDeleteUserHandler sets the operation handler for the delete user operation UserDeleteUserHandler user.DeleteUserHandler // RulechainDownloadRuleChainHandler sets the operation handler for the download rule chain operation RulechainDownloadRuleChainHandler rulechain.DownloadRuleChainHandler // DashboardGetDashboardHandler sets the operation handler for the get dashboard operation DashboardGetDashboardHandler dashboard.GetDashboardHandler // DeploymentGetDeploymentHandler sets the operation handler for the get deployment operation DeploymentGetDeploymentHandler deployment.GetDeploymentHandler // DeploymentGetDeploymentsHandler sets the operation handler for the get deployments operation DeploymentGetDeploymentsHandler deployment.GetDeploymentsHandler // LogsGetDeviceLogHandler sets the operation handler for the get device log operation LogsGetDeviceLogHandler logs.GetDeviceLogHandler // ModelGetModelHandler sets the operation handler for the get model operation ModelGetModelHandler model.GetModelHandler // ModelGetModelsHandler sets the operation handler for the get models operation ModelGetModelsHandler model.GetModelsHandler // ProjectGetProjectDeviceHandler sets the operation handler for the get project device operation ProjectGetProjectDeviceHandler project.GetProjectDeviceHandler // ProjectGetProjectDevicesHandler sets the operation handler for the get project devices operation ProjectGetProjectDevicesHandler project.GetProjectDevicesHandler // LogsGetProjectLogHandler sets the operation handler for the get project log operation LogsGetProjectLogHandler logs.GetProjectLogHandler // ProjectGetProjectSummaryHandler sets the operation handler for the get project summary operation ProjectGetProjectSummaryHandler project.GetProjectSummaryHandler // ProjectGetProjectsHandler sets the operation handler for the get projects operation ProjectGetProjectsHandler project.GetProjectsHandler // RulechainGetRuleChainHandler sets the operation handler for the get rule chain operation RulechainGetRuleChainHandler rulechain.GetRuleChainHandler // RulechainGetRuleChainMetadataHandler sets the operation handler for the get rule chain metadata operation RulechainGetRuleChainMetadataHandler rulechain.GetRuleChainMetadataHandler // RulechainGetRuleChainsHandler sets the operation handler for the get rule chains operation RulechainGetRuleChainsHandler rulechain.GetRuleChainsHandler // UserGetUserHandler sets the operation handler for the get user operation UserGetUserHandler user.GetUserHandler // UserLoginUserHandler sets the operation handler for the login user operation UserLoginUserHandler user.LoginUserHandler // UserLogoutUserHandler sets the operation handler for the logout user operation UserLogoutUserHandler user.LogoutUserHandler // RulechainSaveRuleChainHandler sets the operation handler for the save rule chain operation RulechainSaveRuleChainHandler rulechain.SaveRuleChainHandler // RulechainSaveRuleChainMetadataHandler sets the operation handler for the save rule chain metadata operation RulechainSaveRuleChainMetadataHandler rulechain.SaveRuleChainMetadataHandler // DeviceSendDataToDeviceHandler sets the operation handler for the send data to device operation DeviceSendDataToDeviceHandler device.SendDataToDeviceHandler // DeploymentSetDeploymentStatusHandler sets the operation handler for the set deployment status operation DeploymentSetDeploymentStatusHandler deployment.SetDeploymentStatusHandler // RulechainSetRootRuleChainHandler sets the operation handler for the set root rule chain operation RulechainSetRootRuleChainHandler rulechain.SetRootRuleChainHandler // DeploymentUpdateDeploymentHandler sets the operation handler for the update deployment operation DeploymentUpdateDeploymentHandler deployment.UpdateDeploymentHandler // ModelUpdateModelHandler sets the operation handler for the update model operation ModelUpdateModelHandler model.UpdateModelHandler // ProjectUpdateProjectHandler sets the operation handler for the update project operation ProjectUpdateProjectHandler project.UpdateProjectHandler // ProjectUpdateProjectDeviceHandler sets the operation handler for the update project device operation ProjectUpdateProjectDeviceHandler project.UpdateProjectDeviceHandler // ProjectUpdateProjectDeviceStatusHandler sets the operation handler for the update project device status operation ProjectUpdateProjectDeviceStatusHandler project.UpdateProjectDeviceStatusHandler // UserUpdateUserHandler sets the operation handler for the update user operation UserUpdateUserHandler user.UpdateUserHandler // RulechainUploadRuleChainHandler sets the operation handler for the upload rule chain operation RulechainUploadRuleChainHandler rulechain.UploadRuleChainHandler // 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 }
SwaggerPandasAPI This is a pandas api server.
func NewSwaggerPandasAPI ¶
func NewSwaggerPandasAPI(spec *loads.Document) *SwaggerPandasAPI
NewSwaggerPandasAPI creates a new SwaggerPandas instance
func (*SwaggerPandasAPI) AuthenticatorsFor ¶
func (o *SwaggerPandasAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*SwaggerPandasAPI) Authorizer ¶
func (o *SwaggerPandasAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*SwaggerPandasAPI) ConsumersFor ¶
func (o *SwaggerPandasAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*SwaggerPandasAPI) Context ¶
func (o *SwaggerPandasAPI) Context() *middleware.Context
Context returns the middleware context for the swagger pandas API
func (*SwaggerPandasAPI) DefaultConsumes ¶
func (o *SwaggerPandasAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*SwaggerPandasAPI) DefaultProduces ¶
func (o *SwaggerPandasAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*SwaggerPandasAPI) Formats ¶
func (o *SwaggerPandasAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*SwaggerPandasAPI) HandlerFor ¶
func (o *SwaggerPandasAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*SwaggerPandasAPI) Init ¶
func (o *SwaggerPandasAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*SwaggerPandasAPI) ProducersFor ¶
func (o *SwaggerPandasAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*SwaggerPandasAPI) RegisterConsumer ¶
func (o *SwaggerPandasAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*SwaggerPandasAPI) RegisterFormat ¶
func (o *SwaggerPandasAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*SwaggerPandasAPI) RegisterProducer ¶
func (o *SwaggerPandasAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*SwaggerPandasAPI) Serve ¶
func (o *SwaggerPandasAPI) 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 (*SwaggerPandasAPI) ServeErrorFor ¶
func (o *SwaggerPandasAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*SwaggerPandasAPI) SetDefaultConsumes ¶
func (o *SwaggerPandasAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*SwaggerPandasAPI) SetDefaultProduces ¶
func (o *SwaggerPandasAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*SwaggerPandasAPI) SetSpec ¶
func (o *SwaggerPandasAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*SwaggerPandasAPI) Validate ¶
func (o *SwaggerPandasAPI) Validate() error
Validate validates the registrations in the SwaggerPandasAPI