Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBackupDataSource() datasource.DataSource
- func NewFirewallDataSource() datasource.DataSource
- func NewFirewallResource() resource.Resource
- func NewFirewallRuleResource() resource.Resource
- func NewImageDataSource() datasource.DataSource
- func NewServerDataSource() datasource.DataSource
- func NewServerResource() resource.Resource
- func NewSnapShotResource() resource.Resource
- func NewSnapshotDataSource() datasource.DataSource
- func NewSshKeyResource() resource.Resource
- func NewSshkeyDataSource() datasource.DataSource
- type AccessConfigurationModel
- type BackupDataSource
- func (d *BackupDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BackupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BackupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BackupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type BackupDataSourceModel
- type BackupPreferenceModel
- type BackupsModel
- type CloudingProvider
- func (p *CloudingProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *CloudingProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *CloudingProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *CloudingProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *CloudingProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type CloudingProviderModel
- type CostModel
- type FirewallAttachmentModel
- type FirewallDataSource
- func (d *FirewallDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *FirewallDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *FirewallDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *FirewallDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type FirewallDataSourceModel
- type FirewallModel
- type FirewallResource
- func (r *FirewallResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *FirewallResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *FirewallResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *FirewallResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *FirewallResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *FirewallResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *FirewallResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *FirewallResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FirewallResourceModel
- type FirewallRuleModel
- type FirewallRuleResource
- func (r *FirewallRuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *FirewallRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *FirewallRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *FirewallRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *FirewallRuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *FirewallRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *FirewallRuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *FirewallRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FirewallRuleResourceModel
- type ImageAccessMethodsModel
- type ImageDataSource
- func (d *ImageDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ImageDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ImageDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ImageDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ImageDataSourceModel
- type ImageModel
- type ServerDataSource
- func (d *ServerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ServerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ServerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ServerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ServerDataSourceModel
- type ServerResource
- func (r *ServerResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServerResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServerResourceModel
- type SnapShotImageModel
- type SnapShotResource
- func (r *SnapShotResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SnapShotResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SnapShotResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SnapShotResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SnapShotResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SnapShotResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SnapShotResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SnapShotResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SnapShotResourceModel
- type SnapshotAccessMethodsModel
- type SnapshotCostModel
- type SnapshotDataSource
- func (d *SnapshotDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SnapshotDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *SnapshotDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SnapshotDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SnapshotDataSourceModel
- type SnapshotsModel
- type SshKeyResource
- func (r *SshKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SshKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SshKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SshKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SshKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SshKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SshKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SshKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SshKeyResourceModel
- type SshkeyDataSource
- func (d *SshkeyDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *SshkeyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *SshkeyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *SshkeyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type SshkeyDataSourceModel
- type VolumeModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBackupDataSource ¶
func NewBackupDataSource() datasource.DataSource
func NewFirewallDataSource ¶
func NewFirewallDataSource() datasource.DataSource
func NewFirewallResource ¶
func NewFirewallRuleResource ¶
func NewImageDataSource ¶
func NewImageDataSource() datasource.DataSource
func NewServerDataSource ¶
func NewServerDataSource() datasource.DataSource
func NewServerResource ¶
func NewSnapShotResource ¶
func NewSnapshotDataSource ¶
func NewSnapshotDataSource() datasource.DataSource
func NewSshKeyResource ¶
func NewSshkeyDataSource ¶
func NewSshkeyDataSource() datasource.DataSource
Types ¶
type BackupDataSource ¶
type BackupDataSource struct {
// contains filtered or unexported fields
}
BackupDataSource defines the data source implementation.
func (*BackupDataSource) Configure ¶
func (d *BackupDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*BackupDataSource) Metadata ¶
func (d *BackupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*BackupDataSource) Read ¶
func (d *BackupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*BackupDataSource) Schema ¶
func (d *BackupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type BackupDataSourceModel ¶
type BackupDataSourceModel struct { Id types.String `tfsdk:"id"` CreatedAt types.String `tfsdk:"created_at"` ServerId types.String `tfsdk:"server_id"` ServerName types.String `tfsdk:"server_name"` VolumeSizeGb types.Number `tfsdk:"volume_size_gb"` Image ImageDataSourceModel `tfsdk:"image"` }
BackupDataSourceModel describes the data source data model.
type BackupPreferenceModel ¶
type BackupsModel ¶
type CloudingProvider ¶
type CloudingProvider struct {
// contains filtered or unexported fields
}
CloudingProvider defines the provider implementation.
func (*CloudingProvider) Configure ¶
func (p *CloudingProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure configures the CloudingProvider with the given configuration in provider.tf. It validates the required fields and sets up the client configuration for data sources and resources.
func (*CloudingProvider) DataSources ¶
func (p *CloudingProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*CloudingProvider) Metadata ¶
func (p *CloudingProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*CloudingProvider) Resources ¶
func (p *CloudingProvider) Resources(ctx context.Context) []func() resource.Resource
func (*CloudingProvider) Schema ¶
func (p *CloudingProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema returns the schema for the provider, which includes the available resource types and their attributes.
type CloudingProviderModel ¶
CloudingProviderModel describes the provider data model.
type FirewallAttachmentModel ¶
type FirewallDataSource ¶
type FirewallDataSource struct {
// contains filtered or unexported fields
}
FirewallDataSource defines the data source implementation.
func (*FirewallDataSource) Configure ¶
func (d *FirewallDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*FirewallDataSource) Metadata ¶
func (d *FirewallDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*FirewallDataSource) Read ¶
func (d *FirewallDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*FirewallDataSource) Schema ¶
func (d *FirewallDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type FirewallDataSourceModel ¶
type FirewallDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Rules []FirewallRuleModel `tfsdk:"rules"` Attachments []FirewallAttachmentModel `tfsdk:"attachments"` }
FirewallDataSourceModel describes the data source data model.
type FirewallModel ¶
type FirewallResource ¶
type FirewallResource struct {
// contains filtered or unexported fields
}
FirewallResource defines the resource implementation.
func (*FirewallResource) Configure ¶
func (r *FirewallResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FirewallResource) Create ¶
func (r *FirewallResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FirewallResource) Delete ¶
func (r *FirewallResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FirewallResource) ImportState ¶
func (r *FirewallResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FirewallResource) Metadata ¶
func (r *FirewallResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FirewallResource) Read ¶
func (r *FirewallResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FirewallResource) Schema ¶
func (r *FirewallResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FirewallResource) Update ¶
func (r *FirewallResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FirewallResourceModel ¶
type FirewallResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` LastUpdated types.String `tfsdk:"last_updated"` }
FirewallResourceModel describes the resource data model.
type FirewallRuleModel ¶
type FirewallRuleModel struct { Id types.String `tfsdk:"id"` Description types.String `tfsdk:"description"` Protocol types.String `tfsdk:"protocol"` PortRangeMin types.Int64 `tfsdk:"port_range_min"` PortRangeMax types.Int64 `tfsdk:"port_range_max"` SourceIP types.String `tfsdk:"source_ip"` Enable types.Bool `tfsdk:"enable"` }
type FirewallRuleResource ¶
type FirewallRuleResource struct {
// contains filtered or unexported fields
}
FirewallRuleResource defines the resource implementation.
func (*FirewallRuleResource) Configure ¶
func (r *FirewallRuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FirewallRuleResource) Create ¶
func (r *FirewallRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FirewallRuleResource) Delete ¶
func (r *FirewallRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FirewallRuleResource) ImportState ¶
func (r *FirewallRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FirewallRuleResource) Metadata ¶
func (r *FirewallRuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FirewallRuleResource) Read ¶
func (r *FirewallRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FirewallRuleResource) Schema ¶
func (r *FirewallRuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FirewallRuleResource) Update ¶
func (r *FirewallRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FirewallRuleResourceModel ¶
type FirewallRuleResourceModel struct { Id types.String `tfsdk:"id"` FirewallID types.String `tfsdk:"firewall_id"` SourceIP types.String `tfsdk:"source_ip"` Protocol types.String `tfsdk:"protocol"` Description types.String `tfsdk:"description"` PortRangeMin types.Int64 `tfsdk:"port_range_min"` PortRangeMax types.Int64 `tfsdk:"port_range_max"` }
FirewallResourceModel describes the resource data model.
type ImageAccessMethodsModel ¶
type ImageDataSource ¶
type ImageDataSource struct {
// contains filtered or unexported fields
}
ImageDataSource defines the data source implementation.
func (*ImageDataSource) Configure ¶
func (d *ImageDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ImageDataSource) Metadata ¶
func (d *ImageDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ImageDataSource) Read ¶
func (d *ImageDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ImageDataSource) Schema ¶
func (d *ImageDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ImageDataSourceModel ¶
type ImageDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` MinimumSizeGb types.Int64 `tfsdk:"minimum_size_gb"` AccessMethods *ImageAccessMethodsModel `tfsdk:"access_methods"` PricePerHour types.Float64 `tfsdk:"price_per_hour"` PricePerMonthApprox types.Float64 `tfsdk:"price_per_month_approx"` BillingUnit types.String `tfsdk:"billing_unit"` }
ImageDataSourceModel describes the data source data model.
type ImageModel ¶
type ServerDataSource ¶
type ServerDataSource struct {
// contains filtered or unexported fields
}
ServerDataSource defines the data source implementation.
func (*ServerDataSource) Configure ¶
func (d *ServerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ServerDataSource) Metadata ¶
func (d *ServerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ServerDataSource) Read ¶
func (d *ServerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ServerDataSource) Schema ¶
func (d *ServerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ServerDataSourceModel ¶
type ServerDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Hostname types.String `tfsdk:"hostname"` Vcores types.Number `tfsdk:"vcores"` RamGB types.Number `tfsdk:"ram_gb"` Flavor types.String `tfsdk:"flavor"` VolumeSizeGB types.Number `tfsdk:"volume_size_gb"` ImageModel ImageModel `tfsdk:"image"` Status types.String `tfsdk:"status"` PowerState types.String `tfsdk:"power_state"` Features []types.String `tfsdk:"features"` CreatedAt types.String `tfsdk:"created_at"` DnsAddresses types.String `tfsdk:"dns_addresses"` PublicIP types.String `tfsdk:"public_ip"` PrivateIP types.String `tfsdk:"private_ip"` SshKeyID types.String `tfsdk:"ssh_key_id"` Firewalls []FirewallModel `tfsdk:"firewalls"` Snapshots []SnapshotsModel `tfsdk:"snapshots"` BackupsModel []BackupsModel `tfsdk:"backups"` BackupPreferenceModel BackupPreferenceModel `tfsdk:"backup_preference"` CostModel CostModel `tfsdk:"cost"` }
ServerDataSourceModel describes the data source data model.
type ServerResource ¶
type ServerResource struct {
// contains filtered or unexported fields
}
ServerResource defines the resource implementation.
func (*ServerResource) Configure ¶
func (r *ServerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServerResource) Create ¶
func (r *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ServerResource) Delete ¶
func (r *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ServerResource) ImportState ¶
func (r *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ServerResource) Metadata ¶
func (r *ServerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServerResource) Read ¶
func (r *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ServerResource) Schema ¶
func (r *ServerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServerResource) Update ¶
func (r *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ServerResourceModel ¶
type ServerResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Hostname types.String `tfsdk:"hostname"` FlavorID types.String `tfsdk:"flavor_id"` FirewallID types.String `tfsdk:"firewall_id"` AccessConfiguration *AccessConfigurationModel `tfsdk:"access_configuration"` Volume *VolumeModel `tfsdk:"volume"` EnablePrivateNetwork types.Bool `tfsdk:"enable_private_network"` EnableStrictAntiDDoSFiltering types.Bool `tfsdk:"enable_strict_antiddos_filtering"` UserData types.String `tfsdk:"user_data"` BackupPreference *BackupPreferenceModel `tfsdk:"backup_preference"` LastUpdated types.String `tfsdk:"last_updated"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
ServerResourceModel describes the resource data model.
type SnapShotImageModel ¶
type SnapShotImageModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` AccessMethods SnapshotAccessMethodsModel `tfsdk:"access_methods"` }
type SnapShotResource ¶
type SnapShotResource struct {
// contains filtered or unexported fields
}
SnapShotResource defines the resource implementation.
func (*SnapShotResource) Configure ¶
func (r *SnapShotResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SnapShotResource) Create ¶
func (r *SnapShotResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SnapShotResource) Delete ¶
func (r *SnapShotResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SnapShotResource) ImportState ¶
func (r *SnapShotResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SnapShotResource) Metadata ¶
func (r *SnapShotResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SnapShotResource) Read ¶
func (r *SnapShotResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SnapShotResource) Schema ¶
func (r *SnapShotResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SnapShotResource) Update ¶
func (r *SnapShotResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SnapShotResourceModel ¶
type SnapShotResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` ShutDownServer types.Bool `tfsdk:"shutdown_server"` LastUpdated types.String `tfsdk:"last_updated"` }
SnapShotResourceModel describes the resource data model.
type SnapshotCostModel ¶
type SnapshotDataSource ¶
type SnapshotDataSource struct {
// contains filtered or unexported fields
}
SnapshotDataSource defines the data source implementation.
func (*SnapshotDataSource) Configure ¶
func (d *SnapshotDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SnapshotDataSource) Metadata ¶
func (d *SnapshotDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SnapshotDataSource) Read ¶
func (d *SnapshotDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SnapshotDataSource) Schema ¶
func (d *SnapshotDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SnapshotDataSourceModel ¶
type SnapshotDataSourceModel struct { Id types.String `tfsdk:"id"` SizeGb types.Int64 `tfsdk:"size_gb"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` CreatedAt types.String `tfsdk:"created_at"` SourceServerName types.String `tfsdk:"source_server_name"` Image *SnapShotImageModel `tfsdk:"image"` Cost *SnapshotCostModel `tfsdk:"cost"` }
SnapshotDataSourceModel describes the data source data model.
type SnapshotsModel ¶
type SshKeyResource ¶
type SshKeyResource struct {
// contains filtered or unexported fields
}
SshKeyResource defines the resource implementation.
func (*SshKeyResource) Configure ¶
func (r *SshKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SshKeyResource) Create ¶
func (r *SshKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SshKeyResource) Delete ¶
func (r *SshKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SshKeyResource) ImportState ¶
func (r *SshKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SshKeyResource) Metadata ¶
func (r *SshKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SshKeyResource) Read ¶
func (r *SshKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SshKeyResource) Schema ¶
func (r *SshKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SshKeyResource) Update ¶
func (r *SshKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SshKeyResourceModel ¶
type SshKeyResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` PublicKey types.String `tfsdk:"public_key"` PrivateKey types.String `tfsdk:"private_key"` HasPrivateKey types.Bool `tfsdk:"has_private_key"` FingerPrint types.String `tfsdk:"fingerprint"` LastUpdated types.String `tfsdk:"last_updated"` }
SshKeyResourceModel describes the resource data model.
type SshkeyDataSource ¶
type SshkeyDataSource struct {
// contains filtered or unexported fields
}
SshkeyDataSource defines the data source implementation.
func (*SshkeyDataSource) Configure ¶
func (d *SshkeyDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*SshkeyDataSource) Metadata ¶
func (d *SshkeyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*SshkeyDataSource) Read ¶
func (d *SshkeyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SshkeyDataSource) Schema ¶
func (d *SshkeyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SshkeyDataSourceModel ¶
type SshkeyDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` FingerPrint types.String `tfsdk:"fingerprint"` PublicKey types.String `tfsdk:"public_key"` PrivateKey types.String `tfsdk:"private_key"` HasPrivateKey types.Bool `tfsdk:"has_private_key"` }
SshkeyDataSourceModel describes the data source data model.