Documentation ¶
Index ¶
- Variables
- func Create(templateName string, home string) error
- func Discover() (string, error)
- func LoadPersonalStage(cfgPath string) string
- func ResolvePlatformDir(cfgPath string) string
- func ResolveWorkingDir(cfgPath string) string
- func SetPersonalStage(cfgPath string, stage string) error
- type App
- type CompleteEvent
- type ConcurrentUpdateEvent
- type Error
- type ImportOptions
- type Links
- type PackageJson
- type Project
- func (p *Project) Add(pkg string) error
- func (p *Project) App() *App
- func (p *Project) Backend() provider.Home
- func (p *Project) CheckPlatform(version string) bool
- func (p *Project) Cleanup() error
- func (p *Project) CopyPlatform(version string) error
- func (p *Project) Install() error
- func (proj *Project) LoadHome() error
- func (p *Project) NeedsInstall() bool
- func (p *Project) PathConfig() string
- func (p *Project) PathPlatformDir() string
- func (p *Project) PathRoot() string
- func (p *Project) PathWorkingDir() string
- func (p *Project) Version() string
- type ProjectConfig
- type Receiver
- type Receivers
- type StackCommandEvent
- type StackEvent
- type StackEventStream
- type StackInput
- type StdOutEvent
- type Warp
- type Warps
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigExists = fmt.Errorf("sst.config.ts already exists")
View Source
var ErrInvalidStageName = fmt.Errorf("invalid stage name")
View Source
var ErrStackRunFailed = fmt.Errorf("stack run had errors")
View Source
var ErrStageNotFound = fmt.Errorf("stage not found")
View Source
var ErrV2Config = fmt.Errorf("sstv2 config detected")
View Source
var StageRegex = regexp.MustCompile(`^[a-zA-Z0-9-]+$`)
Functions ¶
func LoadPersonalStage ¶
func ResolvePlatformDir ¶
func ResolveWorkingDir ¶
func SetPersonalStage ¶
Types ¶
type App ¶
type App struct { Name string `json:"name"` Stage string `json:"stage"` Removal string `json:"removal"` Providers map[string]interface{} `json:"providers"` Home string `json:"home"` // Deprecated: Backend is now Home Backend string `json:"backend"` // Deprecated: RemovalPolicy is now Removal RemovalPolicy string `json:"removalPolicy"` }
type CompleteEvent ¶
type ConcurrentUpdateEvent ¶
type ConcurrentUpdateEvent struct{}
type PackageJson ¶
type Project ¶
type Project struct { Stack *stack // contains filtered or unexported fields }
func New ¶
func New(input *ProjectConfig) (*Project, error)
func (*Project) CheckPlatform ¶
func (*Project) CopyPlatform ¶
func (*Project) NeedsInstall ¶
func (*Project) PathConfig ¶
func (*Project) PathPlatformDir ¶
func (*Project) PathWorkingDir ¶
type ProjectConfig ¶
type StackCommandEvent ¶
type StackCommandEvent struct {
Command string
}
type StackEvent ¶
type StackEvent struct { events.EngineEvent StdOutEvent *StdOutEvent ConcurrentUpdateEvent *ConcurrentUpdateEvent CompleteEvent *CompleteEvent StackCommandEvent *StackCommandEvent }
type StackEventStream ¶
type StackEventStream = chan StackEvent
type StackInput ¶
type StackInput struct { OnEvent func(event *StackEvent) OnFiles func(files []string) Command string Dev bool }
type StdOutEvent ¶
type StdOutEvent struct {
Text string
}
type Warp ¶
type Warp struct { FunctionID string `json:"functionID"` Runtime string `json:"runtime"` Handler string `json:"handler"` Bundle string `json:"bundle"` Properties json.RawMessage `json:"properties"` Links []string `json:"links"` CopyFiles []struct { From string `json:"from"` To string `json:"to"` } `json:"copyFiles"` Environment map[string]string `json:"environment"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.