Documentation
¶
Overview ¶
Package authenticators provides types that authenticate to the Splunk REST API and satisfy the client.Authenticator interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatorTestCase ¶
type AuthenticatorTestCase struct {
// contains filtered or unexported fields
}
AuthenticatorTestCase defines a test against a specific Authenticator and Client.
type AuthenticatorTestCases ¶
type AuthenticatorTestCases []AuthenticatorTestCase
AuthenticatorTestCases is a list of AuthenticatorTestCase instances.
type Password ¶
type Password struct {
Username string `values:"username"`
Password string `values:"password"`
// UseBasicAuth can be set to true if Basic Authentication should always be used,
// which causes Username/Password to be passed with each authenticated request.
UseBasicAuth bool `values:"-"`
// SessionKey holds the SessionKey after initial authentication occurs. Unless
// UseBasicAuth is set to true, this SessionKey will be used to authenticate requests.
SessionKey `url:"-"`
// contains filtered or unexported fields
}
Password defines password authentication to Splunk.
type SessionKey ¶
type SessionKey struct {
// SessionKey is the session key that will be used to authenticate to Splunk.
SessionKey string `xml:"sessionKey"`
}
SessionKey provides authentication to Splunk via a session key.
func (SessionKey) AuthenticateRequest ¶
AuthenticateRequest adds the SessionKey to the http.Request's Header.
Click to show internal directories.
Click to hide internal directories.