provider

package
v3.19.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const SSM_NAME_BOOTSTRAP = "/sst/bootstrap"

Variables

View Source
var ErrBucketMissing = errors.New("sst state bucket missing")
View Source
var ErrCloudflareMissingAccount = fmt.Errorf("missing account")
View Source
var ErrLockExists = fmt.Errorf("Concurrent update detected, run `sst unlock --stage=<stage>` to delete lock file and retry.")
View Source
var ErrLockNotFound = fmt.Errorf("Lock not found")
View Source
var ErrStateNotFound = fmt.Errorf("state not found")

Functions

func Cleanup added in v3.13.17

func Cleanup(backend Home, app, stage string) error

func Copy

func Copy(from Home, to Home, app, stage string) error

func ForceUnlock

func ForceUnlock(backend Home, version, app, stage string) error

func GetSecrets

func GetSecrets(backend Home, app, stage string) (map[string]string, error)

func Info added in v3.9.37

func Info(backend Home) (util.KeyValuePairs[string], error)

func ListStages added in v3.9.37

func ListStages(backend Home, app string) ([]string, error)

func Passphrase

func Passphrase(backend Home, app, stage string) (string, error)

func PullState

func PullState(backend Home, app, stage string, out string) error

func PushEventLog added in v3.6.19

func PushEventLog(backend Home, updateID, app, stage string, reader io.Reader) error

func PushPartialState

func PushPartialState(backend Home, updateID, app, stage string, data []byte) error

func PushSnapshot

func PushSnapshot(backend Home, updateID, app, stage string, data []byte) error

func PutSecrets

func PutSecrets(backend Home, app, stage string, data map[string]string) error

func PutSummary

func PutSummary(backend Home, app, stage, updateID string, summary Summary) error

func PutUpdate

func PutUpdate(backend Home, app, stage string, update *Update) error

func Unlock

func Unlock(backend Home, version, app, stage string) error

Types

type AwsBootstrapData

type AwsBootstrapData struct {
	Version            int    `json:"version"`
	Asset              string `json:"asset"`
	AssetEcrRegistryId string `json:"assetEcrRegistryId"`
	AssetEcrUrl        string `json:"assetEcrUrl"`
	State              string `json:"state"`
	AppsyncHttp        string `json:"appsyncHttp"`
	AppsyncRealtime    string `json:"appsyncRealtime"`
}

type AwsHome

type AwsHome struct {
	// contains filtered or unexported fields
}

func NewAwsHome

func NewAwsHome(provider *AwsProvider) *AwsHome

func (*AwsHome) Bootstrap

func (a *AwsHome) Bootstrap() error

type AwsProvider

type AwsProvider struct {
	// contains filtered or unexported fields
}

func NewAwsProvider

func NewAwsProvider() *AwsProvider

func (*AwsProvider) Bootstrap

func (p *AwsProvider) Bootstrap(region string) (*AwsBootstrapData, error)

func (*AwsProvider) Config

func (a *AwsProvider) Config() aws.Config

func (*AwsProvider) Env

func (a *AwsProvider) Env() (map[string]string, error)

func (*AwsProvider) Init

func (a *AwsProvider) Init(app string, stage string, args map[string]interface{}) error

func (*AwsProvider) ResolveAppSync

func (app *AwsProvider) ResolveAppSync(ctx context.Context) (string, string, error)

type CloudflareHome

type CloudflareHome struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCloudflareHome

func NewCloudflareHome(provider *CloudflareProvider) *CloudflareHome

func (*CloudflareHome) Bootstrap

func (c *CloudflareHome) Bootstrap() error

type CloudflareProvider

type CloudflareProvider struct {
	// contains filtered or unexported fields
}

func (CloudflareProvider) Api

func (*CloudflareProvider) Env

func (c *CloudflareProvider) Env() (map[string]string, error)

func (*CloudflareProvider) Init

func (c *CloudflareProvider) Init(app, stage string, args map[string]interface{}) error

type DevEvent

type DevEvent struct {
	*io.PipeReader
}

type DevSession

type DevSession interface {
	Cleanup() error
	Publish(json string) error
}

type DevTransport

type DevTransport struct {
	In  chan string
	Out chan string
}

func (*DevTransport) Publish

func (dt *DevTransport) Publish(input interface{}) error

type Home

type Home interface {
	Bootstrap() error
	// contains filtered or unexported methods
}

type LocalHome

type LocalHome struct {
}

func NewLocalHome

func NewLocalHome() *LocalHome

func (*LocalHome) Bootstrap

func (l *LocalHome) Bootstrap() error

type Provider

type Provider interface {
	Init(app string, stage string, args map[string]interface{}) error
	Env() (map[string]string, error)
}

type Summary

type Summary struct {
	Version       string         `json:"version"`
	UpdateID      string         `json:"updateID"`
	Command       string         `json:"command"`
	TimeStarted   string         `json:"timeStarted"`
	TimeCompleted string         `json:"timeCompleted"`
	Errors        []SummaryError `json:"errors"`
}

type SummaryError

type SummaryError struct {
	URN     string `json:"urn"`
	Message string `json:"message"`
}

type Update

type Update struct {
	ID            string         `json:"id"`
	RunID         string         `json:"runID,omitempty"`
	Version       string         `json:"version"`
	Command       string         `json:"command"`
	Errors        []SummaryError `json:"errors"`
	TimeStarted   string         `json:"timeStarted"`
	TimeCompleted string         `json:"timeCompleted,omitempty"`
}

func Lock

func Lock(backend Home, version, command, app, stage string) (*Update, error)

Jump to

Keyboard shortcuts

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