provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterNotFound = fmt.Errorf("Not found")

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
}

ClusterResource defines the resource implementation.

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"`
	Distribution types.String `tfsdk:"distribution"`
	Version      types.String `tfsdk:"version"`
	InstanceType types.String `tfsdk:"instance_type"`
	Disk         types.Int64  `tfsdk:"disk"`
	Nodes        types.Int64  `tfsdk:"nodes"`
	TTL          types.String `tfsdk:"ttl"`
	WaitDuration types.String `tfsdk:"wait_duration"`
	Kubeconfig   types.String `tfsdk:"kubeconfig"`
}

ClusterResourceModel describes the resource data model.

type ReplicatedProvider

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

ReplicatedProvider defines the provider implementation.

func (*ReplicatedProvider) Configure

func (*ReplicatedProvider) DataSources

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

func (*ReplicatedProvider) Metadata

func (*ReplicatedProvider) Resources

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

func (*ReplicatedProvider) Schema

type ReplicatedProviderModel

type ReplicatedProviderModel struct {
	Endpoint types.String `tfsdk:"endpoint"`
	ApiToken types.String `tfsdk:"api_token"`
}

ReplicatedProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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