Versions in this module Expand all Collapse all v1 v1.1.2 Aug 7, 2023 v1.1.1 Aug 7, 2023 v1.1.0 Aug 2, 2023 Changes in this version type Config + IP string + Port string + Scheme string + Version string v1.0.0 Aug 2, 2023 Changes in this version + const AccessToken + const ConfigContent + const ConfigContentType + const ConfigDataId + const ConfigGroup + const ConfigId + const ConfigNid + const DefaultGroup + const DefaultTenant + const Env + const HttpClientTimeout + const IPathAuth + const IPathConfig + const IPathConfigHistory + const IPathConfigHistoryDetail + const IPathConfigHistoryPrevious + const IPathConfigListener + const IPathInstance + const IPathInstanceBeat + const IPathInstanceHealth + const IPathInstanceList + const IPathNamespaces + const IPathOperatorLeader + const IPathOperatorMetrics + const IPathOperatorServers + const IPathOperatorSwitch + const IPathPermission + const IPathRoles + const IPathService + const IPathServiceList + const IPathUser + const NameSpace + const NewPassword + const OperatorDebug + const OperatorEntry + const OperatorValue + const PageNo + const PageSize + const Password + const PermissionAction + const PermissionCustomNamespaceId + const PermissionNamespaceDesc + const PermissionNamespaceId + const PermissionNamespaceName + const PermissionNamespaceShowName + const PermissionSuffix + const Resource + const Role + const Scheme + const Search + const SearchType + const ServerAddr + const ServiceClusterName + const ServiceClusters + const ServiceEnable + const ServiceEphemeral + const ServiceGroupName + const ServiceHealthy + const ServiceIP + const ServiceMetadata + const ServiceName + const ServiceNamespaceId + const ServicePort + const ServiceProtectThreshold + const ServiceSelector + const ServiceWeight + const Tenant + const TokenRefreshWindow + const TokenTtl + const Username + const WebContext + var BoolResult bool + var StringResult string + type Client struct + Config *Config + func New(config *Config) *Client + func (c *Client) CreateNamespace(req *CreateNamespaceRequest) (bool, error) + func (c *Client) CreatePermission(req *CreatePermissionRequest) error + func (c *Client) CreateRoles(req *CreateRoleRequest) error + func (c *Client) CreateService(req *CreateServiceRequest) (bool, error) + func (c *Client) CreateUser(req *User) error + func (c *Client) DeleteConfig(req *ConfigBase) error + func (c *Client) DeleteNamespace(req *DeleteNamespaceRequest) (bool, error) + func (c *Client) DeletePermission(req *DeletePermissionRequest) error + func (c *Client) DeleteRoles(req *DeleteRoleRequest) error + func (c *Client) DeleteService(req *DeleteServiceRequest) (bool, error) + func (c *Client) DeleteUser(req *DeleteUserRequest) error + func (c *Client) DeregisterInstance(req *DeregisterInstanceRequest) error + func (c *Client) GetConfig(req *ConfigBase) (string, error) + func (c *Client) GetConfigHistory(req *GetConfigHistoryRequest) (*GetConfigHistoryResponse, error) + func (c *Client) GetConfigHistoryDetail(req *GetConfigHistoryDetailRequest) (*GetConfigHistoryDetailResponse, error) + func (c *Client) GetConfigHistoryPrevious(req *GetConfigHistoryPreviousRequest) (*GetConfigHistoryDetailResponse, error) + func (c *Client) GetInstance(req *GetInstanceRequest) (*GetInstanceResponse, error) + func (c *Client) GetInstances(req *GetInstancesRequest) (*GetInstancesResponse, error) + func (c *Client) GetNamespaces() (*GetNamespacesResponse, error) + func (c *Client) GetOperatorLeader() (*GetLeaderResponse, error) + func (c *Client) GetOperatorMetrics() (*GetMetricsResponse, error) + func (c *Client) GetOperatorServerList(req *GetServerListRequest) (*GetServerListResponse, error) + func (c *Client) GetOperatorSwitch() (*GetOperatorSwitchResponse, error) + func (c *Client) GetPermissions(req *Page) (*GetPermissions, error) + func (c *Client) GetRoles(req *Page) (*GetRolesResponse, error) + func (c *Client) GetService(req *ServiceBase) (*ServiceBaseResponse, error) + func (c *Client) GetServiceList(req *GetServiceListRequest) (*GetServiceListResponse, error) + func (c *Client) GetUsers(req *Page) (*GetUsersResponse, error) + func (c *Client) Health() error + func (c *Client) ListenConfig(req *ListeningConfigs) (string, error) + func (c *Client) Login() error + func (c *Client) ModifyInstance(req *ModifyInstanceRequest) error + func (c *Client) ModifyOperatorSwitch(req *ModifyOperatorSwitchRequest) (bool, error) + func (c *Client) ModifyService(req *ModifyServiceRequest) (bool, error) + func (c *Client) PublishConfig(req *PublishConfigRequest) error + func (c *Client) PutNamespace(req *PutNamespaceRequest) (bool, error) + func (c *Client) PutUser(req *User) error + func (c *Client) RegisterInstance(req *RegisterInstanceRequest) error + func (c *Client) SendHeartbeat(req *SendHeartbeatRequest) (bool, error) + func (c *Client) UpdateInstanceHealthStatus(req *UpdateInstanceHealthStatusRequest) (bool, error) + type Config struct + Addr string + Password string + Username string + type ConfigBase struct + DataId string + Group string + Tenant string + type CreateNamespaceRequest struct + CustomNamespaceId string + NamespaceDesc string + NamespaceName string + type CreatePermissionRequest struct + Action string + NamespaceId string + Role string + type CreateRoleRequest struct + Role string + Username string + type CreateServiceRequest struct + Metadata string + ProtectThreshold float64 + Selector CreateServiceSelector + type CreateServiceSelector struct + Default bool + type DeleteNamespaceRequest struct + NamespaceId string + type DeletePermissionRequest struct + Action string + Resource string + Role string + type DeleteRoleRequest struct + Role string + Username string + type DeleteServiceRequest struct + type DeleteUserRequest struct + Username string + type DeregisterInstanceRequest struct + ClusterName string + Ephemeral bool + GroupName string + IP string + NamespaceId string + Port int + ServiceName string + type DoParams struct + Method string + Path string + QueryParams map[string]string + Req interface{} + Result interface{} + type GetConfigHistoryDetailRequest struct + Nid string + type GetConfigHistoryDetailResponse struct + AppName string + Content string + CreatedTime string + DataId string + Group string + Id string + LastId int + LastModifiedTime string + Md5 string + OpType string + SrcIp string + SrcUser interface{} + Tenant string + type GetConfigHistoryPreviousRequest struct + Id int + type GetConfigHistoryRequest struct + type GetConfigHistoryResponse struct + PageItems []struct{ ... } + PageNumber int + PagesAvailable int + TotalCount int + type GetInstanceRequest struct + Healthy bool + type GetInstanceResponse struct + ClusterName string + Healthy bool + InstanceId string + Ip string + Metadata struct{} + Port int + Service string + Weight float64 + type GetInstancesRequest struct + Clusters string + GroupName string + HealthyOnly bool + NamespaceId string + ServiceName string + type GetInstancesResponse struct + AllIPs bool + CacheMillis int + Checksum string + Clusters string + GroupName string + Hosts []struct{ ... } + LastRefTime int64 + Name string + ReachProtectionThreshold bool + Valid bool + type GetLeaderResponse struct + Leader struct{ ... } + type GetMetricsResponse struct + Cpu float64 + InstanceCount int + Load float64 + Mem float64 + ResponsibleInstanceCount int + ResponsibleServiceCount int + ServiceCount int + Status string + type GetNamespacesResponse struct + Code int + Data []struct{ ... } + Message interface{} + type GetOperatorSwitchResponse struct + AdWeightMap struct{} + CheckTimes int + Checksum string + ClientBeatInterval int + DefaultCacheMillis int + DefaultInstanceEphemeral bool + DefaultPushCacheMillis int + DisableAddIP bool + DistroEnabled bool + DistroServerExpiredMillis int + DistroThreshold float64 + EnableAuthentication bool + EnableStandalone bool + HealthCheckEnabled bool + HealthCheckWhiteList []string + HttpHealthParams struct{ ... } + IncrementalList []string + LimitedUrlMap struct{} + Masters interface{} + MysqlHealthParams struct{ ... } + Name string + OverriddenServerStatus string + PushCVersion string + PushEnabled bool + PushGoVersion string + PushJavaVersion string + PushPythonVersion string + SendBeatOnly bool + ServerStatusSynchronizationPeriodMillis int + ServiceStatusSynchronizationPeriodMillis int + TcpHealthParams struct{ ... } + type GetPermissions struct + PageItems []struct{ ... } + PageNumber int + PagesAvailable int + TotalCount int + type GetRolesResponse struct + PageItems []struct{ ... } + PageNumber int + PagesAvailable int + TotalCount int + type GetServerListRequest struct + Healthy bool + type GetServerListResponse struct + Servers []struct{ ... } + type GetServiceListRequest struct + GroupName string + NamespaceId string + type GetServiceListResponse struct + Count int + Doms []string + type GetUsersResponse struct + PageItems []struct{ ... } + PageNumber int + PagesAvailable int + TotalCount int + type HeartBeat struct + Cluster string + Ip string + Metadata struct{} + Port int + Scheduled bool + ServiceName string + Weight int + type InstanceBase struct + ClusterName string + Ephemeral bool + GroupName string + IP string + NamespaceId string + Port int + ServiceName string + type ListeningConfigs struct + ContentMD5 string + type LoginResponse struct + AccessToken string + GlobalAdmin bool + TokenTtl int + Username string + type ModifyInstanceRequest struct + ClusterName string + Enable bool + Ephemeral bool + GroupName string + Healthy bool + IP string + Metadata string + NamespaceId string + Port int + ServiceName string + Weight float64 + type ModifyOperatorSwitchRequest struct + Debug bool + Entry string + Value string + type ModifyServiceRequest struct + Metadata string + ProtectThreshold float64 + Selector CreateServiceSelector + type Page struct + PageNo int + PageSize int + type PublishConfigRequest struct + Content string + ContentType string + type PutNamespaceRequest struct + Namespace string + NamespaceDesc string + NamespaceShowName string + type RegisterInstanceRequest struct + ClusterName string + Enable bool + Ephemeral bool + GroupName string + Healthy bool + IP string + Metadata string + NamespaceId string + Port int + ServiceName string + Weight float64 + type SendHeartbeatRequest struct + HeartBeat HeartBeat + type ServiceBase struct + GroupName string + NamespaceId string + ServiceName string + type ServiceBaseResponse struct + Clusters []struct{ ... } + GroupName string + Metadata struct{} + Name string + NamespaceId string + ProtectThreshold int + Selector struct{ ... } + type UpdateInstanceHealthStatusRequest struct + ClusterName string + GroupName string + Healthy bool + IP string + NamespaceId string + Port int + ServiceName string + type User struct + Password string + Username string