tenant

package
v2.0.5-0...-bd0d250 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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

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, anonKey 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