Documentation ¶
Index ¶
- func New(p common.Provider) func() resource.Resource
- type Grafana
- type Instance
- type Metrics
- type Resource
- 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) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
- 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) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"` Grafana *Grafana `tfsdk:"grafana"` Metrics *Metrics `tfsdk:"metrics"` PlanID types.String `tfsdk:"plan_id"` DashboardURL types.String `tfsdk:"dashboard_url"` IsUpdatable types.Bool `tfsdk:"is_updatable"` GrafanaURL types.String `tfsdk:"grafana_url"` GrafanaInitialAdminPassword types.String `tfsdk:"grafana_initial_admin_password"` GrafanaInitialAdminUser types.String `tfsdk:"grafana_initial_admin_user"` MetricsURL types.String `tfsdk:"metrics_url"` MetricsPushURL types.String `tfsdk:"metrics_push_url"` TargetsURL types.String `tfsdk:"targets_url"` AlertingURL types.String `tfsdk:"alerting_url"` LogsURL types.String `tfsdk:"logs_url"` LogsPushURL types.String `tfsdk:"logs_push_url"` JaegerTracesURL types.String `tfsdk:"jaeger_traces_url"` JaegerUIURL types.String `tfsdk:"jaeger_ui_url"` OtlpTracesURL types.String `tfsdk:"otlp_traces_url"` ZipkinSpansURL types.String `tfsdk:"zipkin_spans_url"` }
Instance is the schema model
type Resource ¶
Resource is the exported resource
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) Update ¶
func (r Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update - lifecycle function
Click to show internal directories.
Click to hide internal directories.