decrypt

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(options ...ServerOption) sopskeyservice.KeyServiceServer

Types

type Decryptor

type Decryptor interface {
	Decrypt(input []byte, path string) ([]byte, error)
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

type ServerOption

type ServerOption interface {
	ApplyToServer(s *Server)
}

type SopsDecryptor

type SopsDecryptor struct {
	// contains filtered or unexported fields
}

func NewSopsDecryptor

func NewSopsDecryptor(keys map[string][]byte) (_ *SopsDecryptor, err error)

func (*SopsDecryptor) Cleanup

func (d *SopsDecryptor) Cleanup()

func (*SopsDecryptor) Decrypt

func (d *SopsDecryptor) Decrypt(input []byte, path string) ([]byte, error)

func (*SopsDecryptor) SopsDecryptWithFormat

func (d *SopsDecryptor) SopsDecryptWithFormat(input []byte, inputFormat sopsformats.Format, outputFormat sopsformats.Format) (_ []byte, err error)

type WithAgeIdentities

type WithAgeIdentities []age.Identity

func (WithAgeIdentities) ApplyToServer

func (o WithAgeIdentities) ApplyToServer(s *Server)

type WithGnuPGHome

type WithGnuPGHome string

func (WithGnuPGHome) ApplyToServer

func (o WithGnuPGHome) ApplyToServer(s *Server)

Jump to

Keyboard shortcuts

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