Documentation ¶
Index ¶
- func New() datasource.DataSource
- type DataSource
- func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r DataSource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (r DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GetSchema ¶
func (r DataSource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
GetSchema returns the terraform schema structure
func (*DataSource) Metadata ¶
func (r *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, res *datasource.MetadataResponse)
Metadata returns data resource metadata
func (DataSource) Read ¶
func (r DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read - lifecycle function
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.