Documentation ¶
Index ¶
- func New(p common.Provider) func() resource.Resource
- type ArgusExtension
- type Cluster
- type Extensions
- type Hibernation
- type Maintenance
- type NodePool
- type Resource
- func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r Resource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r Resource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type Taint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgusExtension ¶
type Cluster ¶
type Cluster struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` ProjectID types.String `tfsdk:"project_id"` KubernetesVersion types.String `tfsdk:"kubernetes_version"` KubernetesVersionUsed types.String `tfsdk:"kubernetes_version_used"` AllowPrivilegedContainers types.Bool `tfsdk:"allow_privileged_containers"` NodePools []NodePool `tfsdk:"node_pools"` Maintenance *Maintenance `tfsdk:"maintenance"` Hibernations []Hibernation `tfsdk:"hibernations"` Extensions *Extensions `tfsdk:"extensions"` Status types.String `tfsdk:"status"` KubeConfig types.String `tfsdk:"kube_config"` }
Cluster is the schema model
type Extensions ¶
type Extensions struct {
Argus *ArgusExtension `tfsdk:"argus"`
}
type Hibernation ¶
type Maintenance ¶
type NodePool ¶
type NodePool struct { Name types.String `tfsdk:"name"` MachineType types.String `tfsdk:"machine_type"` OSName types.String `tfsdk:"os_name"` OSVersion types.String `tfsdk:"os_version"` Minimum types.Int64 `tfsdk:"minimum"` Maximum types.Int64 `tfsdk:"maximum"` MaxSurge types.Int64 `tfsdk:"max_surge"` VolumeType types.String `tfsdk:"volume_type"` VolumeSizeGB types.Int64 `tfsdk:"volume_size_gb"` Labels types.Map `tfsdk:"labels"` Taints []Taint `tfsdk:"taints"` ContainerRuntime types.String `tfsdk:"container_runtime"` Zones types.List `tfsdk:"zones"` }
type Resource ¶
Resource is the exported resource
func (Resource) Create ¶
func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create - lifecycle function
func (Resource) Delete ¶
func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete - lifecycle function
func (*Resource) ImportState ¶
func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState handles terraform import
func (Resource) Metadata ¶
func (r Resource) Metadata(_ context.Context, req resource.MetadataRequest, res *resource.MetadataResponse)
Metadata returns data resource metadata
func (Resource) Read ¶
func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read - lifecycle function
func (Resource) Update ¶
func (r Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update - lifecycle function
Click to show internal directories.
Click to hide internal directories.