templates

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheManagedNotifications

func CacheManagedNotifications()

func CacheOpsSOP

func CacheOpsSOP()

func FindReferencingV4SOPs

func FindReferencingV4SOPs() map[string][]string

func GetOpsSOPDir

func GetOpsSOPDir() string

GetOpsSOPDir returns the directory to use to find Ops SOPs and returns empty string if there was an unlikely error

func GetOsdServiceLogTemplatesDir

func GetOsdServiceLogTemplatesDir() string

GetOsdServiceLogTemplatesDir returns the directory to use to find templates for OSD and returns empty string if there was an unlikely error

func GetRelativePathForManagedNotifications

func GetRelativePathForManagedNotifications(filePath string) string

func GetServiceLogTemplatesDir

func GetServiceLogTemplatesDir() string

GetServiceLogTemplatesDir returns the directory to use to find all templates and returns empty string if there was an unlikely error

func WalkTemplates

func WalkTemplates(processTemplate func(template *Template))

Types

type Template

type Template struct {
	Severity      string   `json:"severity"`
	ServiceName   string   `json:"service_name"`
	LogType       string   `json:"log_type,omitempty"`
	Summary       string   `json:"summary"`
	Desc          string   `json:"description"`
	InternalOnly  bool     `json:"internal_only"`
	EventStreamId string   `json:"event_stream_id,omitempty"`
	DocReferences []string `json:"doc_references,omitempty"`
	Tags          []string `json:"_tags,omitempty"`
	SourcePath    string   `json:"-"`
}

func (*Template) GetVariables

func (t *Template) GetVariables() []string

func (*Template) String

func (t *Template) String() string

Jump to

Keyboard shortcuts

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