Documentation ¶
Index ¶
Constants ¶
View Source
const DOCKER_REGISTRY = "docker_registry"
Variables ¶
This section is empty.
Functions ¶
func GenerateRoutes ¶
func GenerateRoutes(relativePath string, r *gin.Engine, appHandler *ApiHandler)
Types ¶
type ApiHandler ¶
type ApiHandler struct { MongoDB *database.MongoDB Config *apiConfig.Config // contains filtered or unexported fields }
func NewApiHandler ¶
func NewApiHandler(config *apiConfig.Config, mongo *database.MongoDB, keyStorage variables.SecretKeyStorage) *ApiHandler
func (*ApiHandler) CreateIntegration ¶
func (a *ApiHandler) CreateIntegration(c *gin.Context)
func (*ApiHandler) DeleteIntegration ¶
func (a *ApiHandler) DeleteIntegration(c *gin.Context)
func (*ApiHandler) ListIntegrations ¶
func (a *ApiHandler) ListIntegrations(c *gin.Context)
type CreateIntegrationRequest ¶
type CreateIntegrationRequest struct { Name string `json:"name" validate:"required"` IntegrationType string `json:"integration_type" validate:"required"` // Integration value could be a dictionary or a string depending on the integration type IntegrationValue interface{} `json:"integration_value" validate:"required"` }
type DockerRegistry ¶
Click to show internal directories.
Click to hide internal directories.