Documentation ¶
Index ¶
- Variables
- func Create(templateName string, home string) ([]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 AwsReceiver
- type BuildFailedEvent
- type CloudflareReceiver
- type CompleteEvent
- type ConcurrentUpdateEvent
- type Dev
- type Devs
- type Error
- type ImportDiff
- type ImportOptions
- type Links
- type PackageJson
- type PreviewInput
- type Project
- func (p *Project) Add(pkg string) error
- func (p Project) App() *App
- func (p Project) Backend() provider.Home
- func (s *Project) Cancel() error
- func (p *Project) CheckPlatform(version string) bool
- func (p *Project) Cleanup() error
- func (p *Project) CopyPlatform(version string) error
- func (p Project) Env() map[string]string
- func (p *Project) EnvFor(ctx context.Context, complete *CompleteEvent, name string) (map[string]string, error)
- func (p *Project) GetCompleted(ctx context.Context) (*CompleteEvent, error)
- func (p *Project) Install() error
- func (proj *Project) LoadHome() error
- func (s *Project) Lock(updateID string, command string) error
- func (p *Project) NeedsInstall() bool
- func (p Project) PathConfig() string
- func (p *Project) PathLog(name string) string
- func (p Project) PathPlatformDir() string
- func (p Project) PathRoot() string
- func (p Project) PathWorkingDir() string
- func (p *Project) Provider(name string) (provider.Provider, bool)
- func (s *Project) PullState() (string, error)
- func (s *Project) PushState(version string) error
- func (p *Project) Run(ctx context.Context, input *StackInput) error
- func (s *Project) Unlock() error
- func (p Project) Version() string
- type ProjectConfig
- type ProviderDownloadEvent
- type ProviderLock
- type ProviderLockEntry
- type Receiver
- type Receivers
- type StackCommandEvent
- type StackInput
- type Warp
- type Warps
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBuildFailed = fmt.Errorf("")
View Source
var ErrConfigExists = fmt.Errorf("sst.config.ts already exists")
View Source
var ErrInvalidAppName = fmt.Errorf("invalid app name")
View Source
var ErrInvalidStageName = fmt.Errorf("invalid stage name")
View Source
var ErrPackageJsonInvalid = fmt.Errorf("package.json is invalid")
View Source
var ErrPassphraseInvalid = fmt.Errorf("passphrase invalid")
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 ErrVersionInvalid = fmt.Errorf("invalid version")
View Source
var ErrVersionMismatch = fmt.Errorf("")
View Source
var InvalidAppRegex = regexp.MustCompile(`[^a-zA-Z0-9-]`)
View Source
var InvalidStageRegex = 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"` Version string `json:"version"` // Deprecated: Backend is now Home Backend string `json:"backend"` // Deprecated: RemovalPolicy is now Removal RemovalPolicy string `json:"removalPolicy"` }
type AwsReceiver ¶ added in v0.0.319
type AwsReceiver struct {
Role string `json:"role"`
}
type BuildFailedEvent ¶ added in v0.0.293
type BuildFailedEvent struct {
Error string
}
type CloudflareReceiver ¶ added in v0.0.319
type CloudflareReceiver struct { }
type CompleteEvent ¶
type ConcurrentUpdateEvent ¶
type ConcurrentUpdateEvent struct{}
type ImportDiff ¶ added in v0.1.3
type PackageJson ¶
type PreviewInput ¶ added in v0.1.15
type PreviewInput struct {
Out chan interface{}
}
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func New ¶
func New(input *ProjectConfig) (*Project, error)
func (*Project) CheckPlatform ¶
func (*Project) CopyPlatform ¶
func (*Project) GetCompleted ¶ added in v0.1.71
func (p *Project) GetCompleted(ctx context.Context) (*CompleteEvent, error)
func (*Project) NeedsInstall ¶
func (Project) PathConfig ¶
func (Project) PathPlatformDir ¶
func (Project) PathWorkingDir ¶
type ProjectConfig ¶
type ProviderDownloadEvent ¶ added in v0.1.48
type ProviderLock ¶ added in v0.0.348
type ProviderLock = []*ProviderLockEntry
type ProviderLockEntry ¶ added in v0.0.348
type Receiver ¶
type Receiver struct { Name string `json:"name"` Directory string `json:"directory"` Links []string `json:"links"` Environment map[string]string `json:"environment"` AwsRole string `json:"awsRole"` Cloudflare *CloudflareReceiver `json:"cloudflare"` Aws *AwsReceiver `json:"aws"` }
type StackCommandEvent ¶
type StackInput ¶
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.