provider

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 19 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 NewClusterResource

func NewClusterResource() resource.Resource

Types

type ClusterResource

type ClusterResource struct {
	// contains filtered or unexported fields
}

func (*ClusterResource) Configure

func (*ClusterResource) Create

func (*ClusterResource) Delete

func (*ClusterResource) ImportState

func (*ClusterResource) Metadata

func (*ClusterResource) Read

func (*ClusterResource) Schema

func (*ClusterResource) Update

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 ClusterResourceModelHostSSH

type ClusterResourceModelHostSSH struct {
	Address types.String `tfsdk:"address"`
	User    types.String `tfsdk:"user"`
	Port    types.Int64  `tfsdk:"port"`
	KeyPath types.String `tfsdk:"key_path"`
}

type K0sProvider

type K0sProvider struct {
	// contains filtered or unexported fields
}

func (*K0sProvider) Configure

func (*K0sProvider) DataSources

func (p *K0sProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*K0sProvider) Metadata

func (*K0sProvider) Resources

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

func (*K0sProvider) Schema

type K0sProviderModel

type K0sProviderModel struct {
}

Jump to

Keyboard shortcuts

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