Documentation ¶
Index ¶
- Constants
- func ConvertTagsToOpensearchTags(tags map[string]string) []*opensearchservice.Tag
- func InitElasticsearchBroker(brokerDB *gorm.DB, settings *config.Settings, ...) (base.Broker, error)
- type ElasticsearchAdapter
- type ElasticsearchAdvancedOptions
- type ElasticsearchInstance
- type ElasticsearchOptions
- type EsApiHandler
- func (es *EsApiHandler) CreateSnapshot(reponame string, snapshotname string) (string, error)
- func (es *EsApiHandler) CreateSnapshotRepo(reponame string, bucketname string, path string, region string, rolearn string) (string, error)
- func (es *EsApiHandler) GetSnapshotRepo(reponame string) (string, error)
- func (es *EsApiHandler) GetSnapshotStatus(reponame string, snapshotname string) (string, error)
- func (es *EsApiHandler) Init(svcInfo map[string]string, region string) error
- func (es *EsApiHandler) Send(method string, endpoint string, content string) ([]byte, error)
- type HttpClient
- type Snapshot
- type SnapshotRepo
- type SnapshotRepoSettings
- type Snapshots
Constants ¶
View Source
const PgroupPrefix = "cg-elasticsearch-broker-"
This is the prefix for all pgroups created by the broker.
Variables ¶
This section is empty.
Functions ¶
func ConvertTagsToOpensearchTags ¶
func ConvertTagsToOpensearchTags(tags map[string]string) []*opensearchservice.Tag
func InitElasticsearchBroker ¶
func InitElasticsearchBroker( brokerDB *gorm.DB, settings *config.Settings, taskqueue *taskqueue.QueueManager, tagManager brokertags.TagManager, ) (base.Broker, error)
InitelasticsearchBroker is the constructor for the elasticsearchBroker.
Types ¶
type ElasticsearchAdapter ¶
type ElasticsearchAdapter interface {
// contains filtered or unexported methods
}
type ElasticsearchInstance ¶
type ElasticsearchInstance struct { base.Instance Description string `sql:"size(255)"` Password string `sql:"size(255)"` Salt string `sql:"size(255)"` AccessKey string `sql:"size(255)"` SecretKey string `sql:"size(255)"` IamPolicy string `sql:"size(255)"` IamPolicyARN string `sql:"size(255)"` AccessControlPolicy string `sql:"size(255)"` ElasticsearchVersion string `sql:"size(255)"` CurrentESVersion string `sql:"size(255)"` MasterCount int `sql:"size(255)"` DataCount int `sql:"size(255)"` InstanceType string `sql:"size(255)"` MasterInstanceType string `sql:"size(255)"` VolumeSize int `sql:"size(255)"` VolumeType string `sql:"size(255)"` MasterEnabled bool `sql:"size(255)"` NodeToNodeEncryption bool `sql:"size(255)"` EncryptAtRest bool `sql:"size(255)"` AutomatedSnapshotStartHour int `sql:"size(255)"` Bucket string `sql:"size(255)"` BrokerSnapshotsEnabled bool `sql:"size(255)"` SnapshotARN string `sql:"size(255)"` SnapshotPolicyARN string `sql:"size(255)"` SnapshotPath string `sql:"size(255)"` IamPassRolePolicyARN string `sql:"size(255)"` IndicesFieldDataCacheSize string `sql:"size(255)"` IndicesQueryBoolMaxClauseCount string `sql:"size(255)"` ClearPassword string `sql:"-"` Domain string `sql:"size(255)"` ARN string `sql:"size(255)"` Tags map[string]string `sql:"-"` SubnetID1AZ1 string `sql:"-"` SubnetID2AZ2 string `sql:"-"` SubnetID3AZ1 string `sql:"-"` SubnetID4AZ2 string `sql:"-"` SecGroup string `sql:"-"` SearchSlowLogsGroupARN string `sql:"size(2048)"` IndexSlowLogsGroupARN string `sql:"size(2048)"` ErrorLogsGroupARN string `sql:"size(2048)"` AuditLogsGroupARN string `sql:"size(2048)"` }
ElasticsearchInstance represents the information of an Elasticsearch Service instance.
type ElasticsearchOptions ¶
type ElasticsearchOptions struct { ElasticsearchVersion string `json:"elasticsearchVersion"` Bucket string `json:"bucket"` AdvancedOptions ElasticsearchAdvancedOptions `json:"advanced_options,omitempty"` VolumeType string `json:"volume_type"` }
type EsApiHandler ¶
type EsApiHandler struct {
// contains filtered or unexported fields
}
func (*EsApiHandler) CreateSnapshot ¶
func (es *EsApiHandler) CreateSnapshot(reponame string, snapshotname string) (string, error)
func (*EsApiHandler) CreateSnapshotRepo ¶
func (*EsApiHandler) GetSnapshotRepo ¶
func (es *EsApiHandler) GetSnapshotRepo(reponame string) (string, error)
func (*EsApiHandler) GetSnapshotStatus ¶
func (es *EsApiHandler) GetSnapshotStatus(reponame string, snapshotname string) (string, error)
type HttpClient ¶
abstract this method for mocking
type SnapshotRepo ¶
type SnapshotRepo struct { Type string `json:"type"` Settings SnapshotRepoSettings `json:"settings"` }
func NewSnapshotRepo ¶
func NewSnapshotRepo(bucketname string, path string, region string, rolearn string) *SnapshotRepo
func (*SnapshotRepo) ToString ¶
func (sr *SnapshotRepo) ToString() (string, error)
type SnapshotRepoSettings ¶
Click to show internal directories.
Click to hide internal directories.