Documentation ¶
Overview ¶
Package shared contains shared constants for the client and all its subcommands.
Index ¶
Constants ¶
View Source
const ( // ClientKey is where we'll put the run-dsp client in viper. ClientKey = "runDSPClient" // gRPC client config keys. Address = "client.address" InsecureConn = "client.insecure" CACert = "client.caCert" ClientCert = "client.clientCert" ClientCertKey = "client.clientCertKey" AuthMD = "client.authMD" // Some global vars. NoColor = "noColor" )
Variables ¶
This section is empty.
Functions ¶
func GetRUNDSPClient ¶
func GetRUNDSPClient() (dspv1alpha1.ClientServiceClient, *grpc.ClientConn, error)
GetRUNDSPClient returns a configured RUNDSP client and its connection.
func PrintCatalogue ¶
func PrintCatalogue(catalogue []*dspv1alpha1.Dataset, printJSON bool) error
PrintCatalogue prints out a catalogue, either as a table or as JSON.
func PrintDataset ¶
func PrintDataset(ds *dspv1alpha1.Dataset, printJSON bool) error
PrintDataset prints out a dataset, either as a table or as JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.