github.com/slackhq/nebula@v1.9.0/cmd/nebula-cert/passwords_test.go (about)

     1  package main
     2  
     3  type StubPasswordReader struct {
     4  	password []byte
     5  	err      error
     6  }
     7  
     8  func (pr *StubPasswordReader) ReadPassword() ([]byte, error) {
     9  	return pr.password, pr.err
    10  }