request

package
v0.124.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDashboardsNodeGroup

func AddDashboardsNodeGroup(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.AddDashboardsNodeGroupRequest)

func AddOpenSearchNodeGroup

func AddOpenSearchNodeGroup(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.AddOpenSearchNodeGroupRequest)

func CreateCluster

func CreateCluster(ctx context.Context, sdk *ycsdk.SDK, diag *diag.Diagnostics, req *opensearch.CreateClusterRequest) string

func DeleteCluster

func DeleteCluster(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, cid string)

func DeleteDashboardsNodeGroup

func DeleteDashboardsNodeGroup(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.DeleteDashboardsNodeGroupRequest)

func DeleteOpenSearchNodeGroup

func DeleteOpenSearchNodeGroup(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.DeleteOpenSearchNodeGroupRequest)

func GetCusterByID

func GetCusterByID(ctx context.Context, sdk *ycsdk.SDK, diag *diag.Diagnostics, cid string) *opensearch.Cluster

func GetHostsList

func GetHostsList(ctx context.Context, sdk *ycsdk.SDK, diag *diag.Diagnostics, cid string) []*opensearch.Host

func ParseDashboardsCreateSpecNodeGroups

func ParseDashboardsCreateSpecNodeGroups(ctx context.Context, cfg *model.DashboardsSubConfig) ([]*opensearch.DashboardsCreateSpec_NodeGroup, diag.Diagnostics)

func ParseOpenSearchCreateSpecNodeGroups

func ParseOpenSearchCreateSpecNodeGroups(ctx context.Context, cfg *model.OpenSearchSubConfig) ([]*opensearch.OpenSearchCreateSpec_NodeGroup, diag.Diagnostics)

func PrepareAddDashboardsNodeGroupRequests

func PrepareAddDashboardsNodeGroupRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.DashboardsCreateSpec_NodeGroup) ([]*opensearch.AddDashboardsNodeGroupRequest, diag.Diagnostics)

func PrepareAddOpenSearchNodeGroupRequests

func PrepareAddOpenSearchNodeGroupRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.OpenSearchCreateSpec_NodeGroup) ([]*opensearch.AddOpenSearchNodeGroupRequest, diag.Diagnostics)

func PrepareAndExecute

func PrepareAndExecute[T any, V any](
	ctx context.Context,
	sdk *ycsdk.SDK,
	clusterID string,
	plan, state []T,
	generator func(string, []T, []T) ([]V, diag.Diagnostics),
	executor func(context.Context, *ycsdk.SDK, *diag.Diagnostics, V)) diag.Diagnostics

func PrepareCreateOpenSearchRequest

func PrepareCreateOpenSearchRequest(ctx context.Context, plan *model.OpenSearch, providerConfig *config.State) (*opensearch.CreateClusterRequest, diag.Diagnostics)

func PrepareDataManagersToDecreaseRequests

func PrepareDataManagersToDecreaseRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.OpenSearchCreateSpec_NodeGroup) ([]*opensearch.UpdateOpenSearchNodeGroupRequest, diag.Diagnostics)

func PrepareDeleteDashboardsNodeGroupRequests

func PrepareDeleteDashboardsNodeGroupRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.DashboardsCreateSpec_NodeGroup) ([]*opensearch.DeleteDashboardsNodeGroupRequest, diag.Diagnostics)

func PrepareDeleteOpenSearchNodeGroupRequests

func PrepareDeleteOpenSearchNodeGroupRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.OpenSearchCreateSpec_NodeGroup) ([]*opensearch.DeleteOpenSearchNodeGroupRequest, diag.Diagnostics)

func PrepareManagersToDecreaseRequests

func PrepareManagersToDecreaseRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.OpenSearchCreateSpec_NodeGroup) ([]*opensearch.UpdateOpenSearchNodeGroupRequest, diag.Diagnostics)

func PrepareManagersToIncreaseRequests

func PrepareManagersToIncreaseRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.OpenSearchCreateSpec_NodeGroup) ([]*opensearch.UpdateOpenSearchNodeGroupRequest, diag.Diagnostics)

func PrepareOtherGroupsToUpdateRequests

func PrepareOtherGroupsToUpdateRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.OpenSearchCreateSpec_NodeGroup) ([]*opensearch.UpdateOpenSearchNodeGroupRequest, diag.Diagnostics)

func PrepareUpdateClusterParamsRequest

func PrepareUpdateClusterParamsRequest(ctx context.Context, state, plan *model.OpenSearch) (*opensearch.UpdateClusterRequest, diag.Diagnostics)

TODO: refactor this func

func PrepareUpdateDashboardsNodeGroupRequest

func PrepareUpdateDashboardsNodeGroupRequest(clusterID string, planNodeGroup, stateNodeGroup *opensearch.DashboardsCreateSpec_NodeGroup) *opensearch.UpdateDashboardsNodeGroupRequest

func PrepareUpdateDashboardsNodeGroupRequests

func PrepareUpdateDashboardsNodeGroupRequests(clusterID string, planNodeGroups, stateNodeGroups []*opensearch.DashboardsCreateSpec_NodeGroup) ([]*opensearch.UpdateDashboardsNodeGroupRequest, diag.Diagnostics)

func UpdateClusterSpec

func UpdateClusterSpec(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.UpdateClusterRequest)

func UpdateDashboardsNodeGroup

func UpdateDashboardsNodeGroup(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.UpdateDashboardsNodeGroupRequest)

func UpdateOpenSearchNodeGroup

func UpdateOpenSearchNodeGroup(ctx context.Context, sdk *ycsdk.SDK, diags *diag.Diagnostics, req *opensearch.UpdateOpenSearchNodeGroupRequest)

Types

This section is empty.

Jump to

Keyboard shortcuts

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