Documentation ¶
Index ¶
- Constants
- Variables
- type Description
- func (c Description) GetAllApps() []string
- func (c Description) GetApiSchemaAbsPath(serviceName string, schemaName string) string
- func (c Description) GetApiSchemaDirAbsPath(serviceName string) string
- func (c Description) GetApiSchemaDirRelPath(serviceName string) string
- func (c Description) GetApiSchemaGenAbsPath(serviceName string) string
- func (c Description) GetApiServices() []string
- func (c Description) GetAppIncludePath(serviceName string) string
- func (c *Description) GetAppRelPath(serviceName string) string
- func (c *Description) GetAppSubAbsPath(serviceName string, fileName string) string
- func (c *Description) GetAppSubRelPath(serviceName string, fileName string) string
- func (c *Description) GetCacheDirectory() string
- func (c Description) GetCloudSchemaAbsPath(serviceName string) string
- func (c Description) GetCloudSchemaRelPath(serviceName string) string
- func (c *Description) GetCmdAbsPath(serviceName string) string
- func (c *Description) GetCmdRelPath(serviceName string) string
- func (c *Description) GetCoreIncludePath(serviceName string) string
- func (c *Description) GetDevRunnerAbsPath() string
- func (c *Description) GetDevRunnerMainAbsPath() string
- func (c *Description) GetDevRunnerMainRelPath() string
- func (c *Description) GetDevRunnerRelPath() string
- func (c *Description) GetDockerfileAbsPath(serviceName string, lang mifyconfig.ServiceLanguage) (string, error)
- func (c Description) GetFrontendServices() ([]string, error)
- func (c *Description) GetGeneratedAbsPath(serviceName string) string
- func (c *Description) GetGeneratedAppPath(serviceName string) string
- func (c *Description) GetGeneratedAppRelPath(serviceName string) string
- func (c *Description) GetGeneratedRelPath(serviceName string) string
- func (c Description) GetGoConfigsImportPath() string
- func (c *Description) GetGoModAbsPath() string
- func (c *Description) GetGoModRelPath() string
- func (c Description) GetGoModule() string
- func (c Description) GetGoPostgresConfigAbsPath() string
- func (c Description) GetGoPostgresConfigRelPath() string
- func (c *Description) GetGoServiceGeneratedCoreRelPath(serviceName string) string
- func (c *Description) GetGoServicesAbsPath() string
- func (c *Description) GetGoServicesRelPath() string
- func (c *Description) GetGoSumAbsPath() string
- func (c *Description) GetGoSumRelPath() string
- func (c *Description) GetJsComponentsAbsPath(serviceName string) string
- func (c *Description) GetJsComponentsRelPath(serviceName string) string
- func (c *Description) GetJsDockerfileAbsPath(serviceName string) string
- func (c *Description) GetJsDockerfileRelPath(serviceName string) string
- func (c *Description) GetJsGeneratedAbsPath(serviceName string) string
- func (c *Description) GetJsGeneratedRelPath(serviceName string) string
- func (c *Description) GetJsIndexAbsPath(serviceName string) string
- func (c *Description) GetJsIndexRelPath(serviceName string) string
- func (c *Description) GetJsPackageJsonAbsPath() string
- func (c *Description) GetJsPackageJsonRelPath() string
- func (c *Description) GetJsPagesAbsPath(serviceName string) string
- func (c *Description) GetJsPagesRelPath(serviceName string) string
- func (c *Description) GetJsSampleVueAbsPath(serviceName string) string
- func (c *Description) GetJsSampleVueRelPath(serviceName string) string
- func (c *Description) GetJsServiceAbsPath(serviceName string) string
- func (c *Description) GetJsServiceNuxtConfigAbsPath(serviceName string) string
- func (c *Description) GetJsServiceNuxtConfigRelPath(serviceName string) string
- func (c *Description) GetJsServicePackageJsonAbsPath(serviceName string) string
- func (c *Description) GetJsServicePackageJsonRelPath(serviceName string) string
- func (c *Description) GetJsServiceRelPath(serviceName string) string
- func (c *Description) GetJsServiceYarnLockAbsPath(serviceName string) string
- func (c *Description) GetJsServiceYarnLockRelPath(serviceName string) string
- func (c *Description) GetJsServicesAbsPath() string
- func (c *Description) GetJsServicesPath() string
- func (c *Description) GetJsServicesRelPath() string
- func (c *Description) GetLogsDirectory() string
- func (c Description) GetMifySchemaAbsPath(serviceName string) string
- func (c Description) GetMifySchemaRelPath(serviceName string) string
- func (c *Description) GetMigrationsDirectory(databaseName string, lang mifyconfig.ServiceLanguage) (string, error)
- func (c *Description) GetPythonAppRelPath(serviceName string) string
- func (c *Description) GetPythonAppSubAbsPath(serviceName string, fileName string) string
- func (c *Description) GetPythonAppSubRelPath(serviceName string, fileName string) string
- func (c *Description) GetPythonGeneratedAbsPath(serviceName string) string
- func (c *Description) GetPythonGeneratedAppPath(serviceName string) string
- func (c *Description) GetPythonGeneratedAppRelPath(serviceName string) string
- func (c *Description) GetPythonGeneratedRelPath(serviceName string) string
- func (c *Description) GetPythonServiceGeneratedCoreRelPath(serviceName string) string
- func (c *Description) GetPythonServiceGeneratedOpenAPIRelPath(serviceName string) string
- func (c *Description) GetPythonServiceRelPath(serviceName string) string
- func (c *Description) GetPythonServiceSubAbsPath(serviceName string, filename string) string
- func (c *Description) GetPythonServicesAbsPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedAbsPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedConfigsAbsPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedConfigsRelPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedLogsAbsPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedLogsRelPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedMetricsAbsPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedMetricsRelPath() string
- func (c *Description) GetPythonServicesLibrariesGeneratedRelPath() string
- func (c *Description) GetPythonServicesRelPath() string
- func (c *Description) GetRepository() string
- func (c Description) GetSchemasAbsPath(serviceName string) string
- func (c Description) GetSchemasRelPath(serviceName string) string
- func (c Description) GetSchemasRootAbsPath() string
- func (c Description) GetSchemasRootRelPath() string
- func (c *Description) GetServiceCacheDirectory(serviceName string) string
- func (c *Description) GetServiceGeneratedAPIRelPath(serviceName string, language mifyconfig.ServiceLanguage) (string, error)
- func (description Description) GetServiceList() ([]string, error)
- func (c *Description) GetServicesAbsPath(lang mifyconfig.ServiceLanguage) (string, error)
- func (c *Description) HasApi(serviceName string) bool
- func (c Description) HasService(serviceName string) bool
- type GoService
Constants ¶
View Source
const ( ApiGatewayName = "api-gateway" MainApiSchemaName = "api.yaml" MifySchemaName = "service.mify.yaml" CloudSchemaName = "cloud.mify.yaml" GoServicesDirName = "go-services" DevRunnerName = "dev-runner" TmpSubdir = "services" )
Variables ¶
View Source
var ( ErrUnsupportedLanguage = errors.New("unknown or unsupported language") ErrNoSuchService = errors.New("no such service") )
Functions ¶
This section is empty.
Types ¶
type Description ¶
type Description struct { Name string BasePath string GoRoot string // Path to go-services Config mifyconfig.WorkspaceConfig TplHeader string TplHeaderPy string }
func InitDescription ¶
func InitDescription(workspacePath string) (Description, error)
func (Description) GetAllApps ¶
func (c Description) GetAllApps() []string
func (Description) GetApiSchemaAbsPath ¶
func (c Description) GetApiSchemaAbsPath(serviceName string, schemaName string) string
func (Description) GetApiSchemaDirAbsPath ¶
func (c Description) GetApiSchemaDirAbsPath(serviceName string) string
func (Description) GetApiSchemaDirRelPath ¶
func (c Description) GetApiSchemaDirRelPath(serviceName string) string
func (Description) GetApiSchemaGenAbsPath ¶
func (c Description) GetApiSchemaGenAbsPath(serviceName string) string
Abs path to api_generated.yaml
func (Description) GetApiServices ¶
func (c Description) GetApiServices() []string
func (Description) GetAppIncludePath ¶
func (c Description) GetAppIncludePath(serviceName string) string
Path to include 'app' package
func (*Description) GetAppRelPath ¶
func (c *Description) GetAppRelPath(serviceName string) string
func (*Description) GetAppSubAbsPath ¶
func (c *Description) GetAppSubAbsPath(serviceName string, fileName string) string
func (*Description) GetAppSubRelPath ¶
func (c *Description) GetAppSubRelPath(serviceName string, fileName string) string
User app
func (*Description) GetCacheDirectory ¶
func (c *Description) GetCacheDirectory() string
func (Description) GetCloudSchemaAbsPath ¶
func (c Description) GetCloudSchemaAbsPath(serviceName string) string
func (Description) GetCloudSchemaRelPath ¶
func (c Description) GetCloudSchemaRelPath(serviceName string) string
func (*Description) GetCmdAbsPath ¶
func (c *Description) GetCmdAbsPath(serviceName string) string
func (*Description) GetCmdRelPath ¶
func (c *Description) GetCmdRelPath(serviceName string) string
func (*Description) GetCoreIncludePath ¶
func (c *Description) GetCoreIncludePath(serviceName string) string
Path to include 'core' package
func (*Description) GetDevRunnerAbsPath ¶
func (c *Description) GetDevRunnerAbsPath() string
func (*Description) GetDevRunnerMainAbsPath ¶
func (c *Description) GetDevRunnerMainAbsPath() string
func (*Description) GetDevRunnerMainRelPath ¶
func (c *Description) GetDevRunnerMainRelPath() string
func (*Description) GetDevRunnerRelPath ¶
func (c *Description) GetDevRunnerRelPath() string
func (*Description) GetDockerfileAbsPath ¶
func (c *Description) GetDockerfileAbsPath(serviceName string, lang mifyconfig.ServiceLanguage) (string, error)
func (Description) GetFrontendServices ¶
func (c Description) GetFrontendServices() ([]string, error)
func (*Description) GetGeneratedAbsPath ¶
func (c *Description) GetGeneratedAbsPath(serviceName string) string
func (*Description) GetGeneratedAppPath ¶
func (c *Description) GetGeneratedAppPath(serviceName string) string
func (*Description) GetGeneratedAppRelPath ¶
func (c *Description) GetGeneratedAppRelPath(serviceName string) string
func (*Description) GetGeneratedRelPath ¶
func (c *Description) GetGeneratedRelPath(serviceName string) string
func (Description) GetGoConfigsImportPath ¶
func (c Description) GetGoConfigsImportPath() string
func (*Description) GetGoModAbsPath ¶
func (c *Description) GetGoModAbsPath() string
func (*Description) GetGoModRelPath ¶
func (c *Description) GetGoModRelPath() string
func (Description) GetGoModule ¶
func (c Description) GetGoModule() string
func (Description) GetGoPostgresConfigAbsPath ¶
func (c Description) GetGoPostgresConfigAbsPath() string
func (Description) GetGoPostgresConfigRelPath ¶
func (c Description) GetGoPostgresConfigRelPath() string
func (*Description) GetGoServiceGeneratedCoreRelPath ¶
func (c *Description) GetGoServiceGeneratedCoreRelPath(serviceName string) string
func (*Description) GetGoServicesAbsPath ¶
func (c *Description) GetGoServicesAbsPath() string
func (*Description) GetGoServicesRelPath ¶
func (c *Description) GetGoServicesRelPath() string
func (*Description) GetGoSumAbsPath ¶
func (c *Description) GetGoSumAbsPath() string
func (*Description) GetGoSumRelPath ¶
func (c *Description) GetGoSumRelPath() string
func (*Description) GetJsComponentsAbsPath ¶
func (c *Description) GetJsComponentsAbsPath(serviceName string) string
func (*Description) GetJsComponentsRelPath ¶
func (c *Description) GetJsComponentsRelPath(serviceName string) string
func (*Description) GetJsDockerfileAbsPath ¶
func (c *Description) GetJsDockerfileAbsPath(serviceName string) string
func (*Description) GetJsDockerfileRelPath ¶
func (c *Description) GetJsDockerfileRelPath(serviceName string) string
func (*Description) GetJsGeneratedAbsPath ¶
func (c *Description) GetJsGeneratedAbsPath(serviceName string) string
func (*Description) GetJsGeneratedRelPath ¶
func (c *Description) GetJsGeneratedRelPath(serviceName string) string
func (*Description) GetJsIndexAbsPath ¶
func (c *Description) GetJsIndexAbsPath(serviceName string) string
func (*Description) GetJsIndexRelPath ¶
func (c *Description) GetJsIndexRelPath(serviceName string) string
func (*Description) GetJsPackageJsonAbsPath ¶
func (c *Description) GetJsPackageJsonAbsPath() string
func (*Description) GetJsPackageJsonRelPath ¶
func (c *Description) GetJsPackageJsonRelPath() string
func (*Description) GetJsPagesAbsPath ¶
func (c *Description) GetJsPagesAbsPath(serviceName string) string
func (*Description) GetJsPagesRelPath ¶
func (c *Description) GetJsPagesRelPath(serviceName string) string
func (*Description) GetJsSampleVueAbsPath ¶
func (c *Description) GetJsSampleVueAbsPath(serviceName string) string
func (*Description) GetJsSampleVueRelPath ¶
func (c *Description) GetJsSampleVueRelPath(serviceName string) string
func (*Description) GetJsServiceAbsPath ¶
func (c *Description) GetJsServiceAbsPath(serviceName string) string
func (*Description) GetJsServiceNuxtConfigAbsPath ¶
func (c *Description) GetJsServiceNuxtConfigAbsPath(serviceName string) string
func (*Description) GetJsServiceNuxtConfigRelPath ¶
func (c *Description) GetJsServiceNuxtConfigRelPath(serviceName string) string
func (*Description) GetJsServicePackageJsonAbsPath ¶
func (c *Description) GetJsServicePackageJsonAbsPath(serviceName string) string
func (*Description) GetJsServicePackageJsonRelPath ¶
func (c *Description) GetJsServicePackageJsonRelPath(serviceName string) string
func (*Description) GetJsServiceRelPath ¶
func (c *Description) GetJsServiceRelPath(serviceName string) string
func (*Description) GetJsServiceYarnLockAbsPath ¶
func (c *Description) GetJsServiceYarnLockAbsPath(serviceName string) string
func (*Description) GetJsServiceYarnLockRelPath ¶
func (c *Description) GetJsServiceYarnLockRelPath(serviceName string) string
func (*Description) GetJsServicesAbsPath ¶
func (c *Description) GetJsServicesAbsPath() string
func (*Description) GetJsServicesPath ¶
func (c *Description) GetJsServicesPath() string
func (*Description) GetJsServicesRelPath ¶
func (c *Description) GetJsServicesRelPath() string
func (*Description) GetLogsDirectory ¶
func (c *Description) GetLogsDirectory() string
func (Description) GetMifySchemaAbsPath ¶
func (c Description) GetMifySchemaAbsPath(serviceName string) string
func (Description) GetMifySchemaRelPath ¶
func (c Description) GetMifySchemaRelPath(serviceName string) string
func (*Description) GetMigrationsDirectory ¶
func (c *Description) GetMigrationsDirectory(databaseName string, lang mifyconfig.ServiceLanguage) (string, error)
func (*Description) GetPythonAppRelPath ¶
func (c *Description) GetPythonAppRelPath(serviceName string) string
func (*Description) GetPythonAppSubAbsPath ¶
func (c *Description) GetPythonAppSubAbsPath(serviceName string, fileName string) string
func (*Description) GetPythonAppSubRelPath ¶
func (c *Description) GetPythonAppSubRelPath(serviceName string, fileName string) string
func (*Description) GetPythonGeneratedAbsPath ¶
func (c *Description) GetPythonGeneratedAbsPath(serviceName string) string
func (*Description) GetPythonGeneratedAppPath ¶
func (c *Description) GetPythonGeneratedAppPath(serviceName string) string
func (*Description) GetPythonGeneratedAppRelPath ¶
func (c *Description) GetPythonGeneratedAppRelPath(serviceName string) string
func (*Description) GetPythonGeneratedRelPath ¶
func (c *Description) GetPythonGeneratedRelPath(serviceName string) string
func (*Description) GetPythonServiceGeneratedCoreRelPath ¶
func (c *Description) GetPythonServiceGeneratedCoreRelPath(serviceName string) string
func (*Description) GetPythonServiceGeneratedOpenAPIRelPath ¶
func (c *Description) GetPythonServiceGeneratedOpenAPIRelPath(serviceName string) string
func (*Description) GetPythonServiceRelPath ¶
func (c *Description) GetPythonServiceRelPath(serviceName string) string
func (*Description) GetPythonServiceSubAbsPath ¶
func (c *Description) GetPythonServiceSubAbsPath(serviceName string, filename string) string
func (*Description) GetPythonServicesAbsPath ¶
func (c *Description) GetPythonServicesAbsPath() string
func (*Description) GetPythonServicesLibrariesGeneratedAbsPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedAbsPath() string
func (*Description) GetPythonServicesLibrariesGeneratedConfigsAbsPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedConfigsAbsPath() string
func (*Description) GetPythonServicesLibrariesGeneratedConfigsRelPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedConfigsRelPath() string
func (*Description) GetPythonServicesLibrariesGeneratedLogsAbsPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedLogsAbsPath() string
func (*Description) GetPythonServicesLibrariesGeneratedLogsRelPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedLogsRelPath() string
func (*Description) GetPythonServicesLibrariesGeneratedMetricsAbsPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedMetricsAbsPath() string
func (*Description) GetPythonServicesLibrariesGeneratedMetricsRelPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedMetricsRelPath() string
func (*Description) GetPythonServicesLibrariesGeneratedRelPath ¶
func (c *Description) GetPythonServicesLibrariesGeneratedRelPath() string
func (*Description) GetPythonServicesRelPath ¶
func (c *Description) GetPythonServicesRelPath() string
func (*Description) GetRepository ¶
func (c *Description) GetRepository() string
func (Description) GetSchemasAbsPath ¶
func (c Description) GetSchemasAbsPath(serviceName string) string
func (Description) GetSchemasRelPath ¶
func (c Description) GetSchemasRelPath(serviceName string) string
func (Description) GetSchemasRootAbsPath ¶
func (c Description) GetSchemasRootAbsPath() string
func (Description) GetSchemasRootRelPath ¶
func (c Description) GetSchemasRootRelPath() string
func (*Description) GetServiceCacheDirectory ¶
func (c *Description) GetServiceCacheDirectory(serviceName string) string
func (*Description) GetServiceGeneratedAPIRelPath ¶
func (c *Description) GetServiceGeneratedAPIRelPath(serviceName string, language mifyconfig.ServiceLanguage) (string, error)
func (Description) GetServiceList ¶
func (description Description) GetServiceList() ([]string, error)
func (*Description) GetServicesAbsPath ¶
func (c *Description) GetServicesAbsPath(lang mifyconfig.ServiceLanguage) (string, error)
func (*Description) HasApi ¶
func (c *Description) HasApi(serviceName string) bool
func (Description) HasService ¶
func (c Description) HasService(serviceName string) bool
Click to show internal directories.
Click to hide internal directories.