Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewHostDataSource() datasource.DataSource
- func NewVmResource() resource.Resource
- func NewVmStateResource() resource.Resource
- func NewVmiDataSource() datasource.DataSource
- type CrunchloopProvider
- func (p *CrunchloopProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *CrunchloopProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *CrunchloopProvider) Functions(ctx context.Context) []func() function.Function
- func (p *CrunchloopProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *CrunchloopProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *CrunchloopProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type HostDataSource
- func (d *HostDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *HostDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *HostDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *HostDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type HostDataSourceModel
- type VmResource
- func (r *VmResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VmResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VmResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VmResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VmResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VmResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VmResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VmResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VmResourceModel
- type VmStateResource
- func (r *VmStateResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VmStateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VmStateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VmStateResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VmStateResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VmStateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VmStateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VmStateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VmStateResourceModel
- type VmiDataSource
- func (d *VmiDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *VmiDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *VmiDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *VmiDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type VmiDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHostDataSource ¶
func NewHostDataSource() datasource.DataSource
func NewVmResource ¶
func NewVmStateResource ¶
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 (p *CrunchloopProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 (p *CrunchloopProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*CrunchloopProvider) Resources ¶
func (p *CrunchloopProvider) Resources(ctx context.Context) []func() resource.Resource
func (*CrunchloopProvider) Schema ¶
func (p *CrunchloopProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type HostDataSource ¶
type HostDataSource struct {
// contains filtered or unexported fields
}
HostDataSource defines the data source implementation.
func (*HostDataSource) Configure ¶
func (d *HostDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*HostDataSource) Metadata ¶
func (d *HostDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*HostDataSource) Read ¶
func (d *HostDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*HostDataSource) Schema ¶
func (d *HostDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type HostDataSourceModel ¶
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 (r *VmResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VmResource) Create ¶
func (r *VmResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VmResource) Delete ¶
func (r *VmResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VmResource) ImportState ¶
func (r *VmResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VmResource) Metadata ¶
func (r *VmResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VmResource) Read ¶
func (r *VmResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VmResource) Schema ¶
func (r *VmResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VmResource) Update ¶
func (r *VmResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *VmStateResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VmStateResource) Create ¶
func (r *VmStateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VmStateResource) Delete ¶
func (r *VmStateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VmStateResource) ImportState ¶
func (r *VmStateResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VmStateResource) Metadata ¶
func (r *VmStateResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VmStateResource) Read ¶
func (r *VmStateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VmStateResource) Schema ¶
func (r *VmStateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VmStateResource) Update ¶
func (r *VmStateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (d *VmiDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*VmiDataSource) Metadata ¶
func (d *VmiDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*VmiDataSource) Read ¶
func (d *VmiDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*VmiDataSource) Schema ¶
func (d *VmiDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.