commands

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScrapersCmd

type ScrapersCmd struct {
	List ScrapersListCmd        `cmd help:"Output a markdown table of all scrapers"`
	Iam  ScrapersPermissionsCmd `cmd name:"list-iam-permissions" help:"Output the IAM permissions required for scrapers to run"`
}

ScrapersCmd is a struct contianining all of the commands for working with scrapers configured in this project.

type ScrapersListCmd

type ScrapersListCmd struct{}

ScrapersListCmd outputs all the registered scrapers.

func (*ScrapersListCmd) Run

func (cmd *ScrapersListCmd) Run(globals *globals.Globals) error

type ScrapersPermissionsCmd

type ScrapersPermissionsCmd struct{}

func (*ScrapersPermissionsCmd) Run

func (cmd *ScrapersPermissionsCmd) Run(globals *globals.Globals) error

type ServeCmd

type ServeCmd struct {
	Port string `type:"string" short:"p" help:"The port to run the exporter on" default:":9100"`
}

func (*ServeCmd) Run

func (cmd *ServeCmd) Run(globals *globals.Globals) error

Jump to

Keyboard shortcuts

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