commands

package
v0.0.0-...-7f4ff7b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCmd

func NewGetCmd() *cobra.Command

func NewGetStatusCmd

func NewGetStatusCmd() *cobra.Command

func NewGetTasksCmd

func NewGetTasksCmd() *cobra.Command

func RunServer

func RunServer(port int, fileName string) error

RunServer runs the server on the given port

Types

type GRPCClientFlags

type GRPCClientFlags struct {
	UseTLS          bool
	RootCA          string
	SkipVerify      bool
	ServerName      string
	Endpoint        string
	Token           string
	Issuer          string
	OAuthClientFile string
	UseOidc         bool
}

func (*GRPCClientFlags) AddFlags

func (f *GRPCClientFlags) AddFlags(cmd *cobra.Command)

func (*GRPCClientFlags) NewConn

func (f *GRPCClientFlags) NewConn() (*grpc.ClientConn, error)

NewConn creates a new connection with the given flogs

func (*GRPCClientFlags) NewOIDCTokenSource

func (f *GRPCClientFlags) NewOIDCTokenSource() (*oauth.TokenSource, error)

NewOIDCTokenSource returns a gRPC TokenSource that uses a JWT as the token. A gRPC TokenSource wraps an oauth2 token source but implements grpc's credentials.PerRPCCredentials interface which allows to inject credentials on each call.

Jump to

Keyboard shortcuts

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