Documentation
¶
Index ¶
- Constants
- Variables
- func DataSource() datasource.DataSource
- func DataSourceSchema(ctx context.Context) schema.Schema
- func NewSearchDeploymentReq(ctx context.Context, searchDeploymentPlan *TFSearchDeploymentRSModel) admin.ApiSearchDeploymentRequest
- func Resource() resource.Resource
- func ResourceSchema(ctx context.Context) schema.Schema
- func WaitSearchNodeDelete(ctx context.Context, projectID, clusterName string, client DeploymentService, ...) error
- func WaitSearchNodeStateTransition(ctx context.Context, projectID, clusterName string, client DeploymentService, ...) (*admin.ApiSearchDeploymentResponse, error)
- type DeploymentService
- type DeploymentServiceFromClient
- type TFSearchDeploymentDSModel
- type TFSearchDeploymentRSModel
- type TFSearchNodeSpecModel
Constants ¶
View Source
const SearchDeploymentDoesNotExistsError = "ATLAS_FTS_DEPLOYMENT_DOES_NOT_EXIST"
Variables ¶
View Source
var SpecObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{ "instance_size": types.StringType, "node_count": types.Int64Type, }}
Functions ¶
func DataSource ¶
func DataSource() datasource.DataSource
func NewSearchDeploymentReq ¶
func NewSearchDeploymentReq(ctx context.Context, searchDeploymentPlan *TFSearchDeploymentRSModel) admin.ApiSearchDeploymentRequest
func WaitSearchNodeDelete ¶
func WaitSearchNodeDelete(ctx context.Context, projectID, clusterName string, client DeploymentService, timeConfig retrystrategy.TimeConfig) error
func WaitSearchNodeStateTransition ¶
func WaitSearchNodeStateTransition(ctx context.Context, projectID, clusterName string, client DeploymentService, timeConfig retrystrategy.TimeConfig) (*admin.ApiSearchDeploymentResponse, error)
Types ¶
type DeploymentService ¶
type DeploymentService interface {
GetAtlasSearchDeployment(ctx context.Context, groupID, clusterName string) (*admin.ApiSearchDeploymentResponse, *http.Response, error)
}
func ServiceFromClient ¶
func ServiceFromClient(client *admin.APIClient) DeploymentService
type DeploymentServiceFromClient ¶
type DeploymentServiceFromClient struct {
// contains filtered or unexported fields
}
func (*DeploymentServiceFromClient) GetAtlasSearchDeployment ¶
func (a *DeploymentServiceFromClient) GetAtlasSearchDeployment(ctx context.Context, groupID, clusterName string) (*admin.ApiSearchDeploymentResponse, *http.Response, error)
type TFSearchDeploymentDSModel ¶ added in v1.15.0
type TFSearchDeploymentRSModel ¶
type TFSearchDeploymentRSModel struct { ID types.String `tfsdk:"id"` ClusterName types.String `tfsdk:"cluster_name"` ProjectID types.String `tfsdk:"project_id"` Specs types.List `tfsdk:"specs"` StateName types.String `tfsdk:"state_name"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
func NewTFSearchDeployment ¶
func NewTFSearchDeployment(ctx context.Context, clusterName string, deployResp *admin.ApiSearchDeploymentResponse, timeout *timeouts.Value) (*TFSearchDeploymentRSModel, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.