Documentation
¶
Index ¶
Constants ¶
View Source
const ( // UsernameEnvVar is the environment variable that points to the username UsernameEnvVar = "TRINQUET_USERNAME" // ApikeyEnvVar is the environment variable that points to the APIKEY ApikeyEnvVar = "TRINQUET_APIKEY" // GrpcAddr is the environment variable that points to the gRPC server GrpcAddr = "TRINQUET_SERVER" )
Variables ¶
View Source
var ( GreenOut = color.New(color.FgGreen).SprintFunc() YellowOut = color.New(color.FgYellow).SprintFunc() RedOut = color.New(color.FgRed).SprintFunc() )
View Source
var ( Username string Password string ServerAddress string )
Functions ¶
Types ¶
type GRPCClient ¶
type GRPCClient struct { ServerAddress string Username string Password string Authentication auth.Authentication }
func NewGRPCClient ¶
func NewGRPCClient(cmd *cobra.Command) (*GRPCClient, error)
func (*GRPCClient) GetConn ¶
func (client *GRPCClient) GetConn() (*grpc.ClientConn, error)
func (*GRPCClient) GetContext ¶
func (client *GRPCClient) GetContext(cliName string) (context.Context, error)
Click to show internal directories.
Click to hide internal directories.