Documentation ¶
Index ¶
- func NewElasticSearch() resource.Resource
- func NewLogMe() resource.Resource
- func NewMariaDB() resource.Resource
- func NewOpensearch() resource.Resource
- func NewPostgres() resource.Resource
- func NewRabbitMQ() resource.Resource
- func NewRedis() resource.Resource
- type Credential
- type Resource
- func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r Resource) Update(context.Context, resource.UpdateRequest, *resource.UpdateResponse)
- type ResourceService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElasticSearch ¶
NewElasticSearch returns a new configured resource
func NewOpensearch ¶ added in v1.20.0
NewOpensearch returns a new configured resource
func NewPostgres ¶
NewPostgres returns a new configured resource
func NewRabbitMQ ¶
NewRabbitMQ 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"` RawResponse types.String `tfsdk:"raw_response"` }
Credential is the schema model
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource is the exported resource
func (*Resource) Configure ¶
func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure the resource client
func (Resource) Create ¶
func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create - lifecycle function
func (Resource) Delete ¶
func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete - lifecycle function
func (*Resource) ImportState ¶
func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState handles terraform import
func (*Resource) Metadata ¶
func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, res *resource.MetadataResponse)
Metadata returns data resource metadata
func (Resource) Read ¶
func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read - lifecycle function
func (*Resource) Schema ¶
func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema returns the terraform schema structure
func (Resource) Update ¶
func (r Resource) Update(context.Context, resource.UpdateRequest, *resource.UpdateResponse)
Update - lifecycle function - not used for this resource
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
Click to show internal directories.
Click to hide internal directories.