provider

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: PostgreSQL Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultReplicas = 1
)
View Source
const HostURL string = "http://localhost:19090"

HostURL - Default Tembo API URL.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewTemboInstanceResource added in v0.0.7

func NewTemboInstanceResource() resource.Resource

NewTemboInstanceResource is a helper function to simplify the provider implementation.

func NewTemboInstanceSecretDataSource added in v0.2.0

func NewTemboInstanceSecretDataSource() datasource.DataSource

NewTemboInstanceSecretDataSource is a helper function to simplify the provider implementation.

func NewTemboInstanceSecretsDataSource added in v0.2.0

func NewTemboInstanceSecretsDataSource() datasource.DataSource

NewTemboInstanceSecretsDataSource is a helper function to simplify the provider implementation.

Types

type AuthResponse

type AuthResponse struct {
	Token string `json:"token"`
}

type AuthStruct

type AuthStruct struct {
	AccessToken string `json:"access_token"`
}

type Client

type Client struct {
	HostURL    string
	HTTPClient *http.Client
	Token      string
	Auth       AuthStruct
}

func NewClient

func NewClient(host, access_token *string) (*Client, error)

type ConnectionPooler added in v1.2.0

type ConnectionPooler struct {
	Enabled types.Bool `tfsdk:"enabled"`
	Pooler  PgBouncer  `tfsdk:"pooler"`
}

type Extension added in v0.0.8

type Extension struct {
	Description types.String               `tfsdk:"description"`
	Locations   []ExtensionInstallLocation `tfsdk:"locations"`
	Name        string                     `tfsdk:"name"`
}

type ExtensionInstallLocation added in v0.0.8

type ExtensionInstallLocation struct {
	Database types.String `tfsdk:"database"`
	Enabled  types.Bool   `tfsdk:"enabled"`
	Schema   types.String `tfsdk:"schema"`
	Version  types.String `tfsdk:"version"`
}

type KeyValue added in v1.2.0

type KeyValue struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type PgBouncer added in v1.2.0

type PgBouncer struct {
	Parameters map[string]string `tfsdk:"parameters"`
	PoolMode   types.String      `tfsdk:"pool_mode"`
}

type Restore added in v1.2.0

type Restore struct {
	InstanceId         types.String `tfsdk:"instance_id"`
	RecoveryTargetTime types.String `tfsdk:"recovery_target_time"`
}

type TrunkInstall added in v0.0.8

type TrunkInstall struct {
	Name    types.String `tfsdk:"name"`
	Version types.String `tfsdk:"version"`
}

Jump to

Keyboard shortcuts

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