runner

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpdateCallback added in v0.5.1

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates chaos

func RunEnumeration

func RunEnumeration(opts *Options)

RunEnumeration runs the enumeration for Chaos client

Types

type DNSRecordType added in v0.1.5

type DNSRecordType int
const (
	A DNSRecordType = iota
	AAAA
	CNAME
	NS
	ANYRECORDTYPE
)

type DNSStatusCode added in v0.1.5

type DNSStatusCode int
const (
	NOERROR DNSStatusCode = iota
	NXDOMAIN
	SERVFAIL
	REFUSED
	ANYDNSCODE
)

type Filter added in v0.1.5

type Filter struct {
	DNSStatusCode       DNSStatusCode
	DNSRecordType       DNSRecordType
	FilterWildcard      bool
	Response            bool
	ResponseOnly        bool
	HTTPUrl             bool
	HTTPTitle           bool
	HTTPStatusCode      bool
	HTTPStatusCodeValue int
	HTTPContentLength   bool
}

type Options

type Options struct {
	APIKey               string
	Domain               string
	Count                bool
	Silent               bool
	Output               string
	DomainsFile          string
	JSONOutput           bool
	DNSStatusCode        string
	DNSRecordType        string
	FilterWildcard       bool
	Response             bool
	ResponseOnly         bool
	HTTPUrl              bool
	HTTPTitle            bool
	HTTPStatusCode       bool
	HTTPStatusCodeFilter int
	HTTPContentLength    bool
	BBQ                  bool
	Version              bool

	Verbose            bool
	DisableUpdateCheck bool
	OnResult           func(result interface{})
	// contains filtered or unexported fields
}

Options contains configuration options for chaos client.

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options for application

Jump to

Keyboard shortcuts

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