eskeystoreapi

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(params GetParams) (*models.KeystoreContents, error)

Get returns the specified deployment template.

func Update

func Update(params UpdateParams) (*models.KeystoreContents, error)

Update changes the contents of the specified deployment's elasticsearch keystore by using the PATCH method, the payload is a partial payload where any ignored current keystore items, are not removed, unless the secrets are set to "null": {"secrets": {"my-secret": null}}.

Types

type GetParams

type GetParams struct {
	*api.API

	DeploymentID string

	// Optional RefID, when not specified, an API call will be issued to auto-
	// discover the resource's RefID.
	RefID string
}

GetParams is consumed by the Get function.

func (GetParams) Validate

func (params GetParams) Validate() error

Validate ensures the parameters are usable by Get.

type UpdateParams

type UpdateParams struct {
	*api.API

	DeploymentID string
	Contents     *models.KeystoreContents

	// Optional RefID, whne not specified, an API call will be issued to auto-
	// discover the resource's RefID.
	RefID string
}

UpdateParams is consumed by the Update function.

func (UpdateParams) Validate

func (params UpdateParams) Validate() error

Validate ensures the parameters are usable by Update.

Jump to

Keyboard shortcuts

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