es

package
v7.16.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package es permiit to handle Elasticsearch API call to manage some resources from Terraform

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Provider permiit to init the terraform provider

Types

type License

type License map[string]*LicenseSpec

License object

type LicenseSpec

type LicenseSpec struct {
	UID                string  `json:"uid"`
	Type               string  `json:"type"`
	IssueDateInMillis  float64 `json:"issue_date_in_millis"`
	ExpiryDateInMillis float64 `json:"expiry_date_in_millis"`
	MaxNodes           float64 `json:"max_nodes"`
	IssuedTo           string  `json:"issued_to"`
	Issuer             string  `json:"issuer"`
	Signature          string  `json:"signature,omitempty"`
	StartDateInMillis  float64 `json:"start_date_in_millis"`
}

LicenseSpec is license object

func (*LicenseSpec) String

func (r *LicenseSpec) String() string

Print License object as Json string

type Role

type Role map[string]*RoleSpec

Role object returned by API

type RoleApplicationPrivileges

type RoleApplicationPrivileges struct {
	Application string   `json:"application"`
	Privileges  []string `json:"privileges,omitempty"`
	Resources   []string `json:"resources,omitempty"`
}

RoleApplicationPrivileges is the application object

type RoleIndicesPermissions

type RoleIndicesPermissions struct {
	Names         []string    `json:"names"`
	Privileges    []string    `json:"privileges"`
	FieldSecurity interface{} `json:"field_security,omitempty"`
	Query         interface{} `json:"query,omitempty"`
}

RoleIndicesPermissions is the indice object

type RoleMapping

type RoleMapping map[string]*RoleMappingSpec

RoleMapping is role mapping object returned by API

type RoleMappingSpec

type RoleMappingSpec struct {
	Roles    []string    `json:"roles"`
	Enabled  bool        `json:"enabled"`
	Rules    interface{} `json:"rules,omitempty"`
	Metadata interface{} `json:"metadata,omitempty"`
}

RoleMappingSpec is role mapping object

func (*RoleMappingSpec) String

func (r *RoleMappingSpec) String() string

Print role mapping as Json string

type RoleSpec

type RoleSpec struct {
	Cluster      []string                    `json:"cluster"`
	Applications []RoleApplicationPrivileges `json:"applications,omitempty"`
	Indices      []RoleIndicesPermissions    `json:"indices,omitempty"`
	RunAs        []string                    `json:"run_as,omitempty"`
	Global       interface{}                 `json:"global,omitempty"`
	Metadata     interface{}                 `json:"metadata,omitempty"`
}

RoleSpec is role object

func (*RoleSpec) String

func (r *RoleSpec) String() string

Print Role object as Json string

type SnapshotLifecyclePolicy

type SnapshotLifecyclePolicy map[string]*SnapshotLifecyclePolicyGet

SnapshotLifecyclePolicy object returned by API

type SnapshotLifecyclePolicyGet

type SnapshotLifecyclePolicyGet struct {
	Policy *SnapshotLifecyclePolicySpec `json:"policy"`
}

SnapshotLifecyclePolicyGet is the policy

type SnapshotLifecyclePolicySpec

type SnapshotLifecyclePolicySpec struct {
	Schedule   string      `json:"schedule"`
	Name       string      `json:"name"`
	Repository string      `json:"repository"`
	Configs    interface{} `json:"config,omitempty"`
	Retention  interface{} `json:"retention,omitempty"`
}

SnapshotLifecyclePolicySpec is the snapshot lifecycle policy object

func (*SnapshotLifecyclePolicySpec) String

func (r *SnapshotLifecyclePolicySpec) String() string

Print snapshot lifecycle policy object as Json string

type SnapshotRepository

type SnapshotRepository map[string]*SnapshotRepositorySpec

SnapshotRepository object returned by API

type SnapshotRepositorySpec

type SnapshotRepositorySpec struct {
	Type     string            `json:"type"`
	Settings map[string]string `json:"settings"`
}

SnapshotRepositorySpec is the repository object

func (*SnapshotRepositorySpec) String

func (r *SnapshotRepositorySpec) String() string

Print snapshot repository object as Json string

type User

type User map[string]*UserSpec

User Json object returned by API

type UserSpec

type UserSpec struct {
	Enabled      bool        `json:"enabled"`
	Email        string      `json:"email"`
	FullName     string      `json:"full_name"`
	Password     string      `json:"password,omitempty"`
	PasswordHash string      `json:"password_hash,omitempty"`
	Roles        []string    `json:"roles"`
	Metadata     interface{} `json:"metadata,omitempty"`
}

UserSpec is the user object

func (*UserSpec) String

func (r *UserSpec) String() string

Print user object as Json string

type Watcher

type Watcher struct {
	Watcher *WatcherSpec `json:"watch"`
}

Watcher object returned by API

type WatcherSpec

type WatcherSpec struct {
	Trigger        interface{} `json:"trigger,omitempty"`
	Input          interface{} `json:"input,omitempty"`
	Condition      interface{} `json:"condition,omitempty"`
	Actions        interface{} `json:"actions,omitempty"`
	Metadata       interface{} `json:"metadata,omitempty"`
	ThrottlePeriod string      `json:"throttle_period,omitempty"`
}

WatcherSpec is the watcher object

func (*WatcherSpec) String

func (r *WatcherSpec) String() string

Print Watcher object as Json string

Jump to

Keyboard shortcuts

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