provider

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 18 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 NewSpaceDataSource

func NewSpaceDataSource() datasource.DataSource

func NewSpaceResource

func NewSpaceResource() resource.Resource

Types

type HuggingFaceSpacesProvider

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

HuggingFaceSpacesProvider defines the provider implementation.

func (*HuggingFaceSpacesProvider) Configure

func (*HuggingFaceSpacesProvider) DataSources

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

func (*HuggingFaceSpacesProvider) Metadata

func (*HuggingFaceSpacesProvider) Resources

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

func (*HuggingFaceSpacesProvider) Schema

type HuggingFaceSpacesProviderModel

type HuggingFaceSpacesProviderModel struct {
	Token types.String `tfsdk:"token"`
}

HuggingFaceSpacesProviderModel describes the provider data model.

type SpaceDataSource

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

SpaceDataSource defines the data source implementation.

func (*SpaceDataSource) Configure

func (*SpaceDataSource) Metadata

func (*SpaceDataSource) Read

func (*SpaceDataSource) Schema

type SpaceDataSourceModel

type SpaceDataSourceModel struct {
	ID           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Author       types.String `tfsdk:"author"`
	LastModified types.String `tfsdk:"last_modified"`
	Likes        types.Int64  `tfsdk:"likes"`
	Private      types.Bool   `tfsdk:"private"`
	SDK          types.String `tfsdk:"sdk"`
	Hardware     types.String `tfsdk:"hardware"`
	Storage      types.String `tfsdk:"storage"`
	SleepTime    types.Int64  `tfsdk:"sleep_time"`
}

SpaceDataSourceModel describes the data source data model.

type SpaceResource

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

SpaceResource defines the resource implementation.

func (*SpaceResource) Configure

func (*SpaceResource) Create

func (*SpaceResource) Delete

func (*SpaceResource) ImportState

func (*SpaceResource) Metadata

func (*SpaceResource) Read

func (*SpaceResource) Schema

func (*SpaceResource) Update

type SpaceResourceModel

type SpaceResourceModel struct {
	ID        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Private   types.Bool   `tfsdk:"private"`
	SDK       types.String `tfsdk:"sdk"`
	Template  types.String `tfsdk:"template"`
	Secrets   types.Map    `tfsdk:"secrets"`
	Variables types.Map    `tfsdk:"variables"`
	Hardware  types.String `tfsdk:"hardware"`
	Storage   types.String `tfsdk:"storage"`
	SleepTime types.Int64  `tfsdk:"sleep_time"`
}

SpaceResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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