cli

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

Types

type GetLogResultsCommand

type GetLogResultsCommand struct {
	// Check ID
	Check string
	// Report date
	Date string
	// Scan ID
	Scan        string
	PrettyPrint bool
}

GetLogResultsCommand is the command line data structure for the getLog action of Results

func (*GetLogResultsCommand) RegisterFlags

func (cmd *GetLogResultsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*GetLogResultsCommand) Run

func (cmd *GetLogResultsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the GetLogResultsCommand command.

type GetReportResultsCommand

type GetReportResultsCommand struct {
	// Check ID
	Check string
	// Report date
	Date string
	// Scan ID
	Scan        string
	PrettyPrint bool
}

GetReportResultsCommand is the command line data structure for the getReport action of Results

func (*GetReportResultsCommand) RegisterFlags

func (cmd *GetReportResultsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*GetReportResultsCommand) Run

func (cmd *GetReportResultsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the GetReportResultsCommand command.

type RawResultsCommand

type RawResultsCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

RawResultsCommand is the command line data structure for the raw action of Results

func (*RawResultsCommand) RegisterFlags

func (cmd *RawResultsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*RawResultsCommand) Run

func (cmd *RawResultsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the RawResultsCommand command.

type ReportResultsCommand

type ReportResultsCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

ReportResultsCommand is the command line data structure for the report action of Results

func (*ReportResultsCommand) RegisterFlags

func (cmd *ReportResultsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ReportResultsCommand) Run

func (cmd *ReportResultsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ReportResultsCommand command.

type ShowHealthcheckCommand

type ShowHealthcheckCommand struct {
	PrettyPrint bool
}

ShowHealthcheckCommand is the command line data structure for the show action of healthcheck

func (*ShowHealthcheckCommand) RegisterFlags

func (cmd *ShowHealthcheckCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowHealthcheckCommand) Run

func (cmd *ShowHealthcheckCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowHealthcheckCommand command.

Jump to

Keyboard shortcuts

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