Documentation ¶
Index ¶
- func New() datasource.DataSource
- type Credential
- type DataSource
- func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d DataSource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"` 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 ¶
func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure configures the data source client
func (DataSource) GetSchema ¶
func (d DataSource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
GetSchema returns the terraform schema structure
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
Click to show internal directories.
Click to hide internal directories.