Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ACLStrings ¶
func ACLStrings() []string
ACLStrings returns a slice of all String values of the enum
Types ¶
type ACL ¶
type ACL int
ACL is a type that represents an elasticsearch acl.
const ( Cat ACL = iota Bulk Cluster Search Remote Create Count Scripts Delete Doc Source FieldCaps Close Analyze Exists Get Template Explain Indices Alias Aliases DeleteByQuery Cache Index Mapping Flush Forcemerge Upgrade Settings Open Recovery Mappings Rollover Refresh Segments Shrink Split ShardStores Stats Ingest Validate Msearch Mget Nodes Mtermvectors Reindex UpdateByQuery Render RankEval SearchShards Snapshot Tasks Termvectors Update )
Elasticsearch request Categories.
func ACLString ¶
ACLString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func FromContext ¶
FromContext retrieves the acl stored against the acl.CtxKey from the context.
func (ACL) IsAACL ¶
IsAACL returns "true" if the value is listed in the enum definition. "false" otherwise
func (ACL) JSONSchema ¶
func (a ACL) JSONSchema() *jsonschema.Schema
func (ACL) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for ACL
func (*ACL) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for ACL
Click to show internal directories.
Click to hide internal directories.