es

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Manage license in elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html Supported version:

  • v6
  • v7

Manage the role in elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html Supported version:

  • v6
  • v7

Manage the role mapping in Elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html Supported version:

  • v6
  • v7

Manage the user in elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html Supported version:

  • v6
  • v7

Manage snapshot lifecycle policy in elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html Supported version:

  • v7

Manage snapshot repository in elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html Supported version:

  • v6
  • v7

Manage the watcher in elasticsearch API documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html Supported version:

  • v6
  • v7

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type License added in v1.0.4

type License map[string]*LicenseSpec

Licence object

type LicenseSpec added in v1.0.4

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"`
}

func (*LicenseSpec) String added in v1.0.4

func (r *LicenseSpec) String() string

Print License object as Json string

type Role

type Role map[string]*RoleSpec

Role Json object

type RoleApplicationPrivileges

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

type RoleIndicesPermissions

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

type RoleMapping

type RoleMapping map[string]*RoleMappingSpec

Role mapping object

type RoleMappingSpec

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

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"`
}

func (*RoleSpec) String

func (r *RoleSpec) String() string

Print Role object as Json string

type SnapshotLifecyclePolicy

type SnapshotLifecyclePolicy map[string]*SnapshotLifecyclePolicyGet

Snapshot repository object

type SnapshotLifecyclePolicyGet

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

type SnapshotLifecyclePolicySpec

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

func (*SnapshotLifecyclePolicySpec) String

func (r *SnapshotLifecyclePolicySpec) String() string

Print snapshot lifecycle policy object as Json string

type SnapshotRepository

type SnapshotRepository map[string]*SnapshotRepositorySpec

Snapshot repository object

type SnapshotRepositorySpec

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

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

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"`
}

func (*UserSpec) String

func (r *UserSpec) String() string

Print Role object as Json string

type Watcher

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

Watcher Json object

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"`
}

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