deploymentresource

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetAssociation    = trafficfilterapi.Get
	CreateAssociation = trafficfilterapi.CreateAssociation
	DeleteAssociation = trafficfilterapi.DeleteAssociation
)

Functions

func HandleTrafficFilterChange added in v0.6.0

func HandleTrafficFilterChange(ctx context.Context, client *api.API, plan v2.DeploymentTF, stateRules ruleSet) ([]string, diag.Diagnostics)

func HasRunningResources added in v0.6.0

func HasRunningResources(res *models.DeploymentGetResponse) bool

func ReadPrivateStateInstanceConfigurations added in v0.11.0

func ReadPrivateStateInstanceConfigurations(
	ctx context.Context,
	state PrivateState,
) ([]models.InstanceConfigurationInfo, diag.Diagnostics)

func ReadPrivateStateMigrateTemplateRequest added in v0.10.0

func ReadPrivateStateMigrateTemplateRequest(ctx context.Context, state PrivateState) (*deployments.MigrateDeploymentTemplateOK, diag.Diagnostics)

func UpdateDedicatedMasterTier added in v0.11.0

func UpdateDedicatedMasterTier(
	ctx context.Context,
	config tfsdk.Config,
	plan tfsdk.Plan,
	privateState PrivateState,
	resp *resource.ModifyPlanResponse,
	loadTemplate func() (*models.DeploymentTemplateInfoV2, error),
)

func UpdatePrivateStateInstanceConfigurations added in v0.11.0

func UpdatePrivateStateInstanceConfigurations(
	ctx context.Context,
	state PrivateState,
	instanceConfigurations []*models.InstanceConfigurationInfo,
) diag.Diagnostics

func UpdatePrivateStateMigrateTemplateRequest added in v0.10.0

func UpdatePrivateStateMigrateTemplateRequest(ctx context.Context, state PrivateState, migrateTemplateRequest *deployments.MigrateDeploymentTemplateOK) diag.Diagnostics

func WaitForPlanCompletion

func WaitForPlanCompletion(client *api.API, id string) error

WaitForPlanCompletion waits for a pending plan to finish.

Types

type PrivateState added in v0.8.0

type PrivateState interface {
	GetKey(context.Context, string) ([]byte, diag.Diagnostics)
	SetKey(context.Context, string, []byte) diag.Diagnostics
}

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func (*Resource) Configure added in v0.6.0

func (r *Resource) Configure(ctx context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse)

func (*Resource) Create added in v0.6.0

func (*Resource) Delete added in v0.6.0

func (*Resource) ImportState added in v0.6.0

func (*Resource) Metadata added in v0.6.0

func (r *Resource) Metadata(ctx context.Context, request resource.MetadataRequest, response *resource.MetadataResponse)

func (Resource) ModifyPlan added in v0.11.0

func (*Resource) Read added in v0.6.0

func (r *Resource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)

func (*Resource) ResetElasticsearchPassword added in v0.8.0

func (r *Resource) ResetElasticsearchPassword(deploymentID string, refID string) (string, string, diag.Diagnostics)

func (*Resource) Schema added in v0.8.0

func (*Resource) Update added in v0.6.0

Directories

Path Synopsis
apm
v1
v2
deployment
v1
v2
elasticsearch
v1
v2
enterprisesearch
v1
v2
integrationsserver
v1
v2
kibana
v1
v2
observability
v1
v2
topology
v1

Jump to

Keyboard shortcuts

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