Documentation ¶
Overview ¶
* Copyright 2020 InfAI (CC SES) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
Index ¶
- type Controller
- func (this *Controller) CheckAccessToImportType(jwt auth.Token, id string, action model.AuthAction) (err error, errCode int)
- func (this *Controller) CreateImportType(importType model.ImportType, jwt auth.Token) (result model.ImportType, err error, code int)
- func (this *Controller) DeleteImportType(id string, jwt auth.Token) (err error, errCode int)
- func (this *Controller) DeleteImportTypeFromDB(id string) (err error)
- func (this *Controller) DeleteUser(userId string) error
- func (this *Controller) ReadImportType(id string, jwt auth.Token) (result model.ImportType, err error, errCode int)
- func (this *Controller) Republish() error
- func (this *Controller) SetImportType(importType model.ImportType, jwt auth.Token) (err error, errCode int)
- func (this *Controller) SetImportTypeInDB(importType model.ImportType) (err error)
- func (this *Controller) ValidateImportType(jwt auth.Token, importType model.ImportType) (err error, code int)
- type Producer
- type Security
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) CheckAccessToImportType ¶
func (this *Controller) CheckAccessToImportType(jwt auth.Token, id string, action model.AuthAction) (err error, errCode int)
func (*Controller) CreateImportType ¶
func (this *Controller) CreateImportType(importType model.ImportType, jwt auth.Token) (result model.ImportType, err error, code int)
func (*Controller) DeleteImportType ¶
func (*Controller) DeleteImportTypeFromDB ¶
func (this *Controller) DeleteImportTypeFromDB(id string) (err error)
func (*Controller) DeleteUser ¶
func (this *Controller) DeleteUser(userId string) error
func (*Controller) ReadImportType ¶
func (this *Controller) ReadImportType(id string, jwt auth.Token) (result model.ImportType, err error, errCode int)
func (*Controller) Republish ¶
func (this *Controller) Republish() error
func (*Controller) SetImportType ¶
func (this *Controller) SetImportType(importType model.ImportType, jwt auth.Token) (err error, errCode int)
func (*Controller) SetImportTypeInDB ¶
func (this *Controller) SetImportTypeInDB(importType model.ImportType) (err error)
func (*Controller) ValidateImportType ¶
func (this *Controller) ValidateImportType(jwt auth.Token, importType model.ImportType) (err error, code int)
type Security ¶
type Security interface { CheckBool(jwt auth.Token, kind string, id string, action model.AuthAction) (allowed bool, err error) CheckMultiple(jwt auth.Token, kind string, ids []string, action model.AuthAction) (map[string]bool, error) GetAsUser(jwt auth.Token, url string, result *[]interface{}) (err error) }
Click to show internal directories.
Click to hide internal directories.