config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigDir      = ".upify"
	ConfigFileName = "config.yaml"
)

Variables

This section is empty.

Functions

func ConfigExists

func ConfigExists() bool

func GetConfigFilePath

func GetConfigFilePath() string

func SaveConfig

func SaveConfig(cfg *Config) error

Types

type AWSLambdaConfig

type AWSLambdaConfig struct {
	Region   string `yaml:"region"`
	RoleName string `yaml:"role_name"`
	Runtime  string `yaml:"runtime"`
	Memory   int    `yaml:"memory,omitempty"`
}

type Config

type Config struct {
	Name           string              `yaml:"name"`
	Framework      framework.Framework `yaml:"framework,omitempty"`
	Language       lang.Language       `yaml:"language"`
	PackageManager lang.PackageManager `yaml:"package_manager"`
	Entrypoint     string              `yaml:"entrypoint,omitempty"`
	AppVar         string              `yaml:"app_var,omitempty"`
	AWSLambda      *AWSLambdaConfig    `yaml:"aws-lambda,omitempty"`
	GCPCloudRun    *GCPCloudRunConfig  `yaml:"gcp-cloudrun,omitempty"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type GCPCloudRunConfig

type GCPCloudRunConfig struct {
	Region    string `yaml:"region"`
	ProjectId string `yaml:"project_id"`
	Runtime   string `yaml:"runtime"`
	Memory    int    `yaml:"memory,omitempty"`
}

Jump to

Keyboard shortcuts

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