tenant

package
v1.207.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 9 Imported by: 0

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