Documentation ¶
Overview ¶
Package serverlesscluster contains the implementation of the ServerlessCluster resource following the Terraform framework interfaces.
Package serverlesscluster contains the implementation of the ServerlessCluster resource following the Terraform framework interfaces.
Index ¶
- func GenerateServerlessClusterRequest(model models.ServerlessCluster) (*controlplanev1beta2.ServerlessClusterCreate, error)
- type DataSourceServerlessCluster
- func (d *DataSourceServerlessCluster) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (*DataSourceServerlessCluster) Metadata(_ context.Context, _ datasource.MetadataRequest, ...)
- func (d *DataSourceServerlessCluster) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (*DataSourceServerlessCluster) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ServerlessCluster
- func (c *ServerlessCluster) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (c *ServerlessCluster) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (c *ServerlessCluster) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (*ServerlessCluster) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (*ServerlessCluster) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (c *ServerlessCluster) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (*ServerlessCluster) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (*ServerlessCluster) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateServerlessClusterRequest ¶
func GenerateServerlessClusterRequest(model models.ServerlessCluster) (*controlplanev1beta2.ServerlessClusterCreate, error)
GenerateServerlessClusterRequest was pulled out to enable unit testing
Types ¶
type DataSourceServerlessCluster ¶
type DataSourceServerlessCluster struct {
CpCl *cloud.ControlPlaneClientSet
}
DataSourceServerlessCluster represents a serverless cluster data source.
func (*DataSourceServerlessCluster) Configure ¶
func (d *DataSourceServerlessCluster) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure uses provider level data to configure DataSourceServerlessCluster's client.
func (*DataSourceServerlessCluster) Metadata ¶
func (*DataSourceServerlessCluster) Metadata(_ context.Context, _ datasource.MetadataRequest, response *datasource.MetadataResponse)
Metadata returns the metadata for the ServerlessCluster data source.
func (*DataSourceServerlessCluster) Read ¶
func (d *DataSourceServerlessCluster) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read reads the ServerlessCluster data source's values and updates the state.
func (*DataSourceServerlessCluster) Schema ¶
func (*DataSourceServerlessCluster) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema returns the schema for the ServerlessCluster data source.
type ServerlessCluster ¶
type ServerlessCluster struct {
CpCl *cloud.ControlPlaneClientSet
}
ServerlessCluster represents a cluster managed resource.
func (*ServerlessCluster) Configure ¶
func (c *ServerlessCluster) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure uses provider level data to configure ServerlessCluster's clients.
func (*ServerlessCluster) Create ¶
func (c *ServerlessCluster) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates a new ServerlessCluster resource. It updates the state if the resource is successfully created.
func (*ServerlessCluster) Delete ¶
func (c *ServerlessCluster) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the ServerlessCluster resource.
func (*ServerlessCluster) ImportState ¶
func (*ServerlessCluster) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports and update the state of the serverless cluster resource.
func (*ServerlessCluster) Metadata ¶
func (*ServerlessCluster) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the full name of the ServerlessCluster resource.
func (*ServerlessCluster) Read ¶
func (c *ServerlessCluster) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read reads ServerlessCluster resource's values and updates the state.
func (*ServerlessCluster) Schema ¶
func (*ServerlessCluster) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema returns the schema for the ServerlessCluster resource.
func (*ServerlessCluster) Update ¶
func (*ServerlessCluster) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update all serverless cluster updates are currently delete and recreate.