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
↓ 1 callers
Function
NewPlaygroundCommand
(l logger.Logger)
cmd/gtctl/playground.go:26
↓ 1 callers
Function
NewRootCommand
()
cmd/gtctl/main.go:31
↓ 1 callers
Function
NewScaleClusterCommand
(l logger.Logger)
cmd/gtctl/cluster_scale.go:57
↓ 1 callers
Function
NewSpinner
()
pkg/status/status.go:53
↓ 1 callers
Function
NewVersionCommand
(l logger.Logger)
cmd/gtctl/version.go:26
↓ 1 callers
Function
OperatorName
()
pkg/cluster/kubernetes/create.go:192
↓ 1 callers
Function
PostgresSQL
PostgresSQL connects to a GreptimeDB cluster using postgres protocol.
pkg/connector/postgres.go:45
↓ 1 callers
Method
Scale
(ctx context.Context, options *opt.ScaleOptions)
pkg/cluster/kubernetes/scale.go:27
↓ 1 callers
Method
SetHomeDir
SetHomeDir sets the home directory of the metadata manager.
pkg/metadata/manager.go:43
↓ 1 callers
Method
SetVerbosity
(log.Level)
cmd/gtctl/main.go:54
↓ 1 callers
Function
Uncompress
Uncompress uncompresses the file to the destination directory.
pkg/utils/file/file.go:103
↓ 1 callers
Method
UpdateCluster
(ctx context.Context, namespace string, cluster *greptimev1alpha1.GreptimeDBCluster)
pkg/kube/client.go:203
↓ 1 callers
Method
WaitForDeploymentReady
(ctx context.Context, name, namespace string, timeout time.Duration)
pkg/kube/client.go:225
↓ 1 callers
Method
WaitForEtcdReady
(ctx context.Context, name, namespace string, timeout time.Duration)
pkg/kube/client.go:247
↓ 1 callers
Function
WithDryRun
WithDryRun enables Cluster to dry run.
pkg/cluster/kubernetes/cluster.go:40
↓ 1 callers
Function
WithEnableCache
(enableCache bool)
pkg/cluster/baremetal/cluster.go:81
↓ 1 callers
Function
WithGreptimeVersion
(version string)
pkg/cluster/baremetal/cluster.go:75
↓ 1 callers
Function
WithHomeDir
(dir string)
pkg/helm/loader.go:80
↓ 1 callers
Function
WithReplaceConfig
WithReplaceConfig replaces current cluster config with given config.
pkg/cluster/baremetal/cluster.go:69
↓ 1 callers
Function
WithTimeout
WithTimeout enables Cluster to have a timeout.
pkg/cluster/kubernetes/cluster.go:47
↓ 1 callers
Method
chartFileName
(chartName, version string)
pkg/artifacts/manager.go:364
↓ 1 callers
Method
chartIndexFile
chartIndexFile returns the index file of the chart. We use the index file to get the specific version of the latest chart.
pkg/artifacts/manager.go:299
↓ 1 callers
Method
checkEtcdHealth
(etcdBin string)
pkg/cluster/baremetal/create.go:179
↓ 1 callers
Function
collectClusterInfoFromBareMetal
(data *cfg.BareMetalClusterMetadata)
pkg/cluster/baremetal/get.go:96
↓ 1 callers
Method
configGetView
(table *tablewriter.Table)
pkg/cluster/baremetal/get.go:78
↓ 1 callers
Method
configListView
(table *tablewriter.Table)
pkg/cluster/kubernetes/list.go:53
↓ 1 callers
Method
connectMySQL
(cluster *greptimedbclusterv1alpha1.GreptimeDBCluster)
pkg/cluster/kubernetes/connect.go:57
↓ 1 callers
Method
connectPostgres
(cluster *greptimedbclusterv1alpha1.GreptimeDBCluster)
pkg/cluster/kubernetes/connect.go:61
↓ 1 callers
Function
createCluster
()
tests/e2e/greptimedbcluster_test.go:142
↓ 1 callers
Method
debug
debug is like print but with a debug log header.
pkg/logger/logger.go:223
↓ 1 callers
Method
debugf
debugf is like printf but with a debug log header.
pkg/logger/logger.go:236
↓ 1 callers
Method
delete
(_ context.Context, baseDir string)
pkg/cluster/baremetal/delete.go:53
↓ 1 callers
Method
deleteCluster
(ctx context.Context, options *opt.DeleteOptions)
pkg/cluster/kubernetes/delete.go:60
↓ 1 callers
Method
deleteEtcdCluster
(ctx context.Context, options *opt.DeleteOptions)
pkg/cluster/kubernetes/delete.go:64
↓ 1 callers
Method
downloadFromHTTP
(ctx context.Context, httpURL string, dest string)
pkg/artifacts/manager.go:234
↓ 1 callers
Method
downloadFromOCI
(registryURL, version, dest string)
pkg/artifacts/manager.go:269
↓ 1 callers
Method
etcdBinaryDownloadURL
(version string, fromCNRegion bool)
pkg/artifacts/manager.go:378
↓ 1 callers
Method
generateManifests
(ctx context.Context, releaseName, namespace string, chart *chart.Chart, values map[string]interface{})
pkg/helm/loader.go:163
↓ 1 callers
Function
getCluster
()
tests/e2e/greptimedbcluster_test.go:153
↓ 1 callers
Method
getVerbosity
()
pkg/logger/logger.go:281
↓ 1 callers
Method
getVersionInfoFromS3
getVersionInfoFromS3 gets the latest version info from S3.
pkg/artifacts/manager.go:496
↓ 1 callers
Method
greptimeBinaryDownloadURL
(version string, fromCNRegion bool)
pkg/artifacts/manager.go:401
↓ 1 callers
Method
installBinaries
installBinaries installs the binaries to the installDir.
pkg/artifacts/manager.go:425
↓ 1 callers
Function
isBreakingVersion
TODO(zyy17): This function is just a temporary solution. We will remove it after the download URL of the greptime binary is stable.
pkg/artifacts/manager.go:542
↓ 1 callers
Method
isClusterReady
(ctx context.Context, name, namespace string)
pkg/kube/client.go:274
↓ 1 callers
Method
isClusterRunning
isClusterRunning checks the current status of cluster by sending signal to process.
pkg/cluster/baremetal/delete.go:58
↓ 1 callers
Method
isDeploymentReady
(ctx context.Context, name, namespace string)
pkg/kube/client.go:258
↓ 1 callers
Method
isNamespacedResource
()
pkg/kube/client.go:332
↓ 1 callers
Method
latestChartVersion
latestChartVersion returns the latest chart version.
pkg/artifacts/manager.go:348
↓ 1 callers
Method
list
(ctx context.Context)
pkg/cluster/kubernetes/list.go:44
↓ 1 callers
Method
listClusters
(ctx context.Context)
pkg/kube/client.go:318
↓ 1 callers
Function
loadConfig
(path string, ret *BareMetalClusterConfig)
pkg/config/validate_test.go:85
↓ 1 callers
Function
mergeMaps
mergeMaps merges two maps recursively. The function is copied from 'helm/helm/pkg/cli/values/options.go'.
pkg/helm/values.go:86
↓ 1 callers
Function
mysqlCommand
(port string)
pkg/connector/mysql.go:129
↓ 1 callers
Function
newBufferPool
newBufferPool returns a new bufferPool
pkg/logger/logger.go:291
↓ 1 callers
Method
newHelmClient
(releaseName, namespace string)
pkg/helm/loader.go:183
↓ 1 callers
Function
postgresSQLCommand
(port string)
pkg/connector/postgres.go:118
↓ 1 callers
Function
printTips
(l logger.Logger, clusterName string, options *clusterCreateCliOptions)
cmd/gtctl/cluster_create.go:235
↓ 1 callers
Method
renderGetView
(table *tablewriter.Table, data *cfg.BareMetalClusterMetadata)
pkg/cluster/baremetal/get.go:83
↓ 1 callers
Method
renderListView
(table *tablewriter.Table, data *greptimedbclusterv1alpha1.GreptimeDBClusterList)
pkg/cluster/kubernetes/list.go:67
↓ 1 callers
Method
resolveLatestVersion
resolveLatestVersion resolves the latest tag to the specific version.
pkg/artifacts/manager.go:465
↓ 1 callers
Method
scale
(options *opt.ScaleOptions, cluster *greptimedbclusterv1alpha1.GreptimeDBCluster)
pkg/cluster/kubernetes/scale.go:47
↓ 1 callers
Function
struct2Values
struct2Values converts the input struct to a helm values map.
pkg/helm/values.go:106
↓ 1 callers
Function
untar
(file, dst string)
pkg/utils/file/file.go:162
↓ 1 callers
Function
unzip
(file, dst string)
pkg/utils/file/file.go:115
↓ 1 callers
Method
validate
()
cmd/gtctl/cluster_scale.go:39
↓ 1 callers
Method
wait
(_ context.Context)
pkg/cluster/baremetal/create.go:253
↓ 1 callers
Method
write
synchronized write to the inner writer
pkg/logger/logger.go:191
Method
AllocateArtifactFilePath
(src *artifacts.Source, installBinary bool)
pkg/metadata/manager.go:117
Method
AllocateClusterScopeDirs
(clusterName string)
pkg/metadata/manager.go:99
Method
BuildArgs
BuildArgs build up args for cluster component.
pkg/components/types.go:47
Method
Clean
()
pkg/metadata/manager.go:195
Method
Connect
(ctx context.Context, options *opt.ConnectOptions)
pkg/cluster/baremetal/not_implemented.go:34
Function
CopyFile
CopyFile copies the file from src to dst.
pkg/utils/file/file.go:73
Method
Create
(ctx context.Context, options *opt.CreateOptions)
pkg/cluster/baremetal/create.go:34
Method
Create
(ctx context.Context, options *opt.CreateOptions)
pkg/cluster/kubernetes/create.go:34
Method
CreateClusterScopeDirs
(cfg *config.BareMetalClusterConfig)
pkg/metadata/manager.go:136
Method
Delete
(ctx context.Context, options *opt.DeleteOptions)
pkg/cluster/baremetal/delete.go:29
Method
Delete
(ctx context.Context, options *opt.DeleteOptions)
pkg/cluster/kubernetes/delete.go:27
Function
DeleteDirIfExists
(dir string)
pkg/utils/file/file.go:44
Method
DownloadTo
(ctx context.Context, from *Source, destDir string, opts *DownloadOptions)
pkg/artifacts/manager.go:182
Method
Enabled
Enabled is part of the log.InfoLogger interface.
pkg/logger/logger.go:160
Function
EnsureDir
EnsureDir ensures the directory exists.
pkg/utils/file/file.go:34
Method
Get
Get obtains a buffer from the pool.
pkg/logger/logger.go:305
Method
Get
(ctx context.Context, options *opt.GetOptions)
pkg/cluster/baremetal/get.go:37
Method
Get
(ctx context.Context, options *opt.GetOptions)
pkg/cluster/kubernetes/get.go:29
Method
GetClusterScopeDirs
()
pkg/metadata/manager.go:191
Method
GetWorkingDir
()
pkg/metadata/manager.go:187
Function
IsFileExists
(filepath string)
pkg/utils/file/file.go:51
Method
IsRunning
(_ context.Context)
pkg/components/etcd.go:82
Method
IsRunning
(_ context.Context)
pkg/components/frontend.go:118
Method
IsRunning
IsRunning returns the status of current cluster component.
pkg/components/types.go:50
Method
List
(ctx context.Context, options *opt.ListOptions)
pkg/cluster/baremetal/not_implemented.go:26
Method
NewSource
(name, version string, typ ArtifactType, fromCNRegion bool)
pkg/artifacts/manager.go:116
Method
Scale
Scale scales the current cluster according to NewReplicas in ScaleOptions, and refill the OldReplicas in ScaleOptions.
pkg/cluster/types.go:37
Method
Scale
(ctx context.Context, options *opt.ScaleOptions)
pkg/cluster/baremetal/not_implemented.go:30
Method
SetHomeDir
(dir string)
pkg/metadata/manager.go:182
Method
SetVerbosity
SetVerbosity sets the loggers verbosity.
pkg/logger/logger.go:148
Method
Start
(ctx context.Context, stop context.CancelFunc, binary string)
pkg/components/metasrv.go:57
Method
Start
(ctx context.Context, stop context.CancelFunc, binary string)
pkg/components/etcd.go:48
← previous
next →
101–200 of 231, ranked by callers