apiToken

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 14 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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