Documentation
¶
Index ¶
- Variables
- type ApiTokenRestHandler
- type ApiTokenRestHandlerImpl
- func (handler ApiTokenRestHandlerImpl) CheckAuthorizationForWebhook(token string, projectObject string, envObject string) bool
- func (impl ApiTokenRestHandlerImpl) CreateApiToken(w http.ResponseWriter, r *http.Request)
- func (impl ApiTokenRestHandlerImpl) DeleteApiToken(w http.ResponseWriter, r *http.Request)
- func (impl ApiTokenRestHandlerImpl) GetAllApiTokens(w http.ResponseWriter, r *http.Request)
- func (impl ApiTokenRestHandlerImpl) GetAllApiTokensForWebhook(w http.ResponseWriter, r *http.Request)
- func (impl ApiTokenRestHandlerImpl) UpdateApiToken(w http.ResponseWriter, r *http.Request)
- type ApiTokenRouter
- type ApiTokenRouterImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiTokenSecretWireSet = wire.NewSet( apiTokenAuth.InitApiTokenSecretStore, apiToken.NewApiTokenSecretServiceImpl, wire.Bind(new(apiToken.ApiTokenSecretService), new(*apiToken.ApiTokenSecretServiceImpl)), )
View Source
var ApiTokenWireSet = wire.NewSet( apiToken.NewApiTokenRepositoryImpl, wire.Bind(new(apiToken.ApiTokenRepository), new(*apiToken.ApiTokenRepositoryImpl)), apiToken.NewApiTokenServiceImpl, wire.Bind(new(apiToken.ApiTokenService), new(*apiToken.ApiTokenServiceImpl)), NewApiTokenRestHandlerImpl, wire.Bind(new(ApiTokenRestHandler), new(*ApiTokenRestHandlerImpl)), NewApiTokenRouterImpl, wire.Bind(new(ApiTokenRouter), new(*ApiTokenRouterImpl)), )
Functions ¶
This section is empty.
Types ¶
type ApiTokenRestHandler ¶
type ApiTokenRestHandler interface { GetAllApiTokens(w http.ResponseWriter, r *http.Request) CreateApiToken(w http.ResponseWriter, r *http.Request) UpdateApiToken(w http.ResponseWriter, r *http.Request) DeleteApiToken(w http.ResponseWriter, r *http.Request) GetAllApiTokensForWebhook(w http.ResponseWriter, r *http.Request) }
type ApiTokenRestHandlerImpl ¶
type ApiTokenRestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewApiTokenRestHandlerImpl ¶
func NewApiTokenRestHandlerImpl(logger *zap.SugaredLogger, apiTokenService apiToken.ApiTokenService, userService user.UserService, enforcer casbin.Enforcer, validator *validator.Validate) *ApiTokenRestHandlerImpl
func (ApiTokenRestHandlerImpl) CheckAuthorizationForWebhook ¶ added in v0.6.9
func (handler ApiTokenRestHandlerImpl) CheckAuthorizationForWebhook(token string, projectObject string, envObject string) bool
func (ApiTokenRestHandlerImpl) CreateApiToken ¶
func (impl ApiTokenRestHandlerImpl) CreateApiToken(w http.ResponseWriter, r *http.Request)
func (ApiTokenRestHandlerImpl) DeleteApiToken ¶
func (impl ApiTokenRestHandlerImpl) DeleteApiToken(w http.ResponseWriter, r *http.Request)
func (ApiTokenRestHandlerImpl) GetAllApiTokens ¶
func (impl ApiTokenRestHandlerImpl) GetAllApiTokens(w http.ResponseWriter, r *http.Request)
func (ApiTokenRestHandlerImpl) GetAllApiTokensForWebhook ¶ added in v0.6.9
func (impl ApiTokenRestHandlerImpl) GetAllApiTokensForWebhook(w http.ResponseWriter, r *http.Request)
func (ApiTokenRestHandlerImpl) UpdateApiToken ¶
func (impl ApiTokenRestHandlerImpl) UpdateApiToken(w http.ResponseWriter, r *http.Request)
type ApiTokenRouter ¶
type ApiTokenRouterImpl ¶
type ApiTokenRouterImpl struct {
// contains filtered or unexported fields
}
func NewApiTokenRouterImpl ¶
func NewApiTokenRouterImpl(apiTokenRestHandler ApiTokenRestHandler) *ApiTokenRouterImpl
func (ApiTokenRouterImpl) InitApiTokenRouter ¶
func (impl ApiTokenRouterImpl) InitApiTokenRouter(configRouter *mux.Router)
Click to show internal directories.
Click to hide internal directories.