Documentation ¶
Index ¶
- func NewElasticSearch() datasource.DataSource
- func NewLogMe() datasource.DataSource
- func NewMariaDB() datasource.DataSource
- func NewPostgres() datasource.DataSource
- func NewRabbitMQ() datasource.DataSource
- func NewRedis() datasource.DataSource
- type DataSource
- func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DataSourceService
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElasticSearch ¶
func NewElasticSearch() datasource.DataSource
NewElasticSearch 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
Types ¶
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
DataSource is the exported data source
func (*DataSource) Configure ¶
func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure configures the data source client
func (*DataSource) Metadata ¶
func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, res *datasource.MetadataResponse)
Metadata returns data resource metadata
func (*DataSource) Read ¶
func (d *DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read - lifecycle function
func (*DataSource) Schema ¶
func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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
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"` }
Instance is the schema model
Click to show internal directories.
Click to hide internal directories.