opensearch

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// URI for creating new users: CreateNewIdexerUserURI:<new user>
	CreateNewIdexerUserURI endpoints = "_plugins/_security/api/internalusers"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexerClientConfig

type IndexerClientConfig struct {
	Address  string
	Username string
	Password string
	Client   *http.Client
}

func NewClientConfig

func NewClientConfig() *IndexerClientConfig

func (*IndexerClientConfig) IndexerApiRequest

func (c *IndexerClientConfig) IndexerApiRequest(payload any, uri string, method string) (*http.Request, error)

IndexerApiRequest()

:uri of type string should make use of endpoints helpers

type NewUserPayload

type NewUserPayload struct {
	Attributes struct {
		Attribute1 string `json:"attribute1,omitzero"`
		Attribute2 string `json:"attribute2,omitzero"`
	} `json:"attributes"`
	BackendRoles            []string `json:"backend_roles"`
	OpendistroSecurityRoles []string `json:"opendistro_security_roles,omitempty"`
	Password                string   `json:"password,omitzero"`
}

New user payload as expected by the API

type UserAttributes

type UserAttributes struct {
}

Jump to

Keyboard shortcuts

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