api_cli

package
v0.0.0-...-b9085d8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CurlTemplate = `` /* 341-byte string literal not displayed */

Variables

This section is empty.

Functions

func DoOrDie

func DoOrDie(err error)

func Run

func Run()

func RunPostTools

func RunPostTools(args *PostToolsArgs)

func RunPostToolsGetCurlCommand

func RunPostToolsGetCurlCommand(args *PostToolsGetCurlCommandArgs)

func RunScan

func RunScan(args *ScanArgs)

func RunToolsDebug

func RunToolsDebug(args *ToolsDebugArgs)

func SetUpLogger

func SetUpLogger(logLevelStr string) error

func SetupAuthCommand

func SetupAuthCommand() *cobra.Command

func SetupCosCommand

func SetupCosCommand() *cobra.Command

func SetupPostToolsCommand

func SetupPostToolsCommand() *cobra.Command

func SetupPostToolsGetCurlCommandCommand

func SetupPostToolsGetCurlCommandCommand() *cobra.Command

func SetupRootCommand

func SetupRootCommand() *cobra.Command

func SetupScanCommand

func SetupScanCommand() *cobra.Command

func SetupToolsCommand

func SetupToolsCommand() *cobra.Command

func SetupToolsDebugCommand

func SetupToolsDebugCommand() *cobra.Command

Types

type AuthArgs

type AuthArgs struct {
	PolarisURL string
	Email      string
	Password   string
	Type       string
}

type CosArgs

type CosArgs struct {
	PolarisURL string
	Email      string
	Password   string
	Type       string
}

type ExampleArgs

type ExampleArgs struct {
	PolarisURL string
	Email      string
	Password   string
}

type PostToolsArgs

type PostToolsArgs struct {
	PolarisURL string
	Email      string
	Password   string
	Certfile   string
}

type PostToolsGetCurlCommandArgs

type PostToolsGetCurlCommandArgs struct {
	PolarisURL     string
	Email          string
	Password       string
	UseAccessToken bool
	TokenName      string
}

type RootFlags

type RootFlags struct {
	LogLevel string
}

type ScanArgs

type ScanArgs struct {
	PolarisURL       string
	GithubRepo       string
	Email            string
	Password         string
	OSType           string
	UseLocalAnalysis bool
	ProjectName      string
	CLIPath          string
	JavaHome         string
}

type ToolsDebugArgs

type ToolsDebugArgs struct {
	PolarisURL string
	Email      string
	Password   string
}

Jump to

Keyboard shortcuts

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