Documentation
¶
Overview ¶
Package host implements the hyperv_host data source — read-only information about the Hyper-V host. See docs/PLAN.md §7.
Index ¶
- func New() datasource.DataSource
- type DataSource
- func (d *DataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DataSource) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
DataSource implements data.hyperv_host.
func (*DataSource) Configure ¶
func (d *DataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DataSource) Metadata ¶
func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DataSource) Read ¶
func (d *DataSource) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DataSource) Schema ¶
func (d *DataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type Model ¶
type Model struct {
ComputerName types.String `tfsdk:"computer_name"`
LogicalProcessorCount types.Int64 `tfsdk:"logical_processor_count"`
MemoryCapacityBytes types.Int64 `tfsdk:"memory_capacity_bytes"`
VirtualMachinePath types.String `tfsdk:"virtual_machine_path"`
VirtualHardDiskPath types.String `tfsdk:"virtual_hard_disk_path"`
}
Model is the tfsdk-bound state struct.
Click to show internal directories.
Click to hide internal directories.