Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionsFunc ¶
type OptionsFunc func(*ReadPasswordResolve)
OptionsFunc is a function used to configure ReadPasswordResolve
func WithReader ¶
func WithReader(reader ...PasswordReader) OptionsFunc
WithReader allow you to set a list of readers that you can use to resolve a password
type PasswordReader ¶
PasswordReader defines the implementation of a password reader
type ReadPasswordResolve ¶
type ReadPasswordResolve struct {
// contains filtered or unexported fields
}
ReadPasswordResolve contains multiple methods that can resolve a password
func NewReadPasswordResolve ¶
func NewReadPasswordResolve(options ...OptionsFunc) *ReadPasswordResolve
NewReadPasswordResolve return a ReadPasswordResolve
func (*ReadPasswordResolve) Options ¶
func (s *ReadPasswordResolve) Options(opts ...OptionsFunc)
Options configure the ReadPasswordResolve
func (*ReadPasswordResolve) Read ¶
func (s *ReadPasswordResolve) Read() (string, error)
Read looks for the first reader defined into the reader attribute which returns a password
Click to show internal directories.
Click to hide internal directories.