Documentation ¶
Index ¶
- Constants
- Variables
- func BuildAPIRoutes(ctx *pulumi.Context, projectName, environment string, ...) error
- func CreateAPIRoute(name, route, pathToFiles string, corsEnabled bool) auto_pulumi.APIRoute
- func CreateNewController(name string, methods []string, language string) (string, error)
- func CreateProjectStructure(name, description string) error
- func RunTypeScriptRoutesLocally(routes []auto_pulumi.APIRoute, port int) error
- type DotNetControllerFileArgs
- type GoControllerFileArgs
- type PackageJsonArgs
- type TypeScriptControllerFileArgs
Constants ¶
View Source
const ( TypeScriptControllerLanguage = "typescript" GoControllerLanguage = "go" DotNetControllerLanguage = "dotnet" )
Variables ¶
View Source
var ( // Config ApplicationConfigPath = "config" // Directories ApplicationFolder = "app" ControllersFolder = "controllers" // File template paths FileTemplatePath = "/pkg/application/file_templates" LocalPackagePath = "/lib" // TypeScript TypeScriptFileTemplatesDirectoryName = "typescript" TypeScriptTSConfigFileName = "tsconfig.json" TypeScriptTSConfigTemplateName = "tsconfig_json.tmpl" TypeScriptPackageJSONFileName = "package.json" TypeScriptPackageJSONTemplateName = "package_json.tmpl" TypesScriptUtilsDirectory = "stevie-utils" // Go GoFileTemplatesDirectoryName = "go" GoGoModName = "go.mod" GoGoSumName = "go.sum" // Dotnet DotNetFileTemplateDirectoryName = "dotnet" )
Functions ¶
func BuildAPIRoutes ¶
func BuildAPIRoutes(ctx *pulumi.Context, projectName, environment string, routes []auto_pulumi.APIRoute) error
BuildAPIRoutes builds the API Routes.
func CreateAPIRoute ¶
func CreateAPIRoute(name, route, pathToFiles string, corsEnabled bool) auto_pulumi.APIRoute
CreateAPIRoute creates an API Route.
func CreateNewController ¶
CreateNewController creates a new controller.
func CreateProjectStructure ¶
func RunTypeScriptRoutesLocally ¶
func RunTypeScriptRoutesLocally(routes []auto_pulumi.APIRoute, port int) error
RunTypeScriptRoutesLocally runs the API routes locally.
Types ¶
type GoControllerFileArgs ¶
type PackageJsonArgs ¶
PackageJsonArgs define the args need to generate a package.json file.
Click to show internal directories.
Click to hide internal directories.