clients

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiClientFunc

func NewApiClientFunc(version string, p *schema.Provider) func(context.Context, *schema.ResourceData) (interface{}, diag.Diagnostics)

Types

type ApiClient

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

func NewApiClient

func NewApiClient(d *schema.ResourceData, meta interface{}) (*ApiClient, error)

func (*ApiClient) ClusterID

func (a *ApiClient) ClusterID() (*string, diag.Diagnostics)

func (*ApiClient) DeleteElasticsearchIlm

func (a *ApiClient) DeleteElasticsearchIlm(policyName string) diag.Diagnostics

func (*ApiClient) DeleteElasticsearchIndexTemplate

func (a *ApiClient) DeleteElasticsearchIndexTemplate(templateName string) diag.Diagnostics

func (*ApiClient) DeleteElasticsearchRole

func (a *ApiClient) DeleteElasticsearchRole(rolename string) diag.Diagnostics

func (*ApiClient) DeleteElasticsearchSlm

func (a *ApiClient) DeleteElasticsearchSlm(slmName string) diag.Diagnostics

func (*ApiClient) DeleteElasticsearchSnapshotRepository

func (a *ApiClient) DeleteElasticsearchSnapshotRepository(name string) diag.Diagnostics

func (*ApiClient) DeleteElasticsearchUser

func (a *ApiClient) DeleteElasticsearchUser(username string) diag.Diagnostics

func (*ApiClient) GetESClient

func (a *ApiClient) GetESClient() *elasticsearch.Client

func (*ApiClient) GetElasticsearchIlm

func (a *ApiClient) GetElasticsearchIlm(policyName string) (*models.PolicyDefinition, diag.Diagnostics)

func (*ApiClient) GetElasticsearchIndexTemplate

func (a *ApiClient) GetElasticsearchIndexTemplate(templateName string) (*models.IndexTemplateResponse, diag.Diagnostics)

func (*ApiClient) GetElasticsearchRole

func (a *ApiClient) GetElasticsearchRole(rolename string) (*models.Role, diag.Diagnostics)

func (*ApiClient) GetElasticsearchSettings

func (a *ApiClient) GetElasticsearchSettings() (map[string]interface{}, diag.Diagnostics)

func (*ApiClient) GetElasticsearchSlm

func (a *ApiClient) GetElasticsearchSlm(slmName string) (*models.SnapshotPolicy, diag.Diagnostics)

func (*ApiClient) GetElasticsearchSnapshotRepository

func (a *ApiClient) GetElasticsearchSnapshotRepository(name string) (*models.SnapshotRepository, diag.Diagnostics)

func (*ApiClient) GetElasticsearchUser

func (a *ApiClient) GetElasticsearchUser(username string) (*models.User, diag.Diagnostics)

func (*ApiClient) ID

func (a *ApiClient) ID(resourceId string) (*CompositeId, diag.Diagnostics)

func (*ApiClient) PutElasticsearchIlm

func (a *ApiClient) PutElasticsearchIlm(policy *models.Policy) diag.Diagnostics

func (*ApiClient) PutElasticsearchIndexTemplate

func (a *ApiClient) PutElasticsearchIndexTemplate(template *models.IndexTemplate) diag.Diagnostics

func (*ApiClient) PutElasticsearchRole

func (a *ApiClient) PutElasticsearchRole(role *models.Role) diag.Diagnostics

func (*ApiClient) PutElasticsearchSettings

func (a *ApiClient) PutElasticsearchSettings(settings map[string]interface{}) diag.Diagnostics

func (*ApiClient) PutElasticsearchSlm

func (a *ApiClient) PutElasticsearchSlm(slm *models.SnapshotPolicy) diag.Diagnostics

func (*ApiClient) PutElasticsearchSnapshotRepository

func (a *ApiClient) PutElasticsearchSnapshotRepository(repository *models.SnapshotRepository) diag.Diagnostics

func (*ApiClient) PutElasticsearchUser

func (a *ApiClient) PutElasticsearchUser(user *models.User) diag.Diagnostics

type CompositeId

type CompositeId struct {
	ClusterId  string
	ResourceId string
}

func CompositeIdFromStr

func CompositeIdFromStr(id string) (*CompositeId, diag.Diagnostics)

func (*CompositeId) String

func (c *CompositeId) String() string

Jump to

Keyboard shortcuts

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