age

package
v0.0.0-...-3525705 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoIdentityMatchError

func IsNoIdentityMatchError(err error) bool

Types

type Identity

type Identity struct {
	age.Recipient
	// contains filtered or unexported fields
}

func (*Identity) GenerateIfNecessary

func (identity *Identity) GenerateIfNecessary() (err error)

func (*Identity) IsDisabled

func (identity *Identity) IsDisabled() bool

func (*Identity) IsEmpty

func (identity *Identity) IsEmpty() bool

func (*Identity) MarshalText

func (identity *Identity) MarshalText() (b []byte, err error)

func (*Identity) Set

func (identity *Identity) Set(path_or_identity string) (err error)

func (*Identity) SetFromPath

func (identity *Identity) SetFromPath(path string) (err error)

func (*Identity) SetFromX25519Identity

func (identity *Identity) SetFromX25519Identity(
	identityString string,
) (err error)

func (*Identity) SetX25519Identity

func (identity *Identity) SetX25519Identity(x *age.X25519Identity)

func (*Identity) String

func (identity *Identity) String() string

func (*Identity) UnmarshalText

func (identity *Identity) UnmarshalText(b []byte) (err error)

func (Identity) Unwrap

func (identity Identity) Unwrap(
	stanzas []*age.Stanza,
) (fileKey []byte, err error)

func (*Identity) WrapReader

func (identity *Identity) WrapReader(
	src io.Reader,
) (out io.ReadCloser, err error)

func (*Identity) WrapWriter

func (identity *Identity) WrapWriter(
	dst io.Writer,
) (out io.WriteCloser, err error)

type NoIdentityMatchError

type NoIdentityMatchError = age.NoIdentityMatchError

type Recipient

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

type Recipients

type Recipients []age.Recipient

Source Files

  • errors.go
  • identity.go
  • recipient.go
  • recipients.go
  • write_closer.go

Jump to

Keyboard shortcuts

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