projectService

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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AiWebsiteInitialSetup

func AiWebsiteInitialSetup(project models.Project, objService objectstoreService.ObjectstoreService, projectStore projectStore.ProjectStore) (err error)

func EcommerceInitialSetup

func EcommerceInitialSetup(project models.Project, dbStore databaseStore.DatabaseStore) (err error)

func EventBridgeRuleExists

func EventBridgeRuleExists(ruleName string) (bool, error)

func EventBridgeScheduleExists

func EventBridgeScheduleExists(scheduleName string) (bool, error)

Types

type BuyDomainDto

type BuyDomainDto struct {
	AccountId  string `json:"account_id" binding:"required"`
	DomainName string `json:"domain_name" binding:"required"`
	ProjectTag string `json:"project_tag" binding:"required"`
}

type ProjectService

type ProjectService interface {
	AddProject(accountId string, project models.Project, uiBuilderService uibuilderService.UIbuilderService) error
	InitialSetup(project models.Project, objService objectstoreService.ObjectstoreService) error
	ListProjects(accountId string) ([]models.Project, error)
	GetProject(accountId string, projectName string) (models.Project, error)
	GetProjectByTag(tag string) (models.Project, error)
	GetProjectDomain(accountId, projectTag string) (models.ProjectDomain, error)
	UpsertProjectDomain(projectDomain models.ProjectDomain) error
	ImportProject(accountId, newProjectName, newProjectDescription string, itemId int, mService marketplaceService.MarketplaceService, dbService databaseService.DatabaseService, cService crudService.CrudService, uiBuilderService uibuilderService.UIbuilderService) error
	CheckCreateProjectAccess(accountId, projectType string) (bool, error)
	CheckCreateDatabaseAccess(accountId string) (bool, error)
	// DeleteProject deletes a project and all its associated resources
	DeleteProject(accountId, projectTag string, ubService uibuilderService.UIbuilderService, dbService databaseService.DatabaseService, cService crudService.CrudService) error

	CheckCreateDomainAccess(accountId, projectType string) (bool, error)
	CheckDomainAvailability(domain string) (string, error)
	GetDomainPaymentLink(accountId, projectTag, domain string) (paymentLink string, err error)
	RegisterDomain(accountId, projectTag string) (awsOperationId string, err error)
	CreateEventBridgeScheduleForDomainRegistration(accountId, projectTag, domainName, operationId string) (err error)
	CreateEventBridgeRuleForCertificateIssuance(accountId, projectTag, certificateArn string) (err error)
	HandleDomainRegistration(accountId, projectTag, operationId, scheduleName string) (err error)
	HandleCertificateIssuance(certificateArnList []string) (err error)
	DeleteProjectDomain(accountId, projectTag string, ubService uibuilderService.UIbuilderService) error
}

Jump to

Keyboard shortcuts

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