provider

package
v0.0.244 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const BOOTSTRAP_VERSION = 1
View Source
const SSM_NAME_BOOTSTRAP = "/sst/bootstrap"

Variables

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 AwsResolveConfig added in v0.0.219

func AwsResolveConfig(args map[string]interface{}) (aws.Config, error)
func GetLinks(backend Home, app, stage string) (map[string]interface{}, error)

func GetSecrets

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

func Lock

func Lock(backend Home, app, stage 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 PushState

func PushState(backend Home, app, stage string, from string) error
func PutLinks(backend Home, app, stage string, data map[string]interface{}) error

func PutSecrets

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

func Unlock

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

Types

type AwsProvider

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

func (*AwsProvider) Cancel

func (a *AwsProvider) Cancel(app string, stage string) 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{}) (err error)

func (*AwsProvider) Lock

func (a *AwsProvider) Lock(app string, stage string, out *os.File) error

func (*AwsProvider) Unlock

func (a *AwsProvider) Unlock(app string, stage string, in *os.File) error

type CloudflareProvider

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

func (*CloudflareProvider) Env

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

func (*CloudflareProvider) Init

func (c *CloudflareProvider) Init(app, stage string, provider 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 {
	Init(app, stage string, provider map[string]interface{}) error
	Env() (map[string]string, error)
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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