settings

package
v0.0.0-...-81a8576 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

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

type DockerRegistry struct {
	RegistryUrl string `json:"registry_url" validate:"required"`
	Username    string `json:"username" validate:"required"`
	Password    string `json:"password" validate:"required"`
}

Jump to

Keyboard shortcuts

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