config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFilename = ".yamlcrypt.yaml"

Variables

View Source
var DefaultSuffixesConfig = SuffixesConfig{
	Encrypted: "encrypted.yaml",
	Decrypted: "decrypted.yaml",
	Plain:     "plain.yaml",
}

Functions

func FindRepoRoot

func FindRepoRoot(dir string) (string, error)

Types

type Config

type Config struct {
	Provider crypto.Provider
	Suffixes SuffixesConfig
	Root     string
}

func LoadConfig

func LoadConfig(dir string) (Config, error)

func (*Config) AllDecryptedFiles

func (c *Config) AllDecryptedFiles(dir string) ([]string, error)

func (*Config) AllEncryptedFiles

func (c *Config) AllEncryptedFiles(dir string) ([]string, error)

func (*Config) AllPlainFiles

func (c *Config) AllPlainFiles(dir string) ([]string, error)

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(node *yaml.Node) error

type SuffixesConfig

type SuffixesConfig struct {
	Encrypted string
	Decrypted string
	Plain     string
}

func (*SuffixesConfig) GitignoreSet

func (c *SuffixesConfig) GitignoreSet() map[string]bool

func (*SuffixesConfig) UnmarshalYAML

func (c *SuffixesConfig) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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