tenant

package
v1.115.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 7 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 GetGotrueVersion

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

func GetJsonResponse

func GetJsonResponse[T any](ctx context.Context, url, apiKey string) (*T, error)

func GetPostgrestVersion

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

func GetStorageVersion added in v1.103.0

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

func GetTextResponse added in v1.103.0

func GetTextResponse(ctx context.Context, url, apiKey string) (string, error)

func JsonResponseWithBearer added in v1.107.0

func JsonResponseWithBearer[T any](ctx context.Context, method, url, token string, reqBody any) (*T, error)

Types

type ApiKey

type ApiKey struct {
	Anon        string
	ServiceRole string
}

func GetApiKeys

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

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"`
}

Jump to

Keyboard shortcuts

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