config

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasConfigFile added in v0.0.2

func HasConfigFile(directory string) (bool, error)

func WriteConfig

func WriteConfig(projectPath string, config *Config) error

Types

type Config added in v0.0.2

type Config struct {
	ProjectName string `json:"name"`
	Config      struct {
		Runtime        string `json:"runtime"`
		PythonManager  string `json:"python_manager,omitempty"`
		CloudProvider  string `json:"cloud_provider"`
		DeploymentType string `json:"deployment_type"`
		EntryFunction  string `json:"entry_function"`
		AWS            struct {
			RestApiResourceID string `json:"rest_api_resource_id,omitempty"`
		} `json:"deploy_settings,omitempty"`
	} `json:"config"`
	Template []struct {
		Prompt string `json:"prompt"`
		Type   string `json:"type"`
		Key    string `json:"key"`
		Value  string `json:"value"`
		Style  string `json:"format,omitempty"`
	} `json:"template,omitempty"`
}

func ReadConfig

func ReadConfig(templatePath string) (*Config, error)

Jump to

Keyboard shortcuts

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