Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GreptimeTeam/gtctl
/ functions
Functions
231 in github.com/GreptimeTeam/gtctl
⨍
Functions
231
◇
Types & classes
63
↓ 116 callers
Method
Errorf
Errorf is part of the log.logger interface.
pkg/logger/logger.go:130
↓ 46 callers
Method
V
V is part of the log.logger interface.
pkg/logger/logger.go:139
↓ 39 callers
Method
Infof
Infof is part of the log.InfoLogger interface.
pkg/logger/logger.go:178
↓ 15 callers
Function
Bold
(s string)
pkg/logger/logger.go:57
↓ 12 callers
Method
Get
Get gets the current cluster profile.
pkg/cluster/types.go:30
↓ 12 callers
Method
Start
Start starts cluster component by executing binary.
pkg/components/types.go:44
↓ 10 callers
Method
Close
()
pkg/utils/file/file_test.go:34
↓ 10 callers
Method
Wait
(ctx context.Context, close bool)
pkg/cluster/baremetal/create.go:230
↓ 9 callers
Method
DownloadTo
DownloadTo downloads the artifact from the source to the dest and returns the path of the artifact.
pkg/artifacts/manager.go:50
↓ 8 callers
Function
GenerateAddrArg
GenerateAddrArg pushes arg into args array, return the new args array.
pkg/components/utils.go:41
↓ 8 callers
Function
New
New returns a new logger with the given verbosity.
pkg/logger/logger.go:62
↓ 8 callers
Method
NewSource
NewSource creates an artifact source with name, version, type and fromCNRegion.
pkg/artifacts/manager.go:47
↓ 8 callers
Function
RemoveAll
(path string)
pkg/utils/file/file.go:222
↓ 8 callers
Method
Run
Run searches for the plugin and runs it.
pkg/plugins/manager.go:79
↓ 8 callers
Function
destDir
(workingDir string, src *Source)
pkg/artifacts/manager_test.go:272
↓ 7 callers
Method
AllocateArtifactFilePath
AllocateArtifactFilePath allocates the file path of the artifact.
pkg/metadata/manager.go:37
↓ 7 callers
Method
Create
Create creates a new cluster.
pkg/cluster/types.go:40
↓ 7 callers
Method
GetClusterScopeDirs
GetClusterScopeDirs returns the cluster scope directory of current cluster.
pkg/metadata/manager.go:53
↓ 7 callers
Method
Info
Info is part of the log.InfoLogger interface.
pkg/logger/logger.go:165
↓ 7 callers
Function
NewManager
NewManager creates a new Manager with workingDir, logger and other options.
pkg/artifacts/manager.go:104
↓ 7 callers
Method
String
()
pkg/version/version.go:39
↓ 7 callers
Function
WithColored
()
pkg/logger/logger.go:96
↓ 6 callers
Method
GetWorkingDir
GetWorkingDir returns the working directory of the metadata manager. It should be ${HomeDir}/${BaseDir}.
pkg/metadata/manager.go:47
↓ 6 callers
Function
New
(homeDir string)
pkg/metadata/manager.go:85
↓ 6 callers
Function
NewCluster
(l logger.Logger, opts ...Option)
pkg/cluster/kubernetes/cluster.go:53
↓ 6 callers
Method
Stop
(success bool, status string)
pkg/status/status.go:68
↓ 5 callers
Method
Name
()
pkg/components/frontend.go:55
↓ 4 callers
Function
Default
Default returns the process-wide default logger.
pkg/logger/logger.go:77
↓ 4 callers
Method
Delete
Delete deletes a specific cluster.
pkg/cluster/types.go:43
↓ 4 callers
Method
Error
Error is part of the log.logger interface.
pkg/logger/logger.go:121
↓ 4 callers
Function
FormatAddrArg
FormatAddrArg formats the given addr and nodeId to a valid socket string. This function will return an empty string when the given addr is empty.
pkg/components/utils.go:27
↓ 4 callers
Method
LoadAndRenderChart
LoadAndRenderChart loads the chart from the remote charts and render the manifests with the values.
pkg/helm/loader.go:119
↓ 4 callers
Function
MustClose
(c io.Closer)
pkg/utils/file/file.go:216
↓ 4 callers
Method
Name
()
pkg/components/metasrv.go:53
↓ 4 callers
Method
Name
()
pkg/components/etcd.go:44
↓ 4 callers
Method
Name
()
pkg/components/datanode.go:63
↓ 4 callers
Method
get
(ctx context.Context, options *opt.GetOptions)
pkg/cluster/kubernetes/get.go:44
↓ 4 callers
Function
runBinary
(ctx context.Context, stop context.CancelFunc, option *RunOptions, wg *sync.WaitGroup, logger logger.Logger)
pkg/components/run.go:42
↓ 4 callers
Method
writeBuffer
writeBuffer writes buf with write, ensuring there is a trailing newline.
pkg/logger/logger.go:198
↓ 3 callers
Method
Apply
(ctx context.Context, manifests []byte)
pkg/kube/client.go:123
↓ 3 callers
Function
EtcdClusterName
(clusterName string)
pkg/cluster/kubernetes/create.go:188
↓ 3 callers
Method
Name
Name return the name of component.
pkg/components/types.go:53
↓ 3 callers
Function
NewCluster
(l logger.Logger, clusterName string, opts ...Option)
pkg/cluster/baremetal/cluster.go:93
↓ 3 callers
Method
Put
Put returns a buffer to the pool, resetting it first.
pkg/logger/logger.go:310
↓ 3 callers
Method
print
print writes a simple string to the log writer.
pkg/logger/logger.go:209
↓ 3 callers
Method
printf
printf is roughly fmt.Fprintf against the log writer.
pkg/logger/logger.go:215
↓ 2 callers
Method
AllocateClusterScopeDirs
AllocateClusterScopeDirs allocates the directories and config path of one cluster.
pkg/metadata/manager.go:40
↓ 2 callers
Method
Clean
Clean cleans up all the metadata. It will remove the working directory.
pkg/metadata/manager.go:56
↓ 2 callers
Method
CreateClusterScopeDirs
CreateClusterScopeDirs creates cluster scope directories and config path that allocated by AllocateClusterScopeDirs.
pkg/metadata/manager.go:50
↓ 2 callers
Function
DefaultBareMetalConfig
()
pkg/config/baremetal.go:102
↓ 2 callers
Function
Get
()
pkg/version/version.go:49
↓ 2 callers
Function
NewCluster
NewCluster creates a new cluster.
cmd/gtctl/cluster_create.go:117
↓ 2 callers
Function
NewFromFile
NewFromFile creates a new Values from a local yaml values file.
pkg/helm/values.go:37
↓ 2 callers
Function
NewLoader
(l logger.Logger, opts ...Option)
pkg/helm/loader.go:58
↓ 2 callers
Function
NewManager
()
pkg/plugins/manager.go:45
↓ 2 callers
Method
OutputValues
OutputValues returns the values as a yaml byte array.
pkg/helm/values.go:76
↓ 2 callers
Method
Parse
Parse parses raw config values and classify it to different categories of config type by its prefix.
pkg/config/kubernetes.go:41
↓ 2 callers
Function
SetDefault
SetDefault sets the process-wide default logger.
pkg/logger/logger.go:85
↓ 2 callers
Method
ShouldRun
ShouldRun returns true whether you should run the plugin.
pkg/plugins/manager.go:73
↓ 2 callers
Function
ToHelmValues
ToHelmValues converts the input struct that contains special helm annotations `helm:"values"` and the local yaml values file to a map that can be used
pkg/helm/values.go:54
↓ 2 callers
Function
ValidateConfig
ValidateConfig validate config in bare-metal mode.
pkg/config/validate.go:28
↓ 2 callers
Method
WaitForClusterReady
(ctx context.Context, name, namespace string, timeout time.Duration)
pkg/kube/client.go:236
↓ 2 callers
Method
Warnf
Warnf is part of the log.logger interface.
pkg/logger/logger.go:112
↓ 2 callers
Function
WithCreateNoDirs
()
pkg/cluster/baremetal/cluster.go:87
↓ 2 callers
Method
addDebugHeader
addDebugHeader inserts the debug line header to buf.
pkg/logger/logger.go:249
↓ 2 callers
Function
collectPidsForBareMetal
collectPidsForBareMetal returns the pid of each component.
pkg/cluster/baremetal/get.go:140
↓ 2 callers
Method
get
(_ context.Context, options *opt.GetOptions)
pkg/cluster/baremetal/get.go:48
↓ 2 callers
Method
getCluster
FIXME(zyy17): Generate clientset for Greptime CRDs.
pkg/kube/client.go:304
↓ 2 callers
Method
latestGitHubReleaseVersion
latestGitHubReleaseVersion returns the latest GitHub release version. It's used to locate the latest version of the latest greptime binary.
pkg/artifacts/manager.go:369
↓ 2 callers
Method
searchPlugins
(name string)
pkg/plugins/manager.go:100
↓ 1 callers
Method
BuildArgs
(params ...interface{})
pkg/components/metasrv.go:109
↓ 1 callers
Method
BuildArgs
(params ...interface{})
pkg/components/etcd.go:78
↓ 1 callers
Method
BuildArgs
(params ...interface{})
pkg/components/frontend.go:90
↓ 1 callers
Method
BuildArgs
(params ...interface{})
pkg/components/datanode.go:126
↓ 1 callers
Function
Compare
Compare compares two semantic versions. It returns true if v1 is greater than v2, otherwise false.
pkg/utils/semver/semver.go:25
↓ 1 callers
Method
Connect
Connect connects to a specific cluster.
pkg/cluster/types.go:46
↓ 1 callers
Method
Connect
(ctx context.Context, options *opt.ConnectOptions)
pkg/cluster/kubernetes/connect.go:31
↓ 1 callers
Method
DeleteCluster
(ctx context.Context, name, namespace string)
pkg/kube/client.go:199
↓ 1 callers
Method
DeleteEtcdCluster
(ctx context.Context, name, namespace string)
pkg/kube/client.go:213
↓ 1 callers
Method
GetCluster
(ctx context.Context, name, namespace string)
pkg/kube/client.go:191
↓ 1 callers
Method
IsRunning
(_ context.Context)
pkg/components/metasrv.go:140
↓ 1 callers
Method
IsRunning
(_ context.Context)
pkg/components/datanode.go:152
↓ 1 callers
Method
IsStatefulSetReady
(ctx context.Context, name, namespace string)
pkg/kube/client.go:290
↓ 1 callers
Method
List
List lists all cluster profiles.
pkg/cluster/types.go:33
↓ 1 callers
Method
List
(ctx context.Context, options *opt.ListOptions)
pkg/cluster/kubernetes/list.go:30
↓ 1 callers
Method
ListClusters
(ctx context.Context)
pkg/kube/client.go:195
↓ 1 callers
Function
MergeYAML
MergeYAML merges two yaml files from src to dst, the src yaml will override dst yaml if the same key exists.
pkg/utils/file/yaml.go:27
↓ 1 callers
Function
Mysql
Mysql connects to a GreptimeDB cluster using mysql protocol.
pkg/connector/mysql.go:47
↓ 1 callers
Function
NewClient
(kubeconfig string)
pkg/kube/client.go:66
↓ 1 callers
Function
NewClusterCommand
(l logger.Logger)
cmd/gtctl/cluster.go:27
↓ 1 callers
Function
NewClusterComponents
(config *config.BareMetalClusterComponentsConfig, workingDirs components.WorkingDirs, wg *sync.WaitGroup, log
pkg/cluster/baremetal/cluster.go:56
↓ 1 callers
Function
NewConnectCommand
(l logger.Logger)
cmd/gtctl/cluster_connect.go:35
↓ 1 callers
Function
NewCreateClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_create.go:76
↓ 1 callers
Function
NewDataNode
(config *config.Datanode, metaSrvAddr string, workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logg
pkg/components/datanode.go:52
↓ 1 callers
Function
NewDeleteClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_delete.go:39
↓ 1 callers
Function
NewEtcd
(workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logger)
pkg/components/etcd.go:36
↓ 1 callers
Function
NewFrontend
(config *config.Frontend, metaSrvAddr string, workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logg
pkg/components/frontend.go:44
↓ 1 callers
Function
NewGetClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_get.go:40
↓ 1 callers
Function
NewListClustersCommand
(l logger.Logger)
cmd/gtctl/cluster_list.go:31
↓ 1 callers
Function
NewMetaSrv
(config *config.MetaSrv, workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logger)
pkg/components/metasrv.go:43
next →
1–100 of 231, ranked by callers