Documentation ¶
Index ¶
- Variables
- func New(version string) func() provider.Provider
- func NewClusterResource() resource.Resource
- type ClusterResource
- func (r *ClusterResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ClusterResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ClusterResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ClusterResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ClusterResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ClusterResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ClusterResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ClusterResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ClusterResourceModel
- type ReplicatedProvider
- func (p *ReplicatedProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ReplicatedProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ReplicatedProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ReplicatedProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ReplicatedProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ReplicatedProviderModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterNotFound = fmt.Errorf("Not found")
Functions ¶
func NewClusterResource ¶
Types ¶
type ClusterResource ¶
type ClusterResource struct {
// contains filtered or unexported fields
}
ClusterResource defines the resource implementation.
func (*ClusterResource) Configure ¶
func (r *ClusterResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ClusterResource) Create ¶
func (r *ClusterResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ClusterResource) Delete ¶
func (r *ClusterResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ClusterResource) ImportState ¶
func (r *ClusterResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ClusterResource) Metadata ¶
func (r *ClusterResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ClusterResource) Read ¶
func (r *ClusterResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ClusterResource) Schema ¶
func (r *ClusterResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ClusterResource) Update ¶
func (r *ClusterResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (p *ReplicatedProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ReplicatedProvider) DataSources ¶
func (p *ReplicatedProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ReplicatedProvider) Metadata ¶
func (p *ReplicatedProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ReplicatedProvider) Resources ¶
func (p *ReplicatedProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ReplicatedProvider) Schema ¶
func (p *ReplicatedProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.