provider

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 31 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 NewInstanceDataSource

func NewInstanceDataSource() datasource.DataSource

func NewInstanceResource

func NewInstanceResource() resource.Resource

func NewInstanceTypesDataSource

func NewInstanceTypesDataSource() datasource.DataSource

func NewSSHKeyResource

func NewSSHKeyResource() resource.Resource

Types

type InstanceDataSource

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

InstanceDataSource is the data source implementation.

func (*InstanceDataSource) Configure

func (*InstanceDataSource) Metadata

Metadata returns the data source type name.

func (*InstanceDataSource) Read

func (*InstanceDataSource) Schema

Schema defines the schema for the data source.

type InstanceDataSourceModel

type InstanceDataSourceModel struct {
	FileSystemNames []types.String        `tfsdk:"file_system_names"`
	Hostname        types.String          `tfsdk:"hostname"`
	ID              types.String          `tfsdk:"id"`
	InstanceType    *tfTypes.InstanceType `tfsdk:"instance_type"`
	IP              types.String          `tfsdk:"ip"`
	IsReserved      types.Bool            `tfsdk:"is_reserved"`
	JupyterToken    types.String          `tfsdk:"jupyter_token"`
	JupyterURL      types.String          `tfsdk:"jupyter_url"`
	Name            types.String          `tfsdk:"name"`
	PrivateIP       types.String          `tfsdk:"private_ip"`
	Region          *tfTypes.Region       `tfsdk:"region"`
	SSHKeyNames     []types.String        `tfsdk:"ssh_key_names"`
	Status          types.String          `tfsdk:"status"`
}

InstanceDataSourceModel describes the data model.

func (*InstanceDataSourceModel) RefreshFromSharedInstance

func (r *InstanceDataSourceModel) RefreshFromSharedInstance(resp *shared.Instance)

type InstanceResource

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

InstanceResource defines the resource implementation.

func (*InstanceResource) Configure

func (*InstanceResource) Create

func (*InstanceResource) Delete

func (*InstanceResource) ImportState

func (*InstanceResource) Metadata

func (*InstanceResource) Read

func (*InstanceResource) Schema

func (*InstanceResource) Update

type InstanceResourceModel

type InstanceResourceModel struct {
	RegionName       types.String          `tfsdk:"region_name"`
	InstanceTypeName types.String          `tfsdk:"instance_type_name"`
	FileSystemNames  []types.String        `tfsdk:"file_system_names"`
	Hostname         types.String          `tfsdk:"hostname"`
	ID               types.String          `tfsdk:"id"`
	InstanceType     *tfTypes.InstanceType `tfsdk:"instance_type"`
	IP               types.String          `tfsdk:"ip"`
	IsReserved       types.Bool            `tfsdk:"is_reserved"`
	JupyterToken     types.String          `tfsdk:"jupyter_token"`
	JupyterURL       types.String          `tfsdk:"jupyter_url"`
	Name             types.String          `tfsdk:"name"`
	PrivateIP        types.String          `tfsdk:"private_ip"`
	Region           *tfTypes.Region       `tfsdk:"region"`
	SSHKeyNames      []types.String        `tfsdk:"ssh_key_names"`
	Status           types.String          `tfsdk:"status"`
	Wait             types.Bool            `tfsdk:"wait"`
	Timeouts         timeouts.Value        `tfsdk:"timeouts"`
}

InstanceResourceModel describes the resource data model.

func (*InstanceResourceModel) RefreshFromSharedInstance

func (r *InstanceResourceModel) RefreshFromSharedInstance(resp *shared.Instance)

func (*InstanceResourceModel) ToSharedLaunch

func (r *InstanceResourceModel) ToSharedLaunch() *shared.Launch

func (*InstanceResourceModel) ToSharedUpdate added in v0.1.3

func (r *InstanceResourceModel) ToSharedUpdate() *shared.Update

type InstanceTypesDataSource

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

InstanceTypesDataSource is the data source implementation.

func (*InstanceTypesDataSource) Configure

func (*InstanceTypesDataSource) Metadata

Metadata returns the data source type name.

func (*InstanceTypesDataSource) Read

func (*InstanceTypesDataSource) Schema

Schema defines the schema for the data source.

type InstanceTypesDataSourceModel

type InstanceTypesDataSourceModel struct {
	Data map[string]tfTypes.Data `tfsdk:"data"`
}

InstanceTypesDataSourceModel describes the data model.

func (*InstanceTypesDataSourceModel) RefreshFromSharedInstanceTypes

func (r *InstanceTypesDataSourceModel) RefreshFromSharedInstanceTypes(resp *shared.InstanceTypes)

type LambdaProvider

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

func (*LambdaProvider) Configure

func (*LambdaProvider) DataSources

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

func (*LambdaProvider) Metadata

func (*LambdaProvider) Resources

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

func (*LambdaProvider) Schema

type LambdaProviderModel

type LambdaProviderModel struct {
	ServerURL  types.String `tfsdk:"server_url"`
	BearerAuth types.String `tfsdk:"bearer_auth"`
}

LambdaProviderModel describes the provider data model.

type SSHKeyResource

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

SSHKeyResource defines the resource implementation.

func (*SSHKeyResource) Configure

func (*SSHKeyResource) Create

func (*SSHKeyResource) Delete

func (*SSHKeyResource) ImportState

func (*SSHKeyResource) Metadata

func (*SSHKeyResource) Read

func (*SSHKeyResource) Schema

func (*SSHKeyResource) Update

type SSHKeyResourceModel

type SSHKeyResourceModel struct {
	ID         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	PrivateKey types.String `tfsdk:"private_key"`
	PublicKey  types.String `tfsdk:"public_key"`
}

SSHKeyResourceModel describes the resource data model.

func (*SSHKeyResourceModel) RefreshFromSharedSSHKey

func (r *SSHKeyResourceModel) RefreshFromSharedSSHKey(resp *shared.SSHKey)

func (*SSHKeyResourceModel) ToSharedAddSSHKey

func (r *SSHKeyResourceModel) ToSharedAddSSHKey() *shared.AddSSHKey

Directories

Path Synopsis
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator.
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator.

Jump to

Keyboard shortcuts

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