common

package
v0.0.0-...-c6a0b50 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Version = "9.9.9"
View Source

Variables

View Source
var CFTFileType = FileType{Extension: ".template", FileFormat: "template"}
View Source
var JSONFileType = FileType{Extension: ".json", FileFormat: "json"}
View Source
var TfFileType = FileType{Extension: ".tf", FileFormat: "tf"}
View Source
var YamlFileType = FileType{Extension: ".yaml", FileFormat: "yaml"}
View Source
var YmlFileType = FileType{Extension: ".yml", FileFormat: "yml"}

Functions

This section is empty.

Types

type ColorStruct

type ColorStruct struct {
	NoColor bool
	Reset   string
	Green   string
	Yellow  string
	Blue    string
	Purple  string
}

func NoColorCheck

func NoColorCheck(NoColorBool bool) *ColorStruct

type FileType

type FileType struct {
	Extension  string
	FileFormat string
}

type IParser

type IParser interface {
	Init(rootDir string, args map[string]string)
	Name() string
	ValidFile(filePath string) bool
	ParseFile(filePath string) ([]structure.IBlock, error)
	WriteFile(readFilePath string, blocks []structure.IBlock, writeFilePath string) error
	GetSkippedDirs() []string
	GetSupportedFileExtensions() []string
	Close()
}

Jump to

Keyboard shortcuts

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