Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KernelAttributes = map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "The unique ID of this Kernel.", Required: true, }, "architecture": schema.StringAttribute{ Description: "The architecture of this Kernel.", Computed: true, }, "built": schema.StringAttribute{ Description: "The date on which this Kernel was built.", Computed: true, CustomType: timetypes.RFC3339Type{}, }, "deprecated": schema.BoolAttribute{ Description: "Whether or not this Kernel is deprecated.", Computed: true, }, "kvm": schema.BoolAttribute{ Description: "If this Kernel is suitable for KVM Linodes.", Computed: true, }, "label": schema.StringAttribute{ Description: "The friendly name of this Kernel.", Computed: true, }, "pvops": schema.BoolAttribute{ Description: "If this Kernel is suitable for paravirtualized operations.", Computed: true, }, "version": schema.StringAttribute{ Description: "Linux Kernel version.", Computed: true, }, }
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
Types ¶
type DataSource ¶
type DataSource struct {
helper.BaseDataSource
}
func (*DataSource) Read ¶
func (d *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
type DataSourceModel ¶
type DataSourceModel struct {
ID types.String `tfsdk:"id"`
Architecture types.String `tfsdk:"architecture"`
Built timetypes.RFC3339 `tfsdk:"built"`
Deprecated types.Bool `tfsdk:"deprecated"`
KVM types.Bool `tfsdk:"kvm"`
Label types.String `tfsdk:"label"`
PVOPS types.Bool `tfsdk:"pvops"`
Version types.String `tfsdk:"version"`
}
func (*DataSourceModel) ParseKernel ¶
func (data *DataSourceModel) ParseKernel(_ context.Context, kernel *linodego.LinodeKernel)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.