secrets

package
v0.0.5-dev Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyBinary

type AnyBinary struct {
	Bytes []byte
}

AnyBinary - type for binary secret

func NewBinary

func NewBinary(b []byte) *AnyBinary

NewBinary - create binary secret

func (*AnyBinary) Scope

func (s *AnyBinary) Scope() string

Scope - secret scope

func (*AnyBinary) Value

func (s *AnyBinary) Value() interface{}

Value - secret value

type AnyText

type AnyText struct {
	Text string
}

AnyText - type for binary secret

func NewText

func NewText(text string) *AnyText

NewText - create text secret

func (*AnyText) Scope

func (s *AnyText) Scope() string

Scope - secret scope

func (*AnyText) Value

func (s *AnyText) Value() interface{}

Value - secret value

type CreditCard

type CreditCard struct {
	Number string
	Holder string
	CVV    uint16
	Expire time.Time
}

CreditCard - type for credit card secret

func NewCC

func NewCC(number, holder, expire string, cvv uint16) (*CreditCard, error)

NewCC - create CC secret

func (*CreditCard) Scope

func (s *CreditCard) Scope() string

Scope - secret scope

func (*CreditCard) Value

func (s *CreditCard) Value() interface{}

Value - secret value

type OTP

type OTP struct {
	Method        string
	Issuer        string
	Secret        string
	AccountName   string
	RecoveryCodes []string
}

OTP - type for otp secret

func NewOTP

func NewOTP(method, issuer, secret, accountname string, recoverycodes ...string) *OTP

NewOTP - create otp secret

func (*OTP) Scope

func (s *OTP) Scope() string

Scope - secret scope

func (*OTP) Value

func (s *OTP) Value() interface{}

Value - secret value

type UserPass

type UserPass struct {
	Username string
	Password string
}

UserPass - type for UserPass secret

func NewUserPass

func NewUserPass(username, password string) *UserPass

NewUserPass - create USERPASS secret

func (*UserPass) Scope

func (s *UserPass) Scope() string

Scope - secret scope

func (*UserPass) Value

func (s *UserPass) Value() interface{}

Value - secret value

Jump to

Keyboard shortcuts

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