instance

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticSearch

func NewElasticSearch() resource.Resource

NewElasticSearch returns a new configured resource

func NewLogMe

func NewLogMe() resource.Resource

NewLogMe returns a new configured resource

func NewMariaDB

func NewMariaDB() resource.Resource

NewMariaDB returns a new configured resource

func NewOpensearch added in v1.20.0

func NewOpensearch() resource.Resource

NewOpensearch returns a new configured resource

func NewPostgres

func NewPostgres() resource.Resource

NewPostgres returns a new configured resource

func NewRabbitMQ

func NewRabbitMQ() resource.Resource

NewRabbitMQ returns a new configured resource

func NewRedis

func NewRedis() resource.Resource

NewRedis returns a new configured resource

Types

type Instance

type Instance struct {
	ID                 types.String   `tfsdk:"id"`
	Name               types.String   `tfsdk:"name"`
	ProjectID          types.String   `tfsdk:"project_id"`
	Plan               types.String   `tfsdk:"plan"`
	PlanID             types.String   `tfsdk:"plan_id"`
	Version            types.String   `tfsdk:"version"`
	ACL                types.List     `tfsdk:"acl"`
	DashboardURL       types.String   `tfsdk:"dashboard_url"`
	CFGUID             types.String   `tfsdk:"cf_guid"`
	CFSpaceGUID        types.String   `tfsdk:"cf_space_guid"`
	CFOrganizationGUID types.String   `tfsdk:"cf_organization_guid"`
	Timeouts           timeouts.Value `tfsdk:"timeouts"`
}

Instance is the schema model

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

Resource is the exported resource

func (*Resource) Configure

Configure the resource client

func (Resource) Create

Create - lifecycle function

func (Resource) Delete

Delete - lifecycle function

func (*Resource) ImportState

ImportState handles terraform import

func (*Resource) Metadata

Metadata returns data resource metadata

func (Resource) Read

Read - lifecycle function

func (*Resource) Schema

Schema returns the terraform schema structure

func (Resource) Update

Update - lifecycle function

type ResourceService

type ResourceService string
const (
	ElasticSearch ResourceService = "elasticsearch"
	LogMe         ResourceService = "logme"
	MariaDB       ResourceService = "mariadb"
	Opensearch    ResourceService = "opensearch"
	Postgres      ResourceService = "postgres"
	Redis         ResourceService = "redis"
	RabbitMQ      ResourceService = "rabbitmq"
)

func (ResourceService) Display

func (s ResourceService) Display() string

Jump to

Keyboard shortcuts

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