mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 12:27:52 +00:00
Unexport ctl.CommandClient
This commit is contained in:
parent
73a7588e1b
commit
7185c0f791
3 changed files with 4 additions and 4 deletions
|
|
@ -36,8 +36,8 @@ func SetTLSConfig(flags *pflag.FlagSet, certificatePath *string, certificateKeyP
|
|||
flags.BoolVarP(skipVerify, "tls.skip-verify", "", false, "Skip TLS certificate verification (not secure)")
|
||||
}
|
||||
|
||||
// CommandClient returns a pilosa.InternalHTTPClient for the command
|
||||
func CommandClient(cmd CommandWithTLSSupport) (*http.InternalClient, error) {
|
||||
// commandClient returns a pilosa.InternalHTTPClient for the command
|
||||
func commandClient(cmd CommandWithTLSSupport) (*http.InternalClient, error) {
|
||||
tlsConfig := cmd.TLSConfiguration()
|
||||
var TLSConfig *tls.Config
|
||||
if tlsConfig.CertificatePath != "" && tlsConfig.CertificateKeyPath != "" {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ func (cmd *ExportCommand) Run(ctx context.Context) error {
|
|||
}
|
||||
|
||||
// Create a client to the server.
|
||||
client, err := CommandClient(cmd)
|
||||
client, err := commandClient(cmd)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "creating client")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (cmd *ImportCommand) Run(ctx context.Context) error {
|
|||
return errors.New("path required")
|
||||
}
|
||||
// Create a client to the server.
|
||||
client, err := CommandClient(cmd)
|
||||
client, err := commandClient(cmd)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "creating client")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue