Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewClusterResource() resource.Resource
- type ClusterResource
- func (r *ClusterResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ClusterResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ClusterResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ClusterResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ClusterResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ClusterResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ClusterResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ClusterResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ClusterResourceModel
- type ClusterResourceModelHost
- type ClusterResourceModelHostSSH
- type K0sProvider
- func (p *K0sProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *K0sProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *K0sProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *K0sProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *K0sProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type K0sProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterResource ¶
Types ¶
type ClusterResource ¶
type ClusterResource struct {
// contains filtered or unexported fields
}
func (*ClusterResource) Configure ¶
func (r *ClusterResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ClusterResource) Create ¶
func (r *ClusterResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ClusterResource) Delete ¶
func (r *ClusterResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ClusterResource) ImportState ¶
func (r *ClusterResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ClusterResource) Metadata ¶
func (r *ClusterResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ClusterResource) Read ¶
func (r *ClusterResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ClusterResource) Schema ¶
func (r *ClusterResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ClusterResource) Update ¶
func (r *ClusterResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ClusterResourceModel ¶
type ClusterResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Version types.String `tfsdk:"version"` Hosts []ClusterResourceModelHost `tfsdk:"hosts"` Kubeconfig types.String `tfsdk:"kubeconfig"` DynamicConfig types.Bool `tfsdk:"dynamic_config"` Config types.String `tfsdk:"config"` Concurrency types.Int64 `tfsdk:"concurrency"` NoWait types.Bool `tfsdk:"no_wait"` NoDrain types.Bool `tfsdk:"no_drain"` }
type ClusterResourceModelHost ¶
type ClusterResourceModelHost struct { Role types.String `tfsdk:"role"` NoTaints types.Bool `tfsdk:"no_taints"` Hostname types.String `tfsdk:"hostname"` SSH ClusterResourceModelHostSSH `tfsdk:"ssh"` PrivateInterface types.String `tfsdk:"private_interface"` PrivateAddress types.String `tfsdk:"private_address"` OS types.String `tfsdk:"os"` InstallFlags types.List `tfsdk:"install_flags"` Environment types.Map `tfsdk:"environment"` }
type K0sProvider ¶
type K0sProvider struct {
// contains filtered or unexported fields
}
func (*K0sProvider) Configure ¶
func (p *K0sProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*K0sProvider) DataSources ¶
func (p *K0sProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*K0sProvider) Metadata ¶
func (p *K0sProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*K0sProvider) Resources ¶
func (p *K0sProvider) Resources(ctx context.Context) []func() resource.Resource
func (*K0sProvider) Schema ¶
func (p *K0sProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type K0sProviderModel ¶
type K0sProviderModel struct { }
Click to show internal directories.
Click to hide internal directories.