Documentation ¶
Index ¶
- Constants
- func AesDecrypt(data string) string
- func AppendMap(base map[string]string, toadd map[string]string)
- func GetRandomId() string
- func JsonConvertObjToString(source interface{}) (string, error)
- func JsonConvertObjToType(source interface{}, dest interface{}) error
- func SetlabelsFromOptions(options, labels map[string]string)
- type ESClient
- type NacosClient
- func (c *NacosClient) CreateNamespace(namespaceName string) (string, error)
- func (c *NacosClient) DeleteConfig(tenantName string, groupName string) error
- func (c *NacosClient) GetNamespaceId(namespaceName string) (string, error)
- func (c *NacosClient) Login() (string, error)
- func (c *NacosClient) SaveConfig(tenantName string, groupName string, dataId string, content string) error
Constants ¶
View Source
const ( LogVersion1 = "1.0.0" LogVersion2 = "2.0.0" )
log versions
View Source
const ( AccessToken = authType(0) Bearer = authType(1) )
Variables ¶
This section is empty.
Functions ¶
func JsonConvertObjToString ¶
func JsonConvertObjToType ¶
func JsonConvertObjToType(source interface{}, dest interface{}) error
func SetlabelsFromOptions ¶
SetlabelsFromOptions set service labels from addon Options
Types ¶
type ESClient ¶
ESClient .
func GetESClientsFromLogAnalytics ¶
func GetESClientsFromLogAnalytics(logDeployment *db.LogDeployment, addon string) *ESClient
func (*ESClient) CreateIndexTemplate ¶
type NacosClient ¶
type NacosClient struct {
// contains filtered or unexported fields
}
func NewNacosClient ¶
func NewNacosClient(clusterName, addr, user, password string) *NacosClient
func (*NacosClient) CreateNamespace ¶
func (c *NacosClient) CreateNamespace(namespaceName string) (string, error)
func (*NacosClient) DeleteConfig ¶
func (c *NacosClient) DeleteConfig(tenantName string, groupName string) error
func (*NacosClient) GetNamespaceId ¶
func (c *NacosClient) GetNamespaceId(namespaceName string) (string, error)
func (*NacosClient) Login ¶
func (c *NacosClient) Login() (string, error)
func (*NacosClient) SaveConfig ¶
Click to show internal directories.
Click to hide internal directories.