nacos

package
v2.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*httpclient.Client

	UserName string
	Password string
	// contains filtered or unexported fields
}

func NewNacosClient

func NewNacosClient(serverAddr, userName, password string) (*Client, error)

func (*Client) GetConfig

func (c *Client) GetConfig(dataID, group, namespaceID string) (*types.NacosConfig, error)

func (*Client) ListConfigs

func (c *Client) ListConfigs(namespaceID string) ([]*types.NacosConfig, error)

func (*Client) ListNamespaces

func (c *Client) ListNamespaces() ([]*types.NacosNamespace, error)

func (*Client) UpdateConfig

func (c *Client) UpdateConfig(dataID, group, namespaceID, content, format string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL