Documentation ¶
Index ¶
- Constants
- type Client
- type ClientOptions
- type Config
- type DbVersionInfo
- type EDClient
- type EDClientV7
- func (h *EDClientV7) CreateSpace(space Space) error
- func (h *EDClientV7) ExportSavedObjects(spaceName string) (*Response, error)
- func (h *EDClientV7) GetHealthStatus() (*Health, error)
- func (h *EDClientV7) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error)
- func (h *EDClientV7) ImportSavedObjects(spaceName, filepath string) (*Response, error)
- func (h *EDClientV7) ListSpaces() ([]Space, error)
- type EDClientV8
- func (h *EDClientV8) CreateSpace(space Space) error
- func (h *EDClientV8) ExportSavedObjects(spaceName string) (*Response, error)
- func (h *EDClientV8) GetHealthStatus() (*Health, error)
- func (h *EDClientV8) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error)
- func (h *EDClientV8) ImportSavedObjects(spaceName, filepath string) (*Response, error)
- func (h *EDClientV8) ListSpaces() ([]Space, error)
- type Health
- type KubeDBClientBuilder
- func (o *KubeDBClientBuilder) GetElasticsearchDashboardClient() (*Client, error)
- func (o *KubeDBClientBuilder) WithAuthSecret(secret *core.Secret) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithDatabaseRef(db *v1alpha2.Elasticsearch) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithDbVersion(version *catalog.ElasticsearchVersion) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithDbVersionInfo(versionInfo *DbVersionInfo) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
- type OSClient
- func (h *OSClient) CreateSpace(_ Space) error
- func (h *OSClient) ExportSavedObjects(_ string) (*Response, error)
- func (h *OSClient) GetHealthStatus() (*Health, error)
- func (h *OSClient) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error)
- func (h *OSClient) ImportSavedObjects(_, filepath string) (*Response, error)
- func (h *OSClient) ListSpaces() ([]Space, error)
- type Response
- type ResponseBody
- type Space
Constants ¶
View Source
const ( SavedObjectsReqBodyES = `` /* 350-byte string literal not displayed */ SavedObjectsReqBodyOS = `` /* 182-byte string literal not displayed */ SavedObjectsExportURL = "/api/saved_objects/_export" SavedObjectsImportURL = "/api/saved_objects/_import" SpacesURL = "/api/spaces/space" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOptions ¶
type ClientOptions struct { KClient client.Client Dashboard *esapi.ElasticsearchDashboard ESVersion *catalog.ElasticsearchVersion DB *api.Elasticsearch Ctx context.Context Secret *core.Secret }
type DbVersionInfo ¶
type DbVersionInfo struct { Name string Version string AuthPlugin catalog.ElasticsearchAuthPlugin }
type EDClient ¶
type EDClient interface { GetHealthStatus() (*Health, error) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error) ExportSavedObjects(spaceName string) (*Response, error) ImportSavedObjects(spaceName, filepath string) (*Response, error) ListSpaces() ([]Space, error) CreateSpace(space Space) error }
type EDClientV7 ¶
type EDClientV7 struct { Client *resty.Client Config *Config }
func (*EDClientV7) CreateSpace ¶ added in v0.0.15
func (h *EDClientV7) CreateSpace(space Space) error
func (*EDClientV7) ExportSavedObjects ¶
func (h *EDClientV7) ExportSavedObjects(spaceName string) (*Response, error)
func (*EDClientV7) GetHealthStatus ¶
func (h *EDClientV7) GetHealthStatus() (*Health, error)
func (*EDClientV7) GetStateFromHealthResponse ¶
func (h *EDClientV7) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error)
GetStateFromHealthResponse parse health response in json from server and return overall status of the server
func (*EDClientV7) ImportSavedObjects ¶
func (h *EDClientV7) ImportSavedObjects(spaceName, filepath string) (*Response, error)
func (*EDClientV7) ListSpaces ¶ added in v0.0.11
func (h *EDClientV7) ListSpaces() ([]Space, error)
type EDClientV8 ¶
type EDClientV8 struct { Client *resty.Client Config *Config }
func (*EDClientV8) CreateSpace ¶ added in v0.0.15
func (h *EDClientV8) CreateSpace(space Space) error
func (*EDClientV8) ExportSavedObjects ¶
func (h *EDClientV8) ExportSavedObjects(spaceName string) (*Response, error)
func (*EDClientV8) GetHealthStatus ¶
func (h *EDClientV8) GetHealthStatus() (*Health, error)
func (*EDClientV8) GetStateFromHealthResponse ¶
func (h *EDClientV8) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error)
GetStateFromHealthResponse parse health response in json from server and return overall status of the server
func (*EDClientV8) ImportSavedObjects ¶
func (h *EDClientV8) ImportSavedObjects(spaceName, filepath string) (*Response, error)
func (*EDClientV8) ListSpaces ¶ added in v0.0.11
func (h *EDClientV8) ListSpaces() ([]Space, error)
type KubeDBClientBuilder ¶
type KubeDBClientBuilder struct {
// contains filtered or unexported fields
}
func NewKubeDBClientBuilder ¶
func NewKubeDBClientBuilder(kc client.Client, db *esapi.ElasticsearchDashboard) *KubeDBClientBuilder
func (*KubeDBClientBuilder) GetElasticsearchDashboardClient ¶
func (o *KubeDBClientBuilder) GetElasticsearchDashboardClient() (*Client, error)
func (*KubeDBClientBuilder) WithAuthSecret ¶
func (o *KubeDBClientBuilder) WithAuthSecret(secret *core.Secret) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithContext ¶
func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithDatabaseRef ¶
func (o *KubeDBClientBuilder) WithDatabaseRef(db *v1alpha2.Elasticsearch) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithDbVersion ¶
func (o *KubeDBClientBuilder) WithDbVersion(version *catalog.ElasticsearchVersion) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithDbVersionInfo ¶
func (o *KubeDBClientBuilder) WithDbVersionInfo(versionInfo *DbVersionInfo) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithPod ¶
func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithURL ¶
func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
type OSClient ¶
type OSClient struct { Client *resty.Client Config *Config }
func (*OSClient) CreateSpace ¶ added in v0.0.15
func (*OSClient) ExportSavedObjects ¶
func (*OSClient) GetHealthStatus ¶
func (*OSClient) GetStateFromHealthResponse ¶
func (h *OSClient) GetStateFromHealthResponse(health *Health) (esapi.DashboardServerState, error)
GetStateFromHealthResponse parse health response in json from server and return overall status of the server
func (*OSClient) ImportSavedObjects ¶
func (*OSClient) ListSpaces ¶ added in v0.0.11
type Response ¶
type Response struct { Code int Body io.ReadCloser // contains filtered or unexported fields }
type ResponseBody ¶
type Space ¶ added in v0.0.15
type Space struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description,omitempty"` Color string `json:"color,omitempty"` Initials string `json:"initials,omitempty"` DisabledFeatures []string `json:"disabledFeatures,omitempty"` ImageUrl string `json:"imageUrl,omitempty"` }
Click to show internal directories.
Click to hide internal directories.