provider

package
v0.0.0-...-2da12b7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvAccApiToken = "REPLICATE_API_TOKEN"
)

Variables

View Source
var (
	UserAgent = "terraform-provider-replicate"
)

Functions

func New

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

func NewDeploymentResource

func NewDeploymentResource() resource.Resource

func NewHardwareDataSource

func NewHardwareDataSource() datasource.DataSource

func NewModelVersionDataSource

func NewModelVersionDataSource() datasource.DataSource

Types

type DeploymentResource

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

DeploymentResource defines the resource implementation.

func (*DeploymentResource) Configure

func (*DeploymentResource) Create

func (*DeploymentResource) Delete

func (*DeploymentResource) ImportState

func (*DeploymentResource) Metadata

func (*DeploymentResource) Read

func (*DeploymentResource) Schema

func (*DeploymentResource) Update

type DeploymentResourceModel

type DeploymentResourceModel struct {
	Name         types.String `tfsdk:"name"`
	Owner        types.String `tfsdk:"owner"`
	Model        types.String `tfsdk:"model"`
	Version      types.String `tfsdk:"version"`
	Hardware     types.String `tfsdk:"hardware"`
	MinInstances types.Int64  `tfsdk:"min_instances"`
	MaxInstances types.Int64  `tfsdk:"max_instances"`
	Id           types.String `tfsdk:"id"`
}

DeploymentResourceModel describes the resource data model.

type HardwareDataSource

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

HardwareDataSource defines the data source implementation.

func (*HardwareDataSource) Configure

func (*HardwareDataSource) Metadata

func (*HardwareDataSource) Read

func (*HardwareDataSource) Schema

type HardwareDataSourceModel

type HardwareDataSourceModel struct {
	Hardware []HardwareModel `tfsdk:"hardware"`
	Id       types.String    `tfsdk:"id"`
}

HardwareDataSourceModel describes the data source data model.

type HardwareModel

type HardwareModel struct {
	Name types.String `tfsdk:"name"`
	SKU  types.String `tfsdk:"sku"`
}

type ModelVersionDataSource

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

ModelVersionDataSource defines the data source implementation.

func (*ModelVersionDataSource) Configure

func (*ModelVersionDataSource) Metadata

func (*ModelVersionDataSource) Read

func (*ModelVersionDataSource) Schema

type ModelVersionDataSourceModel

type ModelVersionDataSourceModel struct {
	Model    types.String        `tfsdk:"model"`
	Versions []ModelVersionModel `tfsdk:"versions"`
	Id       types.String        `tfsdk:"id"`
}

ModelVersionDataSourceModel describes the data source data model.

type ModelVersionModel

type ModelVersionModel struct {
	ID         types.String `tfsdk:"id"`
	CreatedAt  types.String `tfsdk:"created_at"`
	CogVersion types.String `tfsdk:"cog_version"`
}

type ReplicateProvider

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

ReplicateProvider defines the provider implementation.

func (*ReplicateProvider) Configure

func (*ReplicateProvider) DataSources

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

func (*ReplicateProvider) Functions

func (p *ReplicateProvider) Functions(ctx context.Context) []func() function.Function

func (*ReplicateProvider) Metadata

func (*ReplicateProvider) Resources

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

func (*ReplicateProvider) Schema

type ReplicateProviderModel

type ReplicateProviderModel struct {
	ApiToken types.String `tfsdk:"api_token"`
	BaseURL  types.String `tfsdk:"base_url"`
}

ReplicateProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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