cli

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 13 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 AbortScansCommand

type AbortScansCommand struct {
	ID          string
	PrettyPrint bool
}

AbortScansCommand is the command line data structure for the abort action of Scans

func (*AbortScansCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*AbortScansCommand) Run

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

Run makes the HTTP request corresponding to the AbortScansCommand command.

type ChecksScansCommand

type ChecksScansCommand struct {
	ID          string
	PrettyPrint bool
}

ChecksScansCommand is the command line data structure for the checks action of Scans

func (*ChecksScansCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ChecksScansCommand) Run

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

Run makes the HTTP request corresponding to the ChecksScansCommand command.

type CreateScansCommand

type CreateScansCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateScansCommand is the command line data structure for the create action of Scans

func (*CreateScansCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*CreateScansCommand) Run

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

Run makes the HTTP request corresponding to the CreateScansCommand command.

type DownloadCommand

type DownloadCommand struct {
	// OutFile is the path to the download output file.
	OutFile string
}

DownloadCommand is the command line data structure for the download command.

func (*DownloadCommand) Run

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

Run downloads files with given paths.

type IndexAssettypesCommand

type IndexAssettypesCommand struct {
	PrettyPrint bool
}

IndexAssettypesCommand is the command line data structure for the index action of Assettypes

func (*IndexAssettypesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*IndexAssettypesCommand) Run

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

Run makes the HTTP request corresponding to the IndexAssettypesCommand command.

type IndexChecktypesCommand

type IndexChecktypesCommand struct {
	Enabled     string
	Name        string
	PrettyPrint bool
}

IndexChecktypesCommand is the command line data structure for the index action of Checktypes

func (*IndexChecktypesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*IndexChecktypesCommand) Run

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

Run makes the HTTP request corresponding to the IndexChecktypesCommand command.

type IndexScansCommand

type IndexScansCommand struct {
	ExternalID  string
	Limit       int
	Offset      int
	PrettyPrint bool
}

IndexScansCommand is the command line data structure for the index action of Scans

func (*IndexScansCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*IndexScansCommand) Run

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

Run makes the HTTP request corresponding to the IndexScansCommand command.

type ShowChecksCommand

type ShowChecksCommand struct {
	ID          string
	PrettyPrint bool
}

ShowChecksCommand is the command line data structure for the show action of Checks

func (*ShowChecksCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowChecksCommand) Run

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

Run makes the HTTP request corresponding to the ShowChecksCommand command.

type ShowChecktypesCommand

type ShowChecktypesCommand struct {
	ID          string
	PrettyPrint bool
}

ShowChecktypesCommand is the command line data structure for the show action of Checktypes

func (*ShowChecktypesCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowChecktypesCommand) Run

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

Run makes the HTTP request corresponding to the ShowChecktypesCommand 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.

type ShowScansCommand

type ShowScansCommand struct {
	ID          string
	PrettyPrint bool
}

ShowScansCommand is the command line data structure for the show action of Scans

func (*ShowScansCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*ShowScansCommand) Run

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

Run makes the HTTP request corresponding to the ShowScansCommand command.

type StatsScansCommand

type StatsScansCommand struct {
	ID          string
	PrettyPrint bool
}

StatsScansCommand is the command line data structure for the stats action of Scans

func (*StatsScansCommand) RegisterFlags

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

RegisterFlags registers the command flags with the command line.

func (*StatsScansCommand) Run

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

Run makes the HTTP request corresponding to the StatsScansCommand command.

Jump to

Keyboard shortcuts

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