secret

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret []byte

func FromBytes added in v0.1.8

func FromBytes(raw string) (secret *Secret)

func FromString added in v0.1.7

func FromString(raw string) (secret *Secret)

func Parse added in v0.1.8

func Parse(raw string) (secret *Secret, err error)

func (*Secret) Bytes

func (k *Secret) Bytes() []byte

func (*Secret) Empty

func (k *Secret) Empty() bool

func (*Secret) MarshalJSON

func (k *Secret) MarshalJSON() (data []byte, err error)

func (*Secret) MarshalYAML

func (k *Secret) MarshalYAML() (data any, err error)

func (*Secret) Pem

func (k *Secret) Pem(password string) (data []byte, err error)

func (*Secret) Pointer

func (k *Secret) Pointer() *string

func (*Secret) String

func (k *Secret) String() string

func (*Secret) UnmarshalJSON

func (k *Secret) UnmarshalJSON(data []byte) (err error)

func (*Secret) UnmarshalYAML

func (k *Secret) UnmarshalYAML(data *yaml.Node) (err error)

Jump to

Keyboard shortcuts

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