apiToken

package
v0.6.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ApiTokenRouter interface {
	InitApiTokenRouter(configRouter *mux.Router)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL