Documentation ¶
Index ¶
- Constants
- Variables
- func Aqua(str string) string
- func AssertDockerIsRunning() error
- func AssertIsLinked() error
- func AssertSupabaseCliIsSetUp() error
- func AssertSupabaseStartIsRunning() error
- func Bold(str string) string
- func DockerExec(ctx context.Context, container string, cmd []string) (io.Reader, error)
- func DockerRemoveAll()
- func DockerRun(ctx context.Context, name string, config *container.Config, ...) (io.Reader, error)
- func GetCurrentBranch() (string, error)
- func GetCurrentTimestamp() string
- func GetGitRoot() (*string, error)
- func InstallOrUpgradeDeno() error
- func IsBranchNameReserved(branch string) bool
- func LoadAccessToken() (string, error)
- func LoadConfig() error
- func MkdirIfNotExist(path string) error
- func NewError(s string) error
- func ProcessDiffOutput(p Program, out io.Reader) ([]byte, error)
- func ProcessPsqlOutput(out io.Reader, p Program) error
- func ProcessPullOutput(out io.ReadCloser, p Program) error
- func ValidateFunctionSlug(slug string) error
- func WriteConfig(test bool) error
- type DiffDependencies
- type DiffEntry
- type Program
- type ProgressMsg
- type PsqlMsg
- type StatusMsg
Constants ¶
View Source
const ( GotrueImage = "supabase/gotrue:v2.5.8" RealtimeImage = "supabase/realtime:v0.22.0" StorageImage = "supabase/storage-api:v0.12.0" )
Update initial schemas in internal/utils/templates/initial_schemas when updating any one of these.
View Source
const ( ShadowDbName = "supabase_shadow" KongImage = "library/kong:2.1" InbucketImage = "inbucket/inbucket:stable" PostgrestImage = "postgrest/postgrest:v9.0.0.20220211" DifferImage = "supabase/pgadmin-schema-diff:cli-0.0.4" PgmetaImage = "supabase/postgres-meta:v0.33.2" // TODO: Hardcode version once provided upstream. StudioImage = "supabase/studio:latest" DenoRelayImage = "supabase/deno-relay:v1.0.5" // https://dba.stackexchange.com/a/11895 // Args: dbname TerminateDbSqlFmt = `` /* 215-byte string literal not displayed */ )
Variables ¶
View Source
var ( DbImage string NetId string DbId string KongId string GotrueId string InbucketId string RealtimeId string RestId string StorageId string DifferId string PgmetaId string StudioId string DenoRelayId string InitialSchemaSql string )
View Source
var Config config
View Source
var Docker = func() *client.Client { docker, err := client.NewClientWithOpts(client.WithAPIVersionNegotiation()) if err != nil { fmt.Fprintln(os.Stderr, "Failed to initialize Docker client:", err) os.Exit(1) } return docker }()
View Source
var GlobalsSql string
Functions ¶
func AssertDockerIsRunning ¶
func AssertDockerIsRunning() error
func AssertIsLinked ¶ added in v0.20.0
func AssertIsLinked() error
func AssertSupabaseCliIsSetUp ¶ added in v0.19.0
func AssertSupabaseCliIsSetUp() error
func AssertSupabaseStartIsRunning ¶
func AssertSupabaseStartIsRunning() error
func DockerExec ¶
func DockerRemoveAll ¶
func DockerRemoveAll()
func GetCurrentBranch ¶
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() string
func GetGitRoot ¶ added in v0.8.0
func InstallOrUpgradeDeno ¶ added in v0.19.0
func InstallOrUpgradeDeno() error
func IsBranchNameReserved ¶ added in v0.13.0
func LoadAccessToken ¶ added in v0.20.0
func LoadConfig ¶
func LoadConfig() error
func MkdirIfNotExist ¶ added in v0.19.0
func ProcessDiffOutput ¶ added in v0.9.0
func ProcessPullOutput ¶ added in v0.9.0
func ProcessPullOutput(out io.ReadCloser, p Program) error
func ValidateFunctionSlug ¶ added in v0.20.6
func WriteConfig ¶ added in v0.18.2
Types ¶
type DiffDependencies ¶ added in v0.13.0
type DiffDependencies struct {
Type string `json:"type"`
}
type Program ¶ added in v0.17.1
An interface describing the parts of BubbleTea's Program that we actually use.
func NewProgram ¶ added in v0.17.1
func NewProgram(model tea.Model, opts ...tea.ProgramOption) Program
type ProgressMsg ¶ added in v0.9.0
type ProgressMsg *float64
Click to show internal directories.
Click to hide internal directories.