credential

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticSearch

func NewElasticSearch() datasource.DataSource

NewElasticSearch returns a new configured resource

func NewLogMe

func NewLogMe() datasource.DataSource

NewLogMe returns a new configured resource

func NewMariaDB

func NewMariaDB() datasource.DataSource

NewMariaDB returns a new configured resource

func NewPostgres

func NewPostgres() datasource.DataSource

NewPostgres returns a new configured resource

func NewRabbitMQ

func NewRabbitMQ() datasource.DataSource

NewRabbitMQ returns a new configured resource

func NewRedis

func NewRedis() datasource.DataSource

NewRedis returns a new configured resource

Types

type Credential

type Credential struct {
	ID              types.String `tfsdk:"id"`
	ProjectID       types.String `tfsdk:"project_id"`
	InstanceID      types.String `tfsdk:"instance_id"`
	Host            types.String `tfsdk:"host"`
	Hosts           types.List   `tfsdk:"hosts"`
	DatabaseName    types.String `tfsdk:"database_name"`
	Username        types.String `tfsdk:"username"`
	Password        types.String `tfsdk:"password"`
	Port            types.Int64  `tfsdk:"port"`
	SyslogDrainURL  types.String `tfsdk:"syslog_drain_url"`
	RouteServiceURL types.String `tfsdk:"route_service_url"`
	URI             types.String `tfsdk:"uri"`
}

Credential is the schema model

type DataSource

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

DataSource is the exported data source

func (*DataSource) Configure

Configure configures the data source client

func (*DataSource) Metadata

Metadata returns data resource metadata

func (*DataSource) Read

Read - lifecycle function

func (*DataSource) Schema

Schema returns the terraform schema structure

type DataSourceService

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

func (DataSourceService) Display

func (s DataSourceService) Display() string

Jump to

Keyboard shortcuts

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