9292
9393 // Print the pgbackrest info output received.
9494 cmd .Printf ("BACKUP\n \n " )
95- if stdout , stderr , err := showBackup (config , args , "text" , "" ); err != nil {
95+ if stdout , stderr , err := getBackup (config , args , "text" , "" ); err != nil {
9696 return err
9797 } else {
9898 cmd .Printf (stdout )
103103
104104 // Print the patronictl list output received.
105105 cmd .Printf ("\n HA\n \n " )
106- if stdout , stderr , err := showHA (config , args , "pretty" ); err != nil {
106+ if stdout , stderr , err := getHA (config , args , "pretty" ); err != nil {
107107 return err
108108 } else {
109109 cmd .Printf (stdout )
@@ -182,7 +182,7 @@ stanza: db
182182 // handle validation.
183183 repoNum := strings .TrimPrefix (repoName , "repo" )
184184
185- stdout , stderr , err := showBackup (config , args , outputEnum .String (), repoNum )
185+ stdout , stderr , err := getBackup (config , args , outputEnum .String (), repoNum )
186186
187187 if err == nil {
188188 cmd .Printf (stdout )
@@ -197,9 +197,9 @@ stanza: db
197197 return cmdShowBackup
198198}
199199
200- // showBackup execs into the primary Pod, runs the 'pgbackrest info' command and
200+ // getBackup execs into the primary Pod, runs the 'pgbackrest info' command and
201201// returns the command output and/or error
202- func showBackup (
202+ func getBackup (
203203 config * internal.Config ,
204204 args []string ,
205205 output string ,
@@ -254,7 +254,7 @@ pgo show ha hippo --output json
254254 // Define the 'show backup' command
255255 cmdShowHA .RunE = func (cmd * cobra.Command , args []string ) error {
256256
257- stdout , stderr , err := showHA (config , args , outputEnum .String ())
257+ stdout , stderr , err := getHA (config , args , outputEnum .String ())
258258
259259 if err == nil {
260260 cmd .Printf (stdout )
@@ -269,9 +269,9 @@ pgo show ha hippo --output json
269269 return cmdShowHA
270270}
271271
272- // showHA execs into the primary Pod, runs the 'patronictl list' command and
272+ // getHA execs into the primary Pod, runs the 'patronictl list' command and
273273// returns the command output and/or error
274- func showHA (
274+ func getHA (
275275 config * internal.Config ,
276276 args []string ,
277277 output string ) (string , string , error ) {
@@ -351,7 +351,7 @@ Connection URL:
351351 return err
352352 }
353353
354- secretList , err := showUsers (client , config , cluster , args )
354+ secretList , err := getUsers (client , config , cluster , args )
355355 if err != nil {
356356 return err
357357 }
@@ -373,8 +373,8 @@ Connection URL:
373373 return cmdShowUser
374374}
375375
376- // showUsers returns a string with the decoded contents of the cluster's users' Secrets.
377- func showUsers (client * v1.CoreV1Client ,
376+ // getUsers returns a string with the decoded contents of the cluster's users' Secrets.
377+ func getUsers (client * v1.CoreV1Client ,
378378 config * internal.Config ,
379379 cluster string ,
380380 args []string ,
0 commit comments