elasticsearchservice

package
v0.0.0-...-98a8896 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2015 License: MIT Imports: 4 Imported by: 0

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

type Config struct {
	*aws.Config
}

func NewConfig

func NewConfig() *Config

NewConfig returns a new Config pointer

func (*Config) Getaws

func (c *Config) Getaws() *aws.Config

Getaws gets a config of aws

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

func (c *Config) SetEndpoint(endpoint string)

SetEndpoint sets a config Endpoint value

func (*Config) SetRegion

func (c *Config) SetRegion(region string)

SetRegion sets a config Region 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
}

func New

func New(config *Config) *Elasticsearch

New returns a new ElasticsearchService client.

Jump to

Keyboard shortcuts

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