cmd

package
v0.2.97 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Copyright (c) "2024 Verosint, Inc"

Index

Constants

View Source
const (
	BINARIES_URL = "https://gitlab.com/verosint/public/verosint/-/releases/permalink/latest/downloads/verosint_"
)

Variables

View Source
var (
	VerosintClient *client.VerosintClient
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GenerateSchema

func GenerateSchema(g *Generate) *cobra.Command

func GetLatestVersion

func GetLatestVersion() (string, error)

func NewEvaluateCommand

func NewEvaluateCommand(presistentPre func(cmd *cobra.Command, args []string) error) *cobra.Command

func NewSignalPrintCommand

func NewSignalPrintCommand(presistentPre func(cmd *cobra.Command, args []string) error) *cobra.Command

func NewUpdateCommand

func NewUpdateCommand(runner func(cmd *cobra.Command, args []string)) *cobra.Command

Types

type Generate

type Generate struct {
	// contains filtered or unexported fields
}

func (*Generate) Create

func (g *Generate) Create(name string) (*os.File, error)

type RuleFile

type RuleFile []struct {
	UUID        string        `json:"uuid"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Rules       []client.Rule `json:"rules"`
	Default     struct {
		Outcomes []string `json:"outcomes"`
	} `json:"default"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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