actions

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(files []*File, plain bool, stdout bool, cache cache.Cache, provider *crypto.Provider, threads int, retries uint, timeout time.Duration, progress bool) error

func DecryptCiphertext added in v1.3.0

func DecryptCiphertext(ciphertext []byte, cache cache.Cache, provider *crypto.Provider, retries uint, timeout time.Duration) (string, error)

func Encrypt

func Encrypt(files []*File, cache cache.Cache, provider *crypto.Provider, threads int, retries uint, timeout time.Duration, progress bool) error

func EncryptPlaintext added in v1.3.0

func EncryptPlaintext(plaintext string, cache cache.Cache, provider *crypto.Provider, retries uint, timeout time.Duration) ([]byte, error)

func UpdateGitignore

func UpdateGitignore(c *config.Config) error

Types

type File

type File struct {
	EncryptedPath string
	DecryptedPath string
	PlainPath     string
}

func NewFile

func NewFile(path string, config *config.Config) (File, error)

Jump to

Keyboard shortcuts

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