provider

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewBootstrapResource added in v0.3.0

func NewBootstrapResource() resource.Resource

func NewGenConfigResource added in v0.3.0

func NewGenConfigResource() resource.Resource

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 (*BootstrapResource) Delete added in v0.3.0

func (*BootstrapResource) GetSchema added in v0.3.0

func (*BootstrapResource) Metadata added in v0.3.0

func (*BootstrapResource) Read added in v0.3.0

func (*BootstrapResource) Update added in v0.3.0

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 (*GenConfigResource) Delete added in v0.3.0

func (*GenConfigResource) GetSchema added in v0.3.0

func (*GenConfigResource) Metadata added in v0.3.0

func (*GenConfigResource) Read added in v0.3.0

func (*GenConfigResource) Update added in v0.3.0

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 (*KubeconfigDataSource) Metadata added in v0.3.0

func (*KubeconfigDataSource) Read added in v0.3.0

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 (*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 (*TalosProvider) Resources added in v0.3.0

func (p *TalosProvider) Resources(ctx context.Context) []func() resource.Resource

type TalosProviderModel added in v0.3.0

type TalosProviderModel struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL