utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountSum

func CountSum(arr []int) int

func CurrentDir

func CurrentDir() string

func GetAlerts

func GetAlerts(data map[string]interface{}, filters types.AlertFilters) [][]string

func GetAlertsCount

func GetAlertsCount(data map[string]interface{}) types.AlertsCount

func GetContexts

func GetContexts(config []byte) types.Contexts

func HealthCheck

func HealthCheck(url string)

func PrintAlerts

func PrintAlerts(data [][]string)

func PrintContexts

func PrintContexts(config []byte) []map[string][]string

func SetExitCode

func SetExitCode(riskcount types.RiskCount, gate string)

func SummaryOutput

func SummaryOutput(data [][]string)

Types

type Cursor

type Cursor struct{}

Cursor structure that implements some methods for manipulating command line's cursor

func (*Cursor) ClearLine

func (cursor *Cursor) ClearLine()

func (*Cursor) Hide

func (cursor *Cursor) Hide()

func (*Cursor) MoveDown

func (cursor *Cursor) MoveDown(rows int)

func (*Cursor) MoveUp

func (cursor *Cursor) MoveUp(rows int)

func (*Cursor) Show

func (cursor *Cursor) Show()

Jump to

Keyboard shortcuts

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