Documentation
¶
Index ¶
- func InitInstance(timeout time.Duration)
- type Client
- func (c *Client) CreateDataContainer(token string, baseUrl string, namespace string, dataSource string, name string, ...) error
- func (c *Client) CreateDataSource(token string, baseUrl string, namespace string, name string, typeStr string, ...) error
- func (c *Client) CreateNamespace(token string, baseUrl string, name string) error
- func (c *Client) DeleteDataContainer(token string, baseUrl string, namespace string, dataSource string, name string) error
- func (c *Client) DeleteDataSource(token string, baseUrl string, namespace string, name string) error
- func (c *Client) DeleteNamespace(token string, baseUrl string, name string) error
- func (c *Client) DeleteToken(token string, baseUrl string, name string) error
- func (c *Client) ExecuteRawSql(token string, baseUrl string, namespace string, dataSource string, sql string, ...) ([]map[string]any, int64, error)
- func (c *Client) GenerateToken(token string, baseUrl string, name string) (string, error)
- func (c *Client) GetDataContainers(token string, baseUrl string, namespace string, dataSource string, name string, ...) ([]DataContainerInfo, error)
- func (c *Client) GetDataSourceSpec(token string, baseUrl string, namespace string, name string) (string, error)
- func (c *Client) GetDataSources(token string, baseUrl string, namespace string, name string, typeStr string, ...) ([]DataSourceInfo, error)
- func (c *Client) GetExecuteSqlLogs(token string, baseUrl string, namespace string, dataSource string, ...) ([]ExecuteSqlLogInfo, error)
- func (c *Client) GetNamespaces(token string, baseUrl string, name string, pageNo int, pageSize int) ([]NamespaceInfo, error)
- func (c *Client) GetTokens(token string, baseUrl string, name string, pageNo int, pageSize int) ([]TokenInfo, error)
- func (c *Client) Version(baseUrl string) error
- type DataContainerInfo
- type DataSourceInfo
- type ExecuteSqlLogInfo
- type InfosData
- type InfosResponse
- type MsgResponse
- type NamespaceInfo
- type TokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitInstance ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *Client
func (*Client) CreateDataContainer ¶
func (*Client) CreateDataSource ¶
func (*Client) CreateNamespace ¶
func (*Client) DeleteDataContainer ¶
func (*Client) DeleteDataSource ¶
func (*Client) DeleteNamespace ¶
func (*Client) DeleteToken ¶
func (*Client) ExecuteRawSql ¶
func (*Client) GenerateToken ¶
func (*Client) GetDataContainers ¶
func (*Client) GetDataSourceSpec ¶ added in v0.2.14
func (*Client) GetDataSources ¶
func (*Client) GetExecuteSqlLogs ¶ added in v0.1.4
func (*Client) GetNamespaces ¶
type DataContainerInfo ¶
type DataSourceInfo ¶
type ExecuteSqlLogInfo ¶ added in v0.1.4
type InfosResponse ¶ added in v0.10.9
type InfosResponse[T any] struct { MsgResponse InfosData[T] }
type MsgResponse ¶ added in v0.10.9
type NamespaceInfo ¶
type NamespaceInfo struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.