tenant

package
v1.169.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 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 added in v1.126.0

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 added in v1.152.0

func NewApiKey(resp []api.ApiKeyResponse) ApiKey

func (ApiKey) IsEmpty added in v1.99.0

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 added in v1.165.1

type TenantAPI struct {
	*fetcher.Fetcher
}

func NewTenantAPI added in v1.165.1

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

func (*TenantAPI) GetGotrueVersion added in v1.165.1

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

func (*TenantAPI) GetPostgrestVersion added in v1.165.1

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

func (*TenantAPI) GetStorageVersion added in v1.165.1

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