tenant

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthToken = errors.New("Authorization failed for the access token and project ref pair")
)

Functions

func GetDatabaseVersion

func GetDatabaseVersion(ctx context.Context, projectRef string) (string, error)

Types

type ApiKey

type ApiKey struct {
	Anon        string
	ServiceRole string
}

func GetApiKeys

func GetApiKeys(ctx context.Context, projectRef string) (ApiKey, error)

func NewApiKey

func NewApiKey(resp []api.ApiKeyResponse) ApiKey

func (ApiKey) IsEmpty

func (a ApiKey) IsEmpty() bool

type HealthResponse

type HealthResponse struct {
	Version     string `json:"version"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type SwaggerInfo

type SwaggerInfo struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Version     string `json:"version"`
}

type SwaggerResponse

type SwaggerResponse struct {
	Swagger string      `json:"swagger"`
	Info    SwaggerInfo `json:"info"`
}

type TenantAPI

type TenantAPI struct {
	*fetcher.Fetcher
}

func NewTenantAPI

func NewTenantAPI(ctx context.Context, projectRef, serviceKey string) TenantAPI

func (*TenantAPI) GetGotrueVersion

func (t *TenantAPI) GetGotrueVersion(ctx context.Context) (string, error)

func (*TenantAPI) GetPostgrestVersion

func (t *TenantAPI) GetPostgrestVersion(ctx context.Context) (string, error)

func (*TenantAPI) GetStorageVersion

func (t *TenantAPI) GetStorageVersion(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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