model

package
v0.1.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEVEL_ERROR = "error"
	LEVEL_WARN  = "warn"
	LEVEL_INFO  = "info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path string
	File os.File
}

func NewFile

func NewFile(p string) (*File, error)

func (File) Hash

func (file File) Hash() ([]byte, error)

func (File) Info

func (file File) Info() (*os.FileInfo, error)
func (file File) IsSymlink() (bool, error)

type Violation

type Violation struct {
	Severity string
	Message  string
	Filepath string
}

type ViolationStack

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

func (*ViolationStack) Add

func (s *ViolationStack) Add(violation Violation)

func (*ViolationStack) All

func (s *ViolationStack) All() []Violation

func (*ViolationStack) Count

func (s *ViolationStack) Count() int

Jump to

Keyboard shortcuts

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