Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewImagesDataSource() datasource.DataSource
- func NewLocationDataSource() datasource.DataSource
- func NewProfileDataSource() datasource.DataSource
- func NewPublicKeyResource() resource.Resource
- func NewServerDataSource() datasource.DataSource
- func NewServerResource() resource.Resource
- type CPU
- type ImagesDataSource
- func (d *ImagesDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (*ImagesDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ImagesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ImagesDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ImagesDataSourceModel
- type ImagesModel
- type LocationDataSource
- func (d *LocationDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (*LocationDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *LocationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *LocationDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type LocationDataSourceModel
- type Price
- type ProfileDataSource
- func (d *ProfileDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (*ProfileDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ProfileDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ProfileDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ProfileDataSourceModel
- type ProfileModel
- type PublicKeyResource
- func (d *PublicKeyResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (s *PublicKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *PublicKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *PublicKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (s *PublicKeyResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (s *PublicKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (s *PublicKeyResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *PublicKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PublicKeyResourceModel
- type ServerDataSource
- func (d *ServerDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (*ServerDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ServerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ServerDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ServerDataSourceModel
- type ServerResource
- func (d *ServerResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (s *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (s *ServerResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (s *ServerResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (s *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (s *ServerResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServerResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImagesDataSource ¶
func NewImagesDataSource() datasource.DataSource
func NewLocationDataSource ¶
func NewLocationDataSource() datasource.DataSource
func NewProfileDataSource ¶
func NewProfileDataSource() datasource.DataSource
func NewPublicKeyResource ¶
NewPublicKeyResource is a helper function to simplify the provider implementation.
func NewServerDataSource ¶
func NewServerDataSource() datasource.DataSource
func NewServerResource ¶
NewServerResource is a helper function to simplify the provider implementation.
Types ¶
type ImagesDataSource ¶
type ImagesDataSource struct {
// contains filtered or unexported fields
}
func (*ImagesDataSource) Configure ¶
func (d *ImagesDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ImagesDataSource) Metadata ¶
func (*ImagesDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ImagesDataSource) Read ¶
func (d *ImagesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data
func (*ImagesDataSource) Schema ¶
func (d *ImagesDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type ImagesDataSourceModel ¶
type ImagesDataSourceModel struct {
Images []ImagesModel `tfsdk:"images"`
}
type ImagesModel ¶
type LocationDataSource ¶
type LocationDataSource struct {
// contains filtered or unexported fields
}
func (*LocationDataSource) Configure ¶
func (d *LocationDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*LocationDataSource) Metadata ¶
func (*LocationDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*LocationDataSource) Read ¶
func (d *LocationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data
func (*LocationDataSource) Schema ¶
func (d *LocationDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type LocationDataSourceModel ¶
type ProfileDataSource ¶
type ProfileDataSource struct {
// contains filtered or unexported fields
}
func (*ProfileDataSource) Configure ¶
func (d *ProfileDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ProfileDataSource) Metadata ¶
func (*ProfileDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ProfileDataSource) Read ¶
func (d *ProfileDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data
func (*ProfileDataSource) Schema ¶
func (d *ProfileDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type ProfileDataSourceModel ¶
type ProfileDataSourceModel struct { LocationId types.String `tfsdk:"location_id"` Profile []ProfileModel `tfsdk:"profiles"` }
type ProfileModel ¶
type PublicKeyResource ¶
type PublicKeyResource struct {
// contains filtered or unexported fields
}
PublicKeyResource is the resource implementation.
func (*PublicKeyResource) Configure ¶
func (d *PublicKeyResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*PublicKeyResource) Create ¶
func (s *PublicKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create a new resource.
func (*PublicKeyResource) Delete ¶
func (s *PublicKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*PublicKeyResource) ImportState ¶
func (s *PublicKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
Import using slug as the attribute
func (*PublicKeyResource) Metadata ¶
func (s *PublicKeyResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*PublicKeyResource) Read ¶
func (s *PublicKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read resource information.
func (*PublicKeyResource) Schema ¶
func (s *PublicKeyResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*PublicKeyResource) Update ¶
func (s *PublicKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PublicKeyResourceModel ¶
type PublicKeyResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Key types.String `tfsdk:"key"` Created types.String `tfsdk:"created"` PublicKey types.String `tfsdk:"public_key"` LastUpdated types.String `tfsdk:"last_updated"` }
PublicKeyResource is the model implementation.
type ServerDataSource ¶
type ServerDataSource struct {
// contains filtered or unexported fields
}
func (*ServerDataSource) Configure ¶
func (d *ServerDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ServerDataSource) Metadata ¶
func (*ServerDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ServerDataSource) Read ¶
func (d *ServerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*ServerDataSource) Schema ¶
func (d *ServerDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type ServerDataSourceModel ¶
type ServerDataSourceModel struct { Slug types.String `tfsdk:"slug"` Name types.String `tfsdk:"name"` Date types.String `tfsdk:"date"` Location types.String `tfsdk:"location"` Image types.String `tfsdk:"image"` Profile types.String `tfsdk:"profile"` Ipv4 types.String `tfsdk:"ipv4"` Ipv6 types.String `tfsdk:"ipv6"` Status types.String `tfsdk:"status"` Virtualization types.String `tfsdk:"virtualization"` WebServer types.String `tfsdk:"web_server"` SnapshotRunTime types.Int64 `tfsdk:"snapshot_run_time"` WordPressLockDown types.Bool `tfsdk:"word_press_lock_down"` SSHPasswordAuthEnabled types.Bool `tfsdk:"ssh_password_auth_enabled"` }
type ServerResource ¶
type ServerResource struct {
// contains filtered or unexported fields
}
ServerResource is the resource implementation.
func (*ServerResource) Configure ¶
func (d *ServerResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ServerResource) Create ¶
func (s *ServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create a new resource.
func (*ServerResource) Delete ¶
func (s *ServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*ServerResource) ImportState ¶
func (s *ServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
Import using slug as the attribute
func (*ServerResource) Metadata ¶
func (s *ServerResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the resource type name.
func (*ServerResource) ModifyPlan ¶
func (s *ServerResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
ModifyPlan tailor the plan to match the expected end state.
func (*ServerResource) Read ¶
func (s *ServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read resource information.
func (*ServerResource) Schema ¶
func (s *ServerResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the resource.
func (*ServerResource) Update ¶
func (s *ServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ServerResourceModel ¶
type ServerResourceModel struct { Slug types.String `tfsdk:"slug"` Name types.String `tfsdk:"name"` LocationID types.String `tfsdk:"location_id"` ProfileSlug types.String `tfsdk:"profile_slug"` ImageSlug types.String `tfsdk:"image_slug"` Date types.String `tfsdk:"date"` Location types.String `tfsdk:"location"` Image types.String `tfsdk:"image"` Profile types.String `tfsdk:"profile"` Ipv4 types.String `tfsdk:"ipv4"` Ipv6 types.String `tfsdk:"ipv6"` Status types.String `tfsdk:"status"` Virtualization types.String `tfsdk:"virtualization"` WebServer types.String `tfsdk:"web_server"` SnapshotRunTime types.Int64 `tfsdk:"snapshot_run_time"` WordPressLockDown types.Bool `tfsdk:"word_press_lock_down"` SSHPasswordAuthEnabled types.Bool `tfsdk:"ssh_password_auth_enabled"` LastUpdated types.String `tfsdk:"last_updated"` }
ServerResource is the model implementation.