Documentation
¶
Index ¶
- Constants
- func CreateInstanceDirectory(instanceDir string, config string)
- func Decrypt(text, secret string) (string, error)
- func EachLimit(length, limit int, work func(int))
- func Encrypt(text, secret string) (string, error)
- func GenerateSecret() string
- func GetDefaultSecretPath() string
- func GetDefaultY2cHomeDir() string
- func GetSecret() (string, error)
- func GetSecretAndGenerateIfMissing() string
- func ResolveAbsolutePathDir(dir string) string
- func ResolveAbsolutePathFile(file string) string
- type DirectoryProperties
Constants ¶
View Source
const DEFAULT_SECRET_FILENAME = ".secret"
Variables ¶
This section is empty.
Functions ¶
func CreateInstanceDirectory ¶
func GenerateSecret ¶
func GenerateSecret() string
func GetDefaultSecretPath ¶
func GetDefaultSecretPath() string
func GetDefaultY2cHomeDir ¶
func GetDefaultY2cHomeDir() string
func GetSecretAndGenerateIfMissing ¶
func GetSecretAndGenerateIfMissing() string
func ResolveAbsolutePathDir ¶
func ResolveAbsolutePathFile ¶
Types ¶
type DirectoryProperties ¶
type DirectoryProperties struct { ConfigPath string SpaceDir string TemplatesDir string HooksDir string SpaceKey string }
func GetDirectoryProperties ¶
func GetDirectoryProperties(path string) DirectoryProperties
Click to show internal directories.
Click to hide internal directories.