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 {
SkipTLSVerify bool
Address string
Username string
Password string
}
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 {
}
Click to show internal directories.
Click to hide internal directories.