{"modulePath":"github.com/ethersphere/beekeeper","version":"v0.39.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Variables\n\n```go\nvar ErrNodesNotFound = fmt.Errorf(\"nodes not found\")\n```\n\n```go\nvar ErrNotSet = errors.New(\"node client not initialized\")\n```\nErrNotSet represents error when NodeClient is not set\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(cfg *ClientConfig) *Client\n```\n\n```go\nfunc (sc *Client) GetNodes(ctx context.Context) (nodes NodeList, err error)\n```\n\n```go\nfunc (sc *Client) Namespace() string\n```\n\n```go\ntype ClientConfig struct {\n\tLog            logging.Logger\n\tHTTPClient     *http.Client\n\tK8sClient      *k8s.Client\n\tBeeClients     orchestration.ClientMap\n\tNamespace      string\n\tLabelSelector  string\n\tDeploymentType DeploymentType\n\tInCluster      bool\n\tUseNamespace   bool     // Overrides the usage of the bee clients\n\tNodeGroups     []string // Node groups for filtering nodes (only used with beekeeper deployment)\n}\n```\n\n```go\ntype DeploymentType string\n```\n\n```go\nconst (\n\tDeploymentTypeBeekeeper DeploymentType = \"beekeeper\"\n\tDeploymentTypeHelm      DeploymentType = \"helm\"\n)\n```\n\n```go\ntype Node struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewNode(client *api.Client, name string) *Node\n```\n\n```go\nfunc (n *Node) Client() *api.Client\n```\n\n```go\nfunc (n *Node) Name() string\n```\n\n```go\ntype NodeList []Node\n```\n\n```go\nfunc (ns NodeList) Get(name string) *Node\n```\n\n```go\nfunc (ns NodeList) Sort() NodeList\n```\n\n```go\ntype NodeProvider interface {\n\tGetNodes(ctx context.Context) (NodeList, error)\n\tNamespace() string\n}\n```\n\n```go\ntype NotSet struct{}\n```\n\n```go\nfunc (n *NotSet) GetNodes(ctx context.Context) (NodeList, error)\n```\nGetNodes implements NodeProvider.\n\n```go\nfunc (n *NotSet) Namespace() string\n```\n\n","path":"github.com/ethersphere/beekeeper/pkg/node","name":"node","synopsis":"","isRedistributable":true}
