config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProtect

type ConfigProtect struct {
	AnnotationDir string
	MapProtected  map[string]bool
}

func NewConfigProtect

func NewConfigProtect(annotationDir string) *ConfigProtect

func (*ConfigProtect) GetProtectFiles

func (c *ConfigProtect) GetProtectFiles(withSlash bool) []string

func (*ConfigProtect) Map

func (c *ConfigProtect) Map(files []string, protected []ConfigProtectConfFile)

func (*ConfigProtect) Protected

func (c *ConfigProtect) Protected(file string) bool

type ConfigProtectConfFile

type ConfigProtectConfFile struct {
	Filename string

	Name        string   `mapstructure:"name" yaml:"name" json:"name"`
	Directories []string `mapstructure:"dirs" yaml:"dirs" json:"dirs"`
}

func NewConfigProtectConfFile

func NewConfigProtectConfFile(filename string) *ConfigProtectConfFile

func (*ConfigProtectConfFile) String

func (c *ConfigProtectConfFile) String() string

Jump to

Keyboard shortcuts

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