Documentation
¶
Index ¶
- type Domain
- type ESDocument
- type ESService
- type Store
- func (s *Store) AddTags(arn string, tags map[string]string) bool
- func (s *Store) ClusterHealth(domainName string) (string, bool)
- func (s *Store) CreateDomain(name, version, instanceType string, instanceCount int, tags map[string]string) (*Domain, bool)
- func (s *Store) DeleteDomain(name string) (*Domain, bool)
- func (s *Store) GetDomain(name string) (*Domain, bool)
- func (s *Store) IndexDocument(domainName, index, docID string, source map[string]any) (string, bool)
- func (s *Store) ListDomainNames() []*Domain
- func (s *Store) ListTags(arn string) (map[string]string, bool)
- func (s *Store) RemoveTags(arn string, keys []string) bool
- func (s *Store) SearchDocuments(domainName, index string, query map[string]any) ([]ESDocument, bool)
- func (s *Store) UpdateDomainConfig(name, version, instanceType string, instanceCount int) (*Domain, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct {
DomainName string
ARN string
DomainId string
ElasticsearchVersion string
Endpoint string
Processing bool
Created bool
Deleted bool
InstanceType string
InstanceCount int
Tags map[string]string
CreatedTime time.Time
Lifecycle *lifecycle.Machine
}
Domain represents an Elasticsearch domain.
type ESDocument ¶
ESDocument represents an indexed document.
type ESService ¶
type ESService struct {
// contains filtered or unexported fields
}
ESService is the cloudmock implementation of the AWS Elasticsearch Service API.
func (*ESService) HandleRequest ¶
HandleRequest routes an incoming request to the appropriate handler.
func (*ESService) HealthCheck ¶
HealthCheck always returns nil.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages all Elasticsearch resources.
func (*Store) CreateDomain ¶
func (*Store) IndexDocument ¶
func (*Store) ListDomainNames ¶
func (*Store) SearchDocuments ¶
Click to show internal directories.
Click to hide internal directories.