keys

package
v1.201.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecrets

func GenerateSecrets(ctx context.Context, projectRef, branch string, fsys afero.Fs) error

func GetGitBranch

func GetGitBranch(fsys afero.Fs) string

func GetGitBranchOrDefault added in v1.79.0

func GetGitBranchOrDefault(def string, fsys afero.Fs) string

func Run

func Run(ctx context.Context, projectRef, format string, names CustomName, fsys afero.Fs) error

Types

type CustomName

type CustomName struct {
	DbHost         string `env:"db.host,default=NEXT_PUBLIC_SUPABASE_URL"`
	DbPassword     string `env:"db.password,default=SUPABASE_DB_PASSWORD"`
	JWTSecret      string `env:"db.password,default=SUPABASE_AUTH_JWT_SECRET"`
	AnonKey        string `env:"auth.anon_key,default=SUPABASE_AUTH_ANON_KEY"`
	ServiceRoleKey string `env:"auth.service_role_key,default=SUPABASE_AUTH_SERVICE_ROLE_KEY"`
}

Jump to

Keyboard shortcuts

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