Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProtect ¶
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
Click to show internal directories.
Click to hide internal directories.