Documentation ¶
Index ¶
- Constants
- Variables
- func New(version string) func() provider.Provider
- func NewDeploymentResource() resource.Resource
- func NewHardwareDataSource() datasource.DataSource
- func NewModelVersionDataSource() datasource.DataSource
- type DeploymentResource
- func (r *DeploymentResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DeploymentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeploymentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeploymentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeploymentResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DeploymentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeploymentResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DeploymentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DeploymentResourceModel
- type HardwareDataSource
- func (d *HardwareDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *HardwareDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *HardwareDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *HardwareDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type HardwareDataSourceModel
- type HardwareModel
- type ModelVersionDataSource
- func (d *ModelVersionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ModelVersionDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ModelVersionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ModelVersionDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ModelVersionDataSourceModel
- type ModelVersionModel
- type ReplicateProvider
- func (p *ReplicateProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ReplicateProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ReplicateProvider) Functions(ctx context.Context) []func() function.Function
- func (p *ReplicateProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ReplicateProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ReplicateProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ReplicateProviderModel
Constants ¶
View Source
const (
EnvAccApiToken = "REPLICATE_API_TOKEN"
)
Variables ¶
View Source
var (
UserAgent = "terraform-provider-replicate"
)
Functions ¶
func NewDeploymentResource ¶
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 (r *DeploymentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DeploymentResource) Create ¶
func (r *DeploymentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeploymentResource) Delete ¶
func (r *DeploymentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeploymentResource) ImportState ¶
func (r *DeploymentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeploymentResource) Metadata ¶
func (r *DeploymentResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeploymentResource) Read ¶
func (r *DeploymentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeploymentResource) Schema ¶
func (r *DeploymentResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DeploymentResource) Update ¶
func (r *DeploymentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (d *HardwareDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*HardwareDataSource) Metadata ¶
func (d *HardwareDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*HardwareDataSource) Read ¶
func (d *HardwareDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*HardwareDataSource) Schema ¶
func (d *HardwareDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type HardwareDataSourceModel ¶
type HardwareDataSourceModel struct { Hardware []HardwareModel `tfsdk:"hardware"` Id types.String `tfsdk:"id"` }
HardwareDataSourceModel describes the data source data model.
type HardwareModel ¶
type ModelVersionDataSource ¶
type ModelVersionDataSource struct {
// contains filtered or unexported fields
}
ModelVersionDataSource defines the data source implementation.
func (*ModelVersionDataSource) Configure ¶
func (d *ModelVersionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ModelVersionDataSource) Metadata ¶
func (d *ModelVersionDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ModelVersionDataSource) Read ¶
func (d *ModelVersionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ModelVersionDataSource) Schema ¶
func (d *ModelVersionDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 ReplicateProvider ¶
type ReplicateProvider struct {
// contains filtered or unexported fields
}
ReplicateProvider defines the provider implementation.
func (*ReplicateProvider) Configure ¶
func (p *ReplicateProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 (p *ReplicateProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ReplicateProvider) Resources ¶
func (p *ReplicateProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ReplicateProvider) Schema ¶
func (p *ReplicateProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.