Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(options ...ServerOption) sopskeyservice.KeyServiceServer
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (Server) Decrypt ¶
func (ks Server) Decrypt(ctx context.Context, req *sopskeyservice.DecryptRequest) (*sopskeyservice.DecryptResponse, error)
func (Server) Encrypt ¶
func (ks Server) Encrypt(ctx context.Context, req *sopskeyservice.EncryptRequest) (*sopskeyservice.EncryptResponse, error)
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 ¶
func (WithAgeIdentities) ApplyToServer ¶
func (o WithAgeIdentities) ApplyToServer(s *Server)
type WithGnuPGHome ¶
type WithGnuPGHome string
func (WithGnuPGHome) ApplyToServer ¶
func (o WithGnuPGHome) ApplyToServer(s *Server)
Click to show internal directories.
Click to hide internal directories.