Documentation ¶
Index ¶
- func New() datasource.DataSource
- type Cluster
- type DataSource
- func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (r DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶ added in v1.17.1
type Cluster struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` ProjectID types.String `tfsdk:"project_id"` KubernetesProjectID types.String `tfsdk:"kubernetes_project_id"` KubernetesVersion types.String `tfsdk:"kubernetes_version"` KubernetesVersionUsed types.String `tfsdk:"kubernetes_version_used"` NodePools []cluster.NodePool `tfsdk:"node_pools"` Maintenance *cluster.Maintenance `tfsdk:"maintenance"` Hibernations []cluster.Hibernation `tfsdk:"hibernations"` Extensions *cluster.Extensions `tfsdk:"extensions"` Status types.String `tfsdk:"status"` KubeConfig types.String `tfsdk:"kube_config"` NetworkID types.String `tfsdk:"network_id"` }
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 (r DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read - lifecycle function
func (*DataSource) Schema ¶ added in v1.9.0
func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema returns the terraform schema structure
Click to show internal directories.
Click to hide internal directories.