keys

package
v1.153.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 12 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 NewJWTToken

func NewJWTToken(ref, role string, expiry time.Time) *jwt.Token

func Run

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

Types

type CustomClaims

type CustomClaims struct {
	Ref  string `json:"ref"`
	Role string `json:"role"`
	jwt.RegisteredClaims
}

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