Help us shape the future of Go! Take the 2026 Go Developer Survey

supabase

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReservedRole

func ReservedRole(name string) bool

Types

type AuthOptions

type AuthOptions struct {
	DisableSignup bool `json:"disableSignup"`
	Autoconfirm   bool `json:"autoconfirm"`
	JWTExpiry     int  `json:"jwtExpiry"`
	SMTP          struct {
		Host       string `json:"host"`
		Port       int    `json:"port"`
		User       string `json:"user"`
		AdminEmail string `json:"adminEmail"`
		SenderName string `json:"senderName"`
	} `json:"smtp"`
}

type Credentials

type Credentials struct {
	APIURL            string `json:"apiUrl"`
	StudioURL         string `json:"studioUrl"`
	AnonKey           string `json:"anonKey"`
	ServiceRoleKey    string `json:"serviceRoleKey"`
	PublishableKey    string `json:"publishableKey"`
	SecretKey         string `json:"secretKey"`
	DashboardUsername string `json:"dashboardUsername"`
	DashboardPassword string `json:"dashboardPassword"`
	JWTSecret         string `json:"jwtSecret"`
}

type Options

type Options struct {
	SynchronousMode        string                `json:"synchronousMode,omitempty"`
	Parameters             map[string]string     `json:"parameters,omitempty"`
	Proxy                  postgres.ProxyOptions `json:"proxy,omitempty"`
	SiteURL                string                `json:"siteUrl,omitempty"`
	AdditionalRedirectURLs []string              `json:"additionalRedirectUrls,omitempty"`
	Auth                   AuthOptions           `json:"auth,omitempty"`
	REST                   sbspec.REST           `json:"rest,omitempty"`
	Storage                StorageOptions        `json:"storage,omitempty"`
	Gateway                struct {
		PublicHTTPS bool     `json:"publicHttps"`
		CORSOrigins []string `json:"corsOrigins,omitempty"`
	} `json:"gateway,omitempty"`
	Studio struct {
		Organization string `json:"organization"`
		Project      string `json:"project"`
	} `json:"studio,omitempty"`
	Extensions []string `json:"extensions,omitempty"`
	Functions  struct {
		VerifyJWT *bool `json:"verifyJwt"`
	} `json:"functions,omitempty"`
}

func ParseOptions

func ParseOptions(raw json.RawMessage) (Options, error)

type Provider

type Provider struct {
	*postgres.Core
	// contains filtered or unexported fields
}

func New

func New(o postgres.Options) *Provider

func (*Provider) ApplyDefaults

func (p *Provider) ApplyDefaults(s *domain.ClusterSpec)

func (*Provider) CanClaimOperation added in v0.4.0

func (p *Provider) CanClaimOperation(c *domain.Cluster) (bool, error)

func (*Provider) CancelOperation added in v0.4.0

func (p *Provider) CancelOperation(ctx context.Context, rc *engine.Context, op *domain.Operation) (engine.OpResult, error)

func (*Provider) Cleanup

func (p *Provider) Cleanup(ctx context.Context, rc *engine.Context, opts domain.DeleteOptions) (done bool, err error)

func (*Provider) Credentials

func (p *Provider) Credentials(ctx context.Context, rc *engine.Context) (Credentials, error)

func (*Provider) DeleteFunction

func (p *Provider) DeleteFunction(ctx context.Context, rc *engine.Context, name string) error

func (*Provider) Describe

func (p *Provider) Describe() domain.ProviderInfo

func (*Provider) GetFunction

func (p *Provider) GetFunction(ctx context.Context, rc *engine.Context, name string) (map[string]string, error)

func (*Provider) ListFunctions

func (p *Provider) ListFunctions(ctx context.Context, rc *engine.Context) ([]string, error)

func (*Provider) MemberConfig

func (p *Provider) MemberConfig(ctx context.Context, rc *engine.Context, name string) (agentapi.MemberConfig, error)

func (*Provider) MemberLogs

func (p *Provider) MemberLogs(ctx context.Context, rc *engine.Context, name, process string, lines int) ([]domain.MemberLogLine, error)

func (*Provider) Metrics

func (p *Provider) Metrics() []domain.MetricDescriptor

func (*Provider) Name

func (*Provider) Name() string

func (*Provider) Placement

func (p *Provider) Placement(ctx context.Context, rc *engine.Context) (domain.Placement, error)

func (*Provider) PutFunction

func (p *Provider) PutFunction(ctx context.Context, rc *engine.Context, name string, files map[string]string) error

func (*Provider) RequiredCapabilities

func (p *Provider) RequiredCapabilities(s domain.ClusterSpec) []string

func (*Provider) RunOperation

func (p *Provider) RunOperation(ctx context.Context, rc *engine.Context, op *domain.Operation) (engine.OpResult, error)

func (*Provider) SetSMTPPassword

func (p *Provider) SetSMTPPassword(ctx context.Context, rc *engine.Context, password string) error

func (*Provider) Status

func (p *Provider) Status(ctx context.Context, rc *engine.Context) (status domain.ClusterStatus, statusErr error)

func (*Provider) Sync

func (p *Provider) Sync(ctx context.Context, rc *engine.Context) (result engine.Result, err error)

func (*Provider) Validate

func (p *Provider) Validate(ctx context.Context, old, next *domain.Cluster) error

type StorageOptions

type StorageOptions struct {
	BackendStorage      string `json:"backendStorage"`
	Bucket              string `json:"bucket"`
	FileSizeLimit       int64  `json:"fileSizeLimit"`
	ImageTransformation bool   `json:"imageTransformation"`
}

Directories

Path Synopsis
Package sbkeys generates Supabase credentials without persistence or logging.
Package sbkeys generates Supabase credentials without persistence or logging.
SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors
SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

Jump to

Keyboard shortcuts

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