Documentation
¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBootstrapResource() resource.Resource
- func NewGenConfigResource() resource.Resource
- func NewKubeconfigDataSource() datasource.DataSource
- type BootstrapResource
- func (r *BootstrapResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BootstrapResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BootstrapResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *BootstrapResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BootstrapResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BootstrapResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BootstrapResourceModel
- type GenConfigResource
- func (r *GenConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *GenConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *GenConfigResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *GenConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *GenConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GenConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GenConfigResourceModel
- type KubeconfigDataSource
- func (d *KubeconfigDataSource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (d *KubeconfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *KubeconfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- type KubeconfigDataSourceModel
- type TalosProvider
- func (p *TalosProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *TalosProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *TalosProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (p *TalosProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *TalosProvider) Resources(ctx context.Context) []func() resource.Resource
- type TalosProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBootstrapResource ¶ added in v0.3.0
func NewGenConfigResource ¶ added in v0.3.0
func NewKubeconfigDataSource ¶ added in v0.3.0
func NewKubeconfigDataSource() datasource.DataSource
Types ¶
type BootstrapResource ¶ added in v0.3.0
type BootstrapResource struct{}
func (*BootstrapResource) Create ¶ added in v0.3.0
func (r *BootstrapResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BootstrapResource) Delete ¶ added in v0.3.0
func (r *BootstrapResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BootstrapResource) GetSchema ¶ added in v0.3.0
func (r *BootstrapResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*BootstrapResource) Metadata ¶ added in v0.3.0
func (r *BootstrapResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BootstrapResource) Read ¶ added in v0.3.0
func (r *BootstrapResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BootstrapResource) Update ¶ added in v0.3.0
func (r *BootstrapResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BootstrapResourceModel ¶ added in v0.3.0
type BootstrapResourceModel = KubeconfigDataSourceModel
type GenConfigResource ¶ added in v0.3.0
type GenConfigResource struct{}
func (*GenConfigResource) Create ¶ added in v0.3.0
func (r *GenConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GenConfigResource) Delete ¶ added in v0.3.0
func (r *GenConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GenConfigResource) GetSchema ¶ added in v0.3.0
func (r *GenConfigResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*GenConfigResource) Metadata ¶ added in v0.3.0
func (r *GenConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GenConfigResource) Read ¶ added in v0.3.0
func (r *GenConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GenConfigResource) Update ¶ added in v0.3.0
func (r *GenConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GenConfigResourceModel ¶ added in v0.3.0
type GenConfigResourceModel struct { ClusterName types.String `tfsdk:"cluster_name"` ClusterEndpoint types.String `tfsdk:"cluster_endpoint"` KubernetesVersion types.String `tfsdk:"kubernetes_version"` ConfigPatch types.List `tfsdk:"config_patch"` ConfigPatchControlPlane types.List `tfsdk:"config_patch_control_plane"` ConfigPatchWorker types.List `tfsdk:"config_patch_worker"` ControlPlaneConfig types.String `tfsdk:"control_plane_config"` WorkerConfig types.String `tfsdk:"worker_config"` TalosConfig types.String `tfsdk:"talos_config"` InstallDisk types.String `tfsdk:"install_disk"` InstallImage types.String `tfsdk:"install_image"` AdditionalSans types.List `tfsdk:"additional_sans"` DnsDomain types.String `tfsdk:"dns_domain"` Persist types.Bool `tfsdk:"persist"` WithClusterDiscovery types.Bool `tfsdk:"with_cluster_discovery"` TalosVersion types.String `tfsdk:"talos_version"` RegistryMirrors types.Map `tfsdk:"registry_mirrors"` WithKubespan types.Bool `tfsdk:"with_kubespan"` }
type KubeconfigDataSource ¶ added in v0.3.0
type KubeconfigDataSource struct{}
func (*KubeconfigDataSource) GetSchema ¶ added in v0.3.0
func (d *KubeconfigDataSource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*KubeconfigDataSource) Metadata ¶ added in v0.3.0
func (d *KubeconfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*KubeconfigDataSource) Read ¶ added in v0.3.0
func (d *KubeconfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
type KubeconfigDataSourceModel ¶ added in v0.3.0
type KubeconfigDataSourceModel struct { Endpoint types.String `tfsdk:"endpoint"` MachineCa types.String `tfsdk:"machine_ca"` MachineCrt types.String `tfsdk:"machine_crt"` MachineKey types.String `tfsdk:"machine_key"` ClientCertificate types.String `tfsdk:"client_certificate"` ClientKey types.String `tfsdk:"client_key"` ClusterCaCertificate types.String `tfsdk:"cluster_ca_certificate"` Raw types.String `tfsdk:"raw"` }
type TalosProvider ¶ added in v0.3.0
type TalosProvider struct {
// contains filtered or unexported fields
}
func (*TalosProvider) Configure ¶ added in v0.3.0
func (p *TalosProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*TalosProvider) DataSources ¶ added in v0.3.0
func (p *TalosProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*TalosProvider) GetSchema ¶ added in v0.3.0
func (p *TalosProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*TalosProvider) Metadata ¶ added in v0.3.0
func (p *TalosProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
type TalosProviderModel ¶ added in v0.3.0
type TalosProviderModel struct{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.