incident_response

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "incident-response",
	Short:   "Create basic gitignore",
	Aliases: []string{"ir"},
	Args:    cobra.NoArgs,
	Run: func(c *cobra.Command, args []string) {
		if FlagDate == "today" {
			FlagDate = time.Now().Format("2006-01-02")
		}
		CreateIncidentResponseFile(
			FlagPathPrefix,
			FlagDate,
			FlagTitle,
			FlagAuthor,
			FlagLevel,
		)
	},
}
View Source
var FlagAuthor string
View Source
var FlagDate string
View Source
var FlagLevel string
View Source
var FlagPathPrefix string
View Source
var FlagTitle string
View Source
var IncidentResponseFileTemplate = `` /* 183-byte string literal not displayed */
View Source
var IndexFileTemplate = `` /* 223-byte string literal not displayed */

Functions

func AppendToIndex

func AppendToIndex(prefix string, tv TemplateVariables)

func CreateIncidentResponseFile

func CreateIncidentResponseFile(
	prefix string,
	date string,
	title string,
	author string,
	level string,
)

func CreateIndexFile

func CreateIndexFile(prefix string)

Types

type Index

type Index struct {
	Version   int
	Incidents []TemplateVariables
}

type TemplateVariables

type TemplateVariables struct {
	Title  string
	Date   string
	Author string
	Level  string
}

Jump to

Keyboard shortcuts

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