provider

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewHostDataSource

func NewHostDataSource() datasource.DataSource

func NewVmResource

func NewVmResource() resource.Resource

func NewVmStateResource

func NewVmStateResource() resource.Resource

func NewVmiDataSource

func NewVmiDataSource() datasource.DataSource

Types

type CrunchloopProvider

type CrunchloopProvider struct {
	// contains filtered or unexported fields
}

CrunchloopProvider defines the provider implementation.

func (*CrunchloopProvider) Configure

func (*CrunchloopProvider) DataSources

func (p *CrunchloopProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*CrunchloopProvider) Functions

func (p *CrunchloopProvider) Functions(ctx context.Context) []func() function.Function

func (*CrunchloopProvider) Metadata

func (*CrunchloopProvider) Resources

func (p *CrunchloopProvider) Resources(ctx context.Context) []func() resource.Resource

func (*CrunchloopProvider) Schema

type HostDataSource

type HostDataSource struct {
	// contains filtered or unexported fields
}

HostDataSource defines the data source implementation.

func (*HostDataSource) Configure

func (*HostDataSource) Metadata

func (*HostDataSource) Read

func (*HostDataSource) Schema

type HostDataSourceModel

type HostDataSourceModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

HostDataSourceModel describes the data source data model.

type VmResource

type VmResource struct {
	// contains filtered or unexported fields
}

VmResource defines the resource implementation.

func (*VmResource) Configure

func (*VmResource) Create

func (*VmResource) Delete

func (*VmResource) ImportState

func (*VmResource) Metadata

func (*VmResource) Read

func (*VmResource) Schema

func (*VmResource) Update

type VmResourceModel

type VmResourceModel struct {
	Id                      types.String `tfsdk:"id"`
	Name                    types.String `tfsdk:"name"`
	MemoryMegabytes         types.Int32  `tfsdk:"memory_megabytes"`
	Cores                   types.Int32  `tfsdk:"cores"`
	VmiId                   types.Int32  `tfsdk:"vmi_id"`
	HostId                  types.Int32  `tfsdk:"host_id"`
	RootVolumeSizeGigabytes types.Int32  `tfsdk:"root_volume_size_gigabytes"`
	UserData                types.String `tfsdk:"user_data"`
	SshKey                  types.String `tfsdk:"ssh_key"`
}

VmResourceModel describes the resource data model.

type VmStateResource

type VmStateResource struct {
	// contains filtered or unexported fields
}

VmStateResource defines the resource implementation.

func (*VmStateResource) Configure

func (*VmStateResource) Create

func (*VmStateResource) Delete

func (*VmStateResource) ImportState

func (*VmStateResource) Metadata

func (*VmStateResource) Read

func (*VmStateResource) Schema

func (*VmStateResource) Update

type VmStateResourceModel

type VmStateResourceModel struct {
	VmId   types.String `tfsdk:"vm_id"`
	Status types.String `tfsdk:"status"`
}

VmStateResourceModel describes the resource data model.

type VmiDataSource

type VmiDataSource struct {
	// contains filtered or unexported fields
}

VmiDataSource defines the data source implementation.

func (*VmiDataSource) Configure

func (*VmiDataSource) Metadata

func (*VmiDataSource) Read

func (*VmiDataSource) Schema

type VmiDataSourceModel

type VmiDataSourceModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

VmiDataSourceModel describes the data source data model.

Jump to

Keyboard shortcuts

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