Documentation ¶
Overview ¶
This package is responsible for the communicating with elasticsearch, mainly transferring objects to requests to send to elasticsearch and parsing the responses from elasticsearch
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Client ¶
func (Client) CreateUser ¶
CreateUser will create the Elasticsearch user and roles (if any roles are defined for the user). If the roles exist they will be updated.
func (Client) UpdateUser ¶
UpdateUser will update the Elasticsearch users password and roles (if an roles are defined for the user). If the roles don't exist they will be created.
type Role ¶
type Role struct { Name string `json:"-"` Definition *RoleDefinition }
Role represents an Elasticsearch role that may be attached to a User
type RoleDefinition ¶
type RoleDefinition struct { Cluster []string `json:"cluster"` Indices []RoleIndex `json:"indices"` Applications []Application `json:"applications,omitempty"` }
type User ¶
User represents an Elasticsearch user, which may or may not have roles attached to it
func (User) RoleNames ¶
RoleNames is a convenience function for getting the names of all the roles defined for this Elasticsearch user
func (User) SecretName ¶
SecretName returns the name of the secret that should be used to store the information of this user