Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptableProvider ¶
type AdaptableProvider struct {
// contains filtered or unexported fields
}
func NewAdaptableProvider ¶
func NewAdaptableProvider(id, secret, token string) *AdaptableProvider
NewAdaptableProvider returns a pointer to a new AdaptableProvider object wrapping static and environment providers.
func (*AdaptableProvider) IsExpired ¶
func (p *AdaptableProvider) IsExpired() bool
IsExpired returns if the credentials have been retrieved.
func (*AdaptableProvider) Retrieve ¶
func (p *AdaptableProvider) Retrieve() (credentials.Value, error)
Retrieve returns the credentials or error if the credentials are invalid.
type Config ¶
func (*Config) Set ¶
func (c *Config) Set(config *elasticsearch.Config)
func (*Config) SetCredentials ¶
func (c *Config) SetCredentials(creds *Credentials)
SetCredentials sets a config Credentials value
func (*Config) SetEndpoint ¶
SetEndpoint sets a config Endpoint value
type Credentials ¶
type Credentials struct {
*credentials.Credentials
}
func NewAdaptableCredentials ¶
func NewAdaptableCredentials(id, secret, token string) *Credentials
NewAdaptableCredentials returns a pointer to a new Credentials object wrapping static and environment credentials value provider.
func NewCredentials ¶
func NewCredentials(provider credentials.Provider) *Credentials
NewCredentials returns a pointer to a new Credentials with the provider set.
func (*Credentials) Getaws ¶
func (c *Credentials) Getaws() *credentials.Credentials
Getaws gets a config of aws
type Elasticsearch ¶
type Elasticsearch struct {
*elasticsearchservice.ElasticsearchService
}
Click to show internal directories.
Click to hide internal directories.