shared

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL