Documentation ¶
Index ¶
- func NewDataSize() datasource.DataSource
- type DataSize
- func (d *DataSize) ConfigValidators(_ context.Context) []datasource.ConfigValidator
- func (d *DataSize) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DataSize) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSize) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type DataSizeModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSize ¶
func NewDataSize() datasource.DataSource
Types ¶
type DataSize ¶
type DataSize struct{}
DataSize defines the data source implementation for data size conversion.
func (*DataSize) ConfigValidators ¶
func (d *DataSize) ConfigValidators(_ context.Context) []datasource.ConfigValidator
func (*DataSize) Metadata ¶
func (d *DataSize) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DataSize) Read ¶
func (d *DataSize) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DataSize) Schema ¶
func (d *DataSize) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DataSizeModel ¶
type DataSizeModel struct { Bytes types.Number `tfsdk:"bytes"` Kibibytes types.Number `tfsdk:"kibibytes"` Mebibytes types.Number `tfsdk:"mebibytes"` Gibibytes types.Number `tfsdk:"gibibytes"` Tebibytes types.Number `tfsdk:"tebibytes"` Pebibytes types.Number `tfsdk:"pebibytes"` Kilobytes types.Number `tfsdk:"kilobytes"` Megabytes types.Number `tfsdk:"megabytes"` Gigabytes types.Number `tfsdk:"gigabytes"` Terabytes types.Number `tfsdk:"terabytes"` Petabytes types.Number `tfsdk:"petabytes"` }
DataSizeModel describes the data source data model.
func (*DataSizeModel) Convert ¶
func (m *DataSizeModel) Convert()
Convert performs the conversion of data size.
Click to show internal directories.
Click to hide internal directories.