searchdeployment

package
v1.15.1-pre Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 DataSourceSchema added in v1.15.0

func DataSourceSchema(ctx context.Context) schema.Schema

func NewSearchDeploymentReq

func NewSearchDeploymentReq(ctx context.Context, searchDeploymentPlan *TFSearchDeploymentRSModel) admin.ApiSearchDeploymentRequest

func Resource

func Resource() resource.Resource

func ResourceSchema added in v1.15.0

func ResourceSchema(ctx context.Context) schema.Schema

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 TFSearchDeploymentDSModel 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"`
}

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)

type TFSearchNodeSpecModel

type TFSearchNodeSpecModel struct {
	InstanceSize types.String `tfsdk:"instance_size"`
	NodeCount    types.Int64  `tfsdk:"node_count"`
}

Jump to

Keyboard shortcuts

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