kernel

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

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,
	},
	"xen": schema.BoolAttribute{
		Description: "If this Kernel is suitable for Xen Linodes.",
		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"`
	XEN          types.Bool        `tfsdk:"xen"`
}

func (*DataSourceModel) ParseKernel

func (data *DataSourceModel) ParseKernel(ctx 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