Documentation ¶
Index ¶
- func ElasticsearchVersionTypeChoices() []string
- func HealthTypeChoices() []string
- func IndexeStatusTypeChoices() []string
- func PermissionTypeChoices() []string
- type AclIn
- type AclOut
- type ElasticsearchVersionType
- type Handler
- type HealthType
- type IndexeOut
- type IndexeStatusType
- type OpenSearchHandler
- func (h *OpenSearchHandler) ServiceOpenSearchAclGet(ctx context.Context, project string, serviceName string) (*ServiceOpenSearchAclGetOut, error)
- func (h *OpenSearchHandler) ServiceOpenSearchAclSet(ctx context.Context, project string, serviceName string, ...) (*ServiceOpenSearchAclSetOut, error)
- func (h *OpenSearchHandler) ServiceOpenSearchAclUpdate(ctx context.Context, project string, serviceName string, ...) (*ServiceOpenSearchAclUpdateOut, error)
- func (h *OpenSearchHandler) ServiceOpenSearchIndexDelete(ctx context.Context, project string, serviceName string, indexName string) error
- func (h *OpenSearchHandler) ServiceOpenSearchIndexList(ctx context.Context, project string, serviceName string) ([]IndexeOut, error)
- func (h *OpenSearchHandler) ServiceOpenSearchSecurityGet(ctx context.Context, project string, serviceName string) (*ServiceOpenSearchSecurityGetOut, error)
- func (h *OpenSearchHandler) ServiceOpenSearchSecurityReset(ctx context.Context, project string, serviceName string, ...) (*ServiceOpenSearchSecurityResetOut, error)
- func (h *OpenSearchHandler) ServiceOpenSearchSecuritySet(ctx context.Context, project string, serviceName string, ...) (*ServiceOpenSearchSecuritySetOut, error)
- type OpensearchAclConfigIn
- type OpensearchAclConfigOut
- type PermissionType
- type ReplicationOut
- type RuleIn
- type RuleOut
- type ServiceOpenSearchAclGetOut
- type ServiceOpenSearchAclSetIn
- type ServiceOpenSearchAclSetOut
- type ServiceOpenSearchAclUpdateIn
- type ServiceOpenSearchAclUpdateOpensearchAclConfigIn
- type ServiceOpenSearchAclUpdateOut
- type ServiceOpenSearchSecurityGetOut
- type ServiceOpenSearchSecurityResetIn
- type ServiceOpenSearchSecurityResetOut
- type ServiceOpenSearchSecuritySetIn
- type ServiceOpenSearchSecuritySetOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElasticsearchVersionTypeChoices ¶ added in v0.53.0
func ElasticsearchVersionTypeChoices() []string
func HealthTypeChoices ¶ added in v0.3.0
func HealthTypeChoices() []string
func IndexeStatusTypeChoices ¶ added in v0.3.0
func IndexeStatusTypeChoices() []string
func PermissionTypeChoices ¶
func PermissionTypeChoices() []string
Types ¶
type ElasticsearchVersionType ¶ added in v0.53.0
type ElasticsearchVersionType string
const ( ElasticsearchVersionType7 ElasticsearchVersionType = "7" ElasticsearchVersionType1 ElasticsearchVersionType = "1" ElasticsearchVersionType2 ElasticsearchVersionType = "2" )
type Handler ¶
type Handler interface { // ServiceOpenSearchAclGet show OpenSearch ACL configuration // GET /v1/project/{project}/service/{service_name}/opensearch/acl // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchAclGet ServiceOpenSearchAclGet(ctx context.Context, project string, serviceName string) (*ServiceOpenSearchAclGetOut, error) // ServiceOpenSearchAclSet set OpenSearch ACL configuration // POST /v1/project/{project}/service/{service_name}/opensearch/acl // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchAclSet ServiceOpenSearchAclSet(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchAclSetIn) (*ServiceOpenSearchAclSetOut, error) // ServiceOpenSearchAclUpdate update OpenSearch ACL configuration // PUT /v1/project/{project}/service/{service_name}/opensearch/acl // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchAclUpdate ServiceOpenSearchAclUpdate(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchAclUpdateIn) (*ServiceOpenSearchAclUpdateOut, error) // ServiceOpenSearchIndexDelete delete an OpenSearch index // DELETE /v1/project/{project}/service/{service_name}/index/{index_name} // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchIndexDelete ServiceOpenSearchIndexDelete(ctx context.Context, project string, serviceName string, indexName string) error // ServiceOpenSearchIndexList list OpenSearch indexes // GET /v1/project/{project}/service/{service_name}/index // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchIndexList ServiceOpenSearchIndexList(ctx context.Context, project string, serviceName string) ([]IndexeOut, error) // ServiceOpenSearchSecurityGet show OpenSearch security configuration status // GET /v1/project/{project}/service/{service_name}/opensearch/security // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchSecurityGet ServiceOpenSearchSecurityGet(ctx context.Context, project string, serviceName string) (*ServiceOpenSearchSecurityGetOut, error) // ServiceOpenSearchSecurityReset change Opensearch Security Admin password // PUT /v1/project/{project}/service/{service_name}/opensearch/security/admin // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchSecurityReset ServiceOpenSearchSecurityReset(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchSecurityResetIn) (*ServiceOpenSearchSecurityResetOut, error) // ServiceOpenSearchSecuritySet enable Opensearch Security Admin by setting the password // POST /v1/project/{project}/service/{service_name}/opensearch/security/admin // https://api.aiven.io/doc/#tag/Service:_OpenSearch/operation/ServiceOpenSearchSecuritySet ServiceOpenSearchSecuritySet(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchSecuritySetIn) (*ServiceOpenSearchSecuritySetOut, error) }
type HealthType ¶ added in v0.3.0
type HealthType string
const ( HealthTypeGreen HealthType = "green" HealthTypeYellow HealthType = "yellow" HealthTypeRed HealthType = "red" HealthTypeRedAsterisk HealthType = "red*" HealthTypeUnknown HealthType = "unknown" )
type IndexeOut ¶
type IndexeOut struct { CreateTime time.Time `json:"create_time"` // Timestamp in ISO 8601 format, always in UTC Docs *int `json:"docs,omitempty"` // Number of documents in index. -1 means not available. Health HealthType `json:"health,omitempty"` // Index health IndexName string `json:"index_name"` // Index name NumberOfReplicas int `json:"number_of_replicas"` // Number of replicas for an index NumberOfShards int `json:"number_of_shards"` // Number of shards in an index ReadOnlyAllowDelete *bool `json:"read_only_allow_delete,omitempty"` // Whether an index is set as read-only (but allows deletion). null means unknown. Replication *ReplicationOut `json:"replication,omitempty"` // Index replication Size *int `json:"size,omitempty"` // Index size in bytes. -1 means not available. Status IndexeStatusType `json:"status,omitempty"` // Index status }
type IndexeStatusType ¶ added in v0.3.0
type IndexeStatusType string
const ( IndexeStatusTypeUnknown IndexeStatusType = "unknown" IndexeStatusTypeOpen IndexeStatusType = "open" IndexeStatusTypeClose IndexeStatusType = "close" IndexeStatusTypeNone IndexeStatusType = "none" )
type OpenSearchHandler ¶
type OpenSearchHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) OpenSearchHandler
func (*OpenSearchHandler) ServiceOpenSearchAclGet ¶
func (h *OpenSearchHandler) ServiceOpenSearchAclGet(ctx context.Context, project string, serviceName string) (*ServiceOpenSearchAclGetOut, error)
func (*OpenSearchHandler) ServiceOpenSearchAclSet ¶
func (h *OpenSearchHandler) ServiceOpenSearchAclSet(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchAclSetIn) (*ServiceOpenSearchAclSetOut, error)
func (*OpenSearchHandler) ServiceOpenSearchAclUpdate ¶
func (h *OpenSearchHandler) ServiceOpenSearchAclUpdate(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchAclUpdateIn) (*ServiceOpenSearchAclUpdateOut, error)
func (*OpenSearchHandler) ServiceOpenSearchIndexDelete ¶
func (*OpenSearchHandler) ServiceOpenSearchIndexList ¶
func (*OpenSearchHandler) ServiceOpenSearchSecurityGet ¶
func (h *OpenSearchHandler) ServiceOpenSearchSecurityGet(ctx context.Context, project string, serviceName string) (*ServiceOpenSearchSecurityGetOut, error)
func (*OpenSearchHandler) ServiceOpenSearchSecurityReset ¶
func (h *OpenSearchHandler) ServiceOpenSearchSecurityReset(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchSecurityResetIn) (*ServiceOpenSearchSecurityResetOut, error)
func (*OpenSearchHandler) ServiceOpenSearchSecuritySet ¶
func (h *OpenSearchHandler) ServiceOpenSearchSecuritySet(ctx context.Context, project string, serviceName string, in *ServiceOpenSearchSecuritySetIn) (*ServiceOpenSearchSecuritySetOut, error)
type OpensearchAclConfigIn ¶
type OpensearchAclConfigIn struct { Acls []AclIn `json:"acls"` // List of OpenSearch ACLs Enabled bool `json:"enabled"` // Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. }
OpensearchAclConfigIn OpenSearch ACL configuration
type OpensearchAclConfigOut ¶ added in v0.53.0
type OpensearchAclConfigOut struct { Acls []AclOut `json:"acls"` // List of OpenSearch ACLs Enabled bool `json:"enabled"` // Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. }
OpensearchAclConfigOut OpenSearch ACL configuration
type PermissionType ¶
type PermissionType string
const ( PermissionTypeDeny PermissionType = "deny" PermissionTypeAdmin PermissionType = "admin" PermissionTypeRead PermissionType = "read" PermissionTypeReadwrite PermissionType = "readwrite" PermissionTypeWrite PermissionType = "write" )
type ReplicationOut ¶
type ReplicationOut struct { LeaderIndex *string `json:"leader_index,omitempty"` // Leader index name LeaderProject *string `json:"leader_project,omitempty"` // Leader project name LeaderService *string `json:"leader_service,omitempty"` // Leader service name }
ReplicationOut Index replication
type RuleIn ¶
type RuleIn struct { Index string `json:"index"` // OpenSearch index pattern Permission PermissionType `json:"permission"` // OpenSearch permission }
type RuleOut ¶
type RuleOut struct { Index string `json:"index"` // OpenSearch index pattern Permission PermissionType `json:"permission"` // OpenSearch permission }
type ServiceOpenSearchAclGetOut ¶
type ServiceOpenSearchAclGetOut struct { ElasticsearchVersion ElasticsearchVersionType `json:"elasticsearch_version,omitempty"` // Elasticsearch major version OpensearchAclConfig OpensearchAclConfigOut `json:"opensearch_acl_config"` // OpenSearch ACL configuration }
ServiceOpenSearchAclGetOut ServiceOpenSearchAclGetResponse
type ServiceOpenSearchAclSetIn ¶
type ServiceOpenSearchAclSetIn struct { ElasticsearchVersion ElasticsearchVersionType `json:"elasticsearch_version,omitempty"` // Elasticsearch major version OpensearchAclConfig OpensearchAclConfigIn `json:"opensearch_acl_config"` // OpenSearch ACL configuration }
ServiceOpenSearchAclSetIn ServiceOpenSearchAclSetRequestBody
type ServiceOpenSearchAclSetOut ¶
type ServiceOpenSearchAclSetOut struct { ElasticsearchVersion ElasticsearchVersionType `json:"elasticsearch_version,omitempty"` // Elasticsearch major version OpensearchAclConfig OpensearchAclConfigOut `json:"opensearch_acl_config"` // OpenSearch ACL configuration }
ServiceOpenSearchAclSetOut ServiceOpenSearchAclSetResponse
type ServiceOpenSearchAclUpdateIn ¶
type ServiceOpenSearchAclUpdateIn struct { ElasticsearchVersion ElasticsearchVersionType `json:"elasticsearch_version,omitempty"` // Elasticsearch major version OpensearchAclConfig ServiceOpenSearchAclUpdateOpensearchAclConfigIn `json:"opensearch_acl_config"` // OpenSearch ACL configuration }
ServiceOpenSearchAclUpdateIn ServiceOpenSearchAclUpdateRequestBody
type ServiceOpenSearchAclUpdateOpensearchAclConfigIn ¶ added in v0.36.0
type ServiceOpenSearchAclUpdateOpensearchAclConfigIn struct { Acls *[]AclIn `json:"acls,omitempty"` // List of OpenSearch ACLs Enabled *bool `json:"enabled,omitempty"` // Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. }
ServiceOpenSearchAclUpdateOpensearchAclConfigIn OpenSearch ACL configuration
type ServiceOpenSearchAclUpdateOut ¶
type ServiceOpenSearchAclUpdateOut struct { ElasticsearchVersion ElasticsearchVersionType `json:"elasticsearch_version,omitempty"` // Elasticsearch major version OpensearchAclConfig OpensearchAclConfigOut `json:"opensearch_acl_config"` // OpenSearch ACL configuration }
ServiceOpenSearchAclUpdateOut ServiceOpenSearchAclUpdateResponse
type ServiceOpenSearchSecurityGetOut ¶
type ServiceOpenSearchSecurityGetOut struct { SecurityPluginAdminEnabled bool `json:"security_plugin_admin_enabled"` // security plugin admin defined SecurityPluginAvailable bool `json:"security_plugin_available"` // Opensearch security available for the service SecurityPluginEnabled *bool `json:"security_plugin_enabled,omitempty"` // Opensearch security enabled for the service }
ServiceOpenSearchSecurityGetOut ServiceOpenSearchSecurityGetResponse
type ServiceOpenSearchSecurityResetIn ¶
type ServiceOpenSearchSecurityResetIn struct { AdminPassword string `json:"admin_password"` // Current os-sec-admin password NewPassword string `json:"new_password"` // New os-sec-admin password }
ServiceOpenSearchSecurityResetIn ServiceOpenSearchSecurityResetRequestBody
type ServiceOpenSearchSecurityResetOut ¶
type ServiceOpenSearchSecurityResetOut struct { SecurityPluginAdminEnabled bool `json:"security_plugin_admin_enabled"` // security plugin admin defined SecurityPluginAvailable bool `json:"security_plugin_available"` // Opensearch security available for the service SecurityPluginEnabled *bool `json:"security_plugin_enabled,omitempty"` // Opensearch security enabled for the service }
ServiceOpenSearchSecurityResetOut ServiceOpenSearchSecurityResetResponse
type ServiceOpenSearchSecuritySetIn ¶
type ServiceOpenSearchSecuritySetIn struct {
AdminPassword string `json:"admin_password"` // os-sec-admin password
}
ServiceOpenSearchSecuritySetIn ServiceOpenSearchSecuritySetRequestBody
type ServiceOpenSearchSecuritySetOut ¶
type ServiceOpenSearchSecuritySetOut struct { SecurityPluginAdminEnabled bool `json:"security_plugin_admin_enabled"` // security plugin admin defined SecurityPluginAvailable bool `json:"security_plugin_available"` // Opensearch security available for the service SecurityPluginEnabled *bool `json:"security_plugin_enabled,omitempty"` // Opensearch security enabled for the service }
ServiceOpenSearchSecuritySetOut ServiceOpenSearchSecuritySetResponse