cli

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 49 Imported by: 1

Documentation

Index

Constants

View Source
const ExitCodeCommandFailure = 123

ExitCodeCommandFailure indicates that a given command failed due to internal errors or invalid input parameters.

Variables

This section is empty.

Functions

func GenInvID

func GenInvID(ctx context.Context) (string, error)

GenInvID generates an invocation ID, made of the username, the current timestamp in a human-friendly format, and a random suffix.

This can be used to generate a random invocation ID, but the creator and creation time can be easily found.

func Main

func Main(p Params, args []string) int

Main is the main function of the rdb application.

func MustReturnInvURL

func MustReturnInvURL(rdbHost, invName string) string

MustReturnInvURL returns a string of the Invocation URL.

Types

type Params

type Params struct {
	DefaultResultDBHost string
	Auth                auth.Options
}

Params is the parameters for the ResultDB CLI client.

Jump to

Keyboard shortcuts

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