kernel

package
v4.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MPL-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL