Documentation
¶
Index ¶
- Variables
- func DaemonContext(cctx *cli.Context) context.Context
- func GetCandidateAPI(ctx *cli.Context) (api.Candidate, jsonrpc.ClientCloser, error)
- func GetCommonAPI(ctx *cli.Context) (api.Common, jsonrpc.ClientCloser, error)
- func GetEdgeAPI(ctx *cli.Context) (api.Edge, jsonrpc.ClientCloser, error)
- func GetLocatorAPI(ctx *cli.Context) (api.Locator, jsonrpc.ClientCloser, error)
- func GetRawAPI(ctx *cli.Context, t repo.RepoType, version string) (string, http.Header, error)
- func GetSchedulerAPI(ctx *cli.Context, nodeID string) (api.Scheduler, jsonrpc.ClientCloser, error)
- func NewWsWriterWrapper(conn wrappedWriterConnection, id byte, l sync.Locker) io.Writer
- func ReqContext(cctx *cli.Context) context.Context
- type APIInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var FlagVeryVerbose = &cli.BoolFlag{ Name: "vv", Usage: "enables very verbose mode, useful for debugging the CLI", Destination: &IsVeryVerbose, }
FlagVeryVerbose enables very verbose mode, which is useful when debugging the CLI itself. It should be included as a flag on the top-level command
View Source
var IsVeryVerbose bool
IsVeryVerbose is a global var signalling if the CLI is running in very verbose mode or not (default: false).
Functions ¶
func DaemonContext ¶
func GetCandidateAPI ¶
func GetCommonAPI ¶
func GetEdgeAPI ¶
func GetLocatorAPI ¶
func GetSchedulerAPI ¶
func NewWsWriterWrapper ¶ added in v0.1.21
func ReqContext ¶
ReqContext returns context for cli execution. Calling it for the first time installs SIGTERM handler that will close returned context. Not safe for concurrent execution.
Types ¶
type APIInfo ¶
func GetAPIInfo ¶
GetAPIInfo returns the API endpoint to use for the specified kind of repo.
The order of precedence is as follows:
- *-api-url command line flags.
- *_API_INFO environment variables
- deprecated *_API_INFO environment variables
- *-repo command line flags.
func ParseAPIInfo ¶
func (APIInfo) AuthHeader ¶
Click to show internal directories.
Click to hide internal directories.