Documentation
¶
Index ¶
- Constants
- Variables
- func GetLinks(backend Home, app, stage string) (map[string]interface{}, error)
- func GetSecrets(backend Home, app, stage string) (map[string]string, error)
- func Lock(backend Home, updateID, command, app, stage string) error
- func Passphrase(backend Home, app, stage string) (string, error)
- func PullState(backend Home, app, stage string, out string) error
- func PushState(backend Home, updateID string, app, stage string, from string) error
- func PutLinks(backend Home, app, stage string, data map[string]interface{}) error
- func PutSecrets(backend Home, app, stage string, data map[string]string) error
- func PutSummary(backend Home, app, stage, updateID string, summary Summary) error
- func Unlock(backend Home, app, stage string) error
- type AwsBootstrapData
- type AwsHome
- type AwsProvider
- type CloudflareHome
- type CloudflareProvider
- type DevEvent
- type DevSession
- type DevTransport
- type Home
- type LocalHome
- type Provider
- type Summary
- type SummaryError
Constants ¶
View Source
const SSM_NAME_BOOTSTRAP = "/sst/bootstrap"
Variables ¶
View Source
var ErrCloudflareMissingAccount = fmt.Errorf("missing account")
View Source
var ErrLockExists = fmt.Errorf("Concurrent update detected, run `sst unlock` to delete lock file and retry.")
View Source
var ErrStateNotFound = fmt.Errorf("state not found")
Functions ¶
func PutSummary ¶ added in v0.0.372
Types ¶
type AwsBootstrapData ¶ added in v0.1.81
type AwsBootstrapData struct {
Version int `json:"version"`
Asset string `json:"asset"`
AssetEcrRegistryId string `json:"assetEcrRegistryId"`
AssetEcrUrl string `json:"assetEcrUrl"`
State string `json:"state"`
}
func AwsBootstrap ¶ added in v0.1.81
func AwsBootstrap(cfg aws.Config) (*AwsBootstrapData, error)
type AwsHome ¶ added in v0.1.76
type AwsHome struct {
// contains filtered or unexported fields
}
func NewAwsHome ¶ added in v0.1.76
func NewAwsHome(provider *AwsProvider) *AwsHome
type AwsProvider ¶
type AwsProvider struct {
// contains filtered or unexported fields
}
func (*AwsProvider) Config ¶
func (a *AwsProvider) Config() aws.Config
type CloudflareHome ¶ added in v0.1.76
type CloudflareHome struct {
// contains filtered or unexported fields
}
func NewCloudflareHome ¶ added in v0.1.76
func NewCloudflareHome(provider *CloudflareProvider) *CloudflareHome
func (*CloudflareHome) Bootstrap ¶ added in v0.1.76
func (c *CloudflareHome) Bootstrap() error
type CloudflareProvider ¶
type CloudflareProvider struct {
// contains filtered or unexported fields
}
func (CloudflareProvider) Api ¶ added in v0.0.257
func (c CloudflareProvider) Api() *cloudflare.API
type DevEvent ¶
type DevEvent struct {
*io.PipeReader
}
type DevSession ¶
type DevTransport ¶
func (*DevTransport) Publish ¶
func (dt *DevTransport) Publish(input interface{}) error
type LocalHome ¶ added in v0.1.76
type LocalHome struct {
}
func NewLocalHome ¶ added in v0.1.76
func NewLocalHome() *LocalHome
type Summary ¶ added in v0.0.372
type Summary struct {
Version string `json:"version"`
UpdateID string `json:"updateID"`
TimeStarted string `json:"timeStarted"`
TimeCompleted string `json:"timeCompleted"`
ResourceUpdated int `json:"resourceUpdated"`
ResourceCreated int `json:"resourceCreated"`
ResourceDeleted int `json:"resourceDeleted"`
ResourceSame int `json:"resourceSame"`
Errors []SummaryError `json:"errors"`
}
type SummaryError ¶ added in v0.0.387
Click to show internal directories.
Click to hide internal directories.