MCPcopy Create free account

hub / github.com/GreptimeTeam/gtctl / functions

Functions231 in github.com/GreptimeTeam/gtctl

↓ 116 callersMethodErrorf
Errorf is part of the log.logger interface.
pkg/logger/logger.go:130
↓ 46 callersMethodV
V is part of the log.logger interface.
pkg/logger/logger.go:139
↓ 39 callersMethodInfof
Infof is part of the log.InfoLogger interface.
pkg/logger/logger.go:178
↓ 15 callersFunctionBold
(s string)
pkg/logger/logger.go:57
↓ 12 callersMethodGet
Get gets the current cluster profile.
pkg/cluster/types.go:30
↓ 12 callersMethodStart
Start starts cluster component by executing binary.
pkg/components/types.go:44
↓ 10 callersMethodClose
()
pkg/utils/file/file_test.go:34
↓ 10 callersMethodWait
(ctx context.Context, close bool)
pkg/cluster/baremetal/create.go:230
↓ 9 callersMethodDownloadTo
DownloadTo downloads the artifact from the source to the dest and returns the path of the artifact.
pkg/artifacts/manager.go:50
↓ 8 callersFunctionGenerateAddrArg
GenerateAddrArg pushes arg into args array, return the new args array.
pkg/components/utils.go:41
↓ 8 callersFunctionNew
New returns a new logger with the given verbosity.
pkg/logger/logger.go:62
↓ 8 callersMethodNewSource
NewSource creates an artifact source with name, version, type and fromCNRegion.
pkg/artifacts/manager.go:47
↓ 8 callersFunctionRemoveAll
(path string)
pkg/utils/file/file.go:222
↓ 8 callersMethodRun
Run searches for the plugin and runs it.
pkg/plugins/manager.go:79
↓ 8 callersFunctiondestDir
(workingDir string, src *Source)
pkg/artifacts/manager_test.go:272
↓ 7 callersMethodAllocateArtifactFilePath
AllocateArtifactFilePath allocates the file path of the artifact.
pkg/metadata/manager.go:37
↓ 7 callersMethodCreate
Create creates a new cluster.
pkg/cluster/types.go:40
↓ 7 callersMethodGetClusterScopeDirs
GetClusterScopeDirs returns the cluster scope directory of current cluster.
pkg/metadata/manager.go:53
↓ 7 callersMethodInfo
Info is part of the log.InfoLogger interface.
pkg/logger/logger.go:165
↓ 7 callersFunctionNewManager
NewManager creates a new Manager with workingDir, logger and other options.
pkg/artifacts/manager.go:104
↓ 7 callersMethodString
()
pkg/version/version.go:39
↓ 7 callersFunctionWithColored
()
pkg/logger/logger.go:96
↓ 6 callersMethodGetWorkingDir
GetWorkingDir returns the working directory of the metadata manager. It should be ${HomeDir}/${BaseDir}.
pkg/metadata/manager.go:47
↓ 6 callersFunctionNew
(homeDir string)
pkg/metadata/manager.go:85
↓ 6 callersFunctionNewCluster
(l logger.Logger, opts ...Option)
pkg/cluster/kubernetes/cluster.go:53
↓ 6 callersMethodStop
(success bool, status string)
pkg/status/status.go:68
↓ 5 callersMethodName
()
pkg/components/frontend.go:55
↓ 4 callersFunctionDefault
Default returns the process-wide default logger.
pkg/logger/logger.go:77
↓ 4 callersMethodDelete
Delete deletes a specific cluster.
pkg/cluster/types.go:43
↓ 4 callersMethodError
Error is part of the log.logger interface.
pkg/logger/logger.go:121
↓ 4 callersFunctionFormatAddrArg
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 callersMethodLoadAndRenderChart
LoadAndRenderChart loads the chart from the remote charts and render the manifests with the values.
pkg/helm/loader.go:119
↓ 4 callersFunctionMustClose
(c io.Closer)
pkg/utils/file/file.go:216
↓ 4 callersMethodName
()
pkg/components/metasrv.go:53
↓ 4 callersMethodName
()
pkg/components/etcd.go:44
↓ 4 callersMethodName
()
pkg/components/datanode.go:63
↓ 4 callersMethodget
(ctx context.Context, options *opt.GetOptions)
pkg/cluster/kubernetes/get.go:44
↓ 4 callersFunctionrunBinary
(ctx context.Context, stop context.CancelFunc, option *RunOptions, wg *sync.WaitGroup, logger logger.Logger)
pkg/components/run.go:42
↓ 4 callersMethodwriteBuffer
writeBuffer writes buf with write, ensuring there is a trailing newline.
pkg/logger/logger.go:198
↓ 3 callersMethodApply
(ctx context.Context, manifests []byte)
pkg/kube/client.go:123
↓ 3 callersFunctionEtcdClusterName
(clusterName string)
pkg/cluster/kubernetes/create.go:188
↓ 3 callersMethodName
Name return the name of component.
pkg/components/types.go:53
↓ 3 callersFunctionNewCluster
(l logger.Logger, clusterName string, opts ...Option)
pkg/cluster/baremetal/cluster.go:93
↓ 3 callersMethodPut
Put returns a buffer to the pool, resetting it first.
pkg/logger/logger.go:310
↓ 3 callersMethodprint
print writes a simple string to the log writer.
pkg/logger/logger.go:209
↓ 3 callersMethodprintf
printf is roughly fmt.Fprintf against the log writer.
pkg/logger/logger.go:215
↓ 2 callersMethodAllocateClusterScopeDirs
AllocateClusterScopeDirs allocates the directories and config path of one cluster.
pkg/metadata/manager.go:40
↓ 2 callersMethodClean
Clean cleans up all the metadata. It will remove the working directory.
pkg/metadata/manager.go:56
↓ 2 callersMethodCreateClusterScopeDirs
CreateClusterScopeDirs creates cluster scope directories and config path that allocated by AllocateClusterScopeDirs.
pkg/metadata/manager.go:50
↓ 2 callersFunctionDefaultBareMetalConfig
()
pkg/config/baremetal.go:102
↓ 2 callersFunctionGet
()
pkg/version/version.go:49
↓ 2 callersFunctionNewCluster
NewCluster creates a new cluster.
cmd/gtctl/cluster_create.go:117
↓ 2 callersFunctionNewFromFile
NewFromFile creates a new Values from a local yaml values file.
pkg/helm/values.go:37
↓ 2 callersFunctionNewLoader
(l logger.Logger, opts ...Option)
pkg/helm/loader.go:58
↓ 2 callersFunctionNewManager
()
pkg/plugins/manager.go:45
↓ 2 callersMethodOutputValues
OutputValues returns the values as a yaml byte array.
pkg/helm/values.go:76
↓ 2 callersMethodParse
Parse parses raw config values and classify it to different categories of config type by its prefix.
pkg/config/kubernetes.go:41
↓ 2 callersFunctionSetDefault
SetDefault sets the process-wide default logger.
pkg/logger/logger.go:85
↓ 2 callersMethodShouldRun
ShouldRun returns true whether you should run the plugin.
pkg/plugins/manager.go:73
↓ 2 callersFunctionToHelmValues
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 callersFunctionValidateConfig
ValidateConfig validate config in bare-metal mode.
pkg/config/validate.go:28
↓ 2 callersMethodWaitForClusterReady
(ctx context.Context, name, namespace string, timeout time.Duration)
pkg/kube/client.go:236
↓ 2 callersMethodWarnf
Warnf is part of the log.logger interface.
pkg/logger/logger.go:112
↓ 2 callersFunctionWithCreateNoDirs
()
pkg/cluster/baremetal/cluster.go:87
↓ 2 callersMethodaddDebugHeader
addDebugHeader inserts the debug line header to buf.
pkg/logger/logger.go:249
↓ 2 callersFunctioncollectPidsForBareMetal
collectPidsForBareMetal returns the pid of each component.
pkg/cluster/baremetal/get.go:140
↓ 2 callersMethodget
(_ context.Context, options *opt.GetOptions)
pkg/cluster/baremetal/get.go:48
↓ 2 callersMethodgetCluster
FIXME(zyy17): Generate clientset for Greptime CRDs.
pkg/kube/client.go:304
↓ 2 callersMethodlatestGitHubReleaseVersion
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 callersMethodsearchPlugins
(name string)
pkg/plugins/manager.go:100
↓ 1 callersMethodBuildArgs
(params ...interface{})
pkg/components/metasrv.go:109
↓ 1 callersMethodBuildArgs
(params ...interface{})
pkg/components/etcd.go:78
↓ 1 callersMethodBuildArgs
(params ...interface{})
pkg/components/frontend.go:90
↓ 1 callersMethodBuildArgs
(params ...interface{})
pkg/components/datanode.go:126
↓ 1 callersFunctionCompare
Compare compares two semantic versions. It returns true if v1 is greater than v2, otherwise false.
pkg/utils/semver/semver.go:25
↓ 1 callersMethodConnect
Connect connects to a specific cluster.
pkg/cluster/types.go:46
↓ 1 callersMethodConnect
(ctx context.Context, options *opt.ConnectOptions)
pkg/cluster/kubernetes/connect.go:31
↓ 1 callersMethodDeleteCluster
(ctx context.Context, name, namespace string)
pkg/kube/client.go:199
↓ 1 callersMethodDeleteEtcdCluster
(ctx context.Context, name, namespace string)
pkg/kube/client.go:213
↓ 1 callersMethodGetCluster
(ctx context.Context, name, namespace string)
pkg/kube/client.go:191
↓ 1 callersMethodIsRunning
(_ context.Context)
pkg/components/metasrv.go:140
↓ 1 callersMethodIsRunning
(_ context.Context)
pkg/components/datanode.go:152
↓ 1 callersMethodIsStatefulSetReady
(ctx context.Context, name, namespace string)
pkg/kube/client.go:290
↓ 1 callersMethodList
List lists all cluster profiles.
pkg/cluster/types.go:33
↓ 1 callersMethodList
(ctx context.Context, options *opt.ListOptions)
pkg/cluster/kubernetes/list.go:30
↓ 1 callersMethodListClusters
(ctx context.Context)
pkg/kube/client.go:195
↓ 1 callersFunctionMergeYAML
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 callersFunctionMysql
Mysql connects to a GreptimeDB cluster using mysql protocol.
pkg/connector/mysql.go:47
↓ 1 callersFunctionNewClient
(kubeconfig string)
pkg/kube/client.go:66
↓ 1 callersFunctionNewClusterCommand
(l logger.Logger)
cmd/gtctl/cluster.go:27
↓ 1 callersFunctionNewClusterComponents
(config *config.BareMetalClusterComponentsConfig, workingDirs components.WorkingDirs, wg *sync.WaitGroup, log
pkg/cluster/baremetal/cluster.go:56
↓ 1 callersFunctionNewConnectCommand
(l logger.Logger)
cmd/gtctl/cluster_connect.go:35
↓ 1 callersFunctionNewCreateClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_create.go:76
↓ 1 callersFunctionNewDataNode
(config *config.Datanode, metaSrvAddr string, workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logg
pkg/components/datanode.go:52
↓ 1 callersFunctionNewDeleteClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_delete.go:39
↓ 1 callersFunctionNewEtcd
(workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logger)
pkg/components/etcd.go:36
↓ 1 callersFunctionNewFrontend
(config *config.Frontend, metaSrvAddr string, workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logg
pkg/components/frontend.go:44
↓ 1 callersFunctionNewGetClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_get.go:40
↓ 1 callersFunctionNewListClustersCommand
(l logger.Logger)
cmd/gtctl/cluster_list.go:31
↓ 1 callersFunctionNewMetaSrv
(config *config.MetaSrv, workingDirs WorkingDirs, wg *sync.WaitGroup, logger logger.Logger)
pkg/components/metasrv.go:43
next →1–100 of 231, ranked by callers