project

package
v0.0.0-...-27c9e6d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package namesgenerator generates random names.

This package is officially "frozen" - no new additions will be accepted.

For a long time, this package provided a lot of joy within the project, but at some point the conflicts of opinion became greater than the added joy.

At some future time, this may be replaced with something that sparks less controversy, but for now it will remain as-is.

See also https://github.com/moby/moby/pull/43210#issuecomment-1029934277

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndActivatePipeline

func CreateAndActivatePipeline(project models.Project, dto AddPipelineDto, cService crudService.CrudService) (pipelineId string, err error)

func EcommerceDependentSetup

func EcommerceDependentSetup(authCookie string, project models.Project, integrationName, integrationType string, dbService databaseService.DatabaseService, cService crudService.CrudService) (err error)

func GetRandomName

func GetRandomName(retry int) string

GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`

func RandStringRunes

func RandStringRunes(n int) string

Types

type AIWebsiteConfigurationValidator

type AIWebsiteConfigurationValidator struct {
	// contains filtered or unexported fields
}

AIWebsiteConfigurationValidator defines a custom validator

func (*AIWebsiteConfigurationValidator) Validate

func (cv *AIWebsiteConfigurationValidator) Validate(obj interface{}) error

Validate validates the content field to ensure it contains a string and a number

type AddPipelineDto

type AddPipelineDto struct {
	Name          string          `json:"name"`
	IsTemplate    bool            `json:"is_template"`
	IsInteraction bool            `json:"is_interaction"`
	ProjectName   string          `json:"project_name"`
	Manifest      models.Manifest `json:"manifest"`
}

type DependentSetupRequest

type DependentSetupRequest struct {
	ProjectName        string            `json:"project_name"`
	IntegrationSecrets map[string]string `json:"integration_secrets"`
	IntegrationType    string            `json:"integration_type"`
}

type ProjectController

type ProjectController struct {
	Service projectService.ProjectService
}

func (*ProjectController) DeleteProject

func (*ProjectController) DeleteProjectDomain

func (pc *ProjectController) DeleteProjectDomain(ubService uibuilderService.UIbuilderService) gin.HandlerFunc

func (*ProjectController) GetProject

func (pc *ProjectController) GetProject() gin.HandlerFunc

func (*ProjectController) GetProjectDomain

func (pc *ProjectController) GetProjectDomain() gin.HandlerFunc

func (*ProjectController) HandleCertificateIssuance

func (pc *ProjectController) HandleCertificateIssuance() gin.HandlerFunc

func (*ProjectController) HandleDomainRegistration

func (pc *ProjectController) HandleDomainRegistration() gin.HandlerFunc

func (*ProjectController) ImportProject

func (*ProjectController) ListProjects

func (pc *ProjectController) ListProjects() gin.HandlerFunc

func (*ProjectController) ProjectDependentSetup

func (*ProjectController) SetProjectExternalDomain

func (pc *ProjectController) SetProjectExternalDomain() gin.HandlerFunc
func (pc *ProjectController) UploadLogo() gin.HandlerFunc

func (*ProjectController) VerifyCertificate

func (pc *ProjectController) VerifyCertificate() gin.HandlerFunc

type ProjectRequest

type ProjectRequest struct {
	ItemId                 int                               `json:"itemId"`
	Name                   string                            `db:"name" json:"name" binding:"regexp=^[a-z][a-z0-9_]*$,min=2,max=20"`
	Description            string                            `db:"description" json:"description"`
	Tag                    string                            `db:"tag" json:"tag"`
	DefaultUserGroup       string                            `json:"default_user_group"`
	Type                   string                            `db:"type" json:"type" binding:"oneof='' 'web_application' 'landing_page' 'ecommerce' 'website' 'ai_website'"`
	AIWebsiteConfiguration models.AIWebsiteConfigurationType `db:"ai_website_configuration" json:"ai_website_configuration,omitempty" binding:"dive"`
	Theme                  string                            `db:"theme" json:"theme"`
	HasDatabase            bool                              `json:"hasDatabase"`
}

Jump to

Keyboard shortcuts

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