Skip to content

Commit

Permalink
Refactor the cluster listener (#6232)
Browse files Browse the repository at this point in the history
* Port over OSS cluster port refactor components

* Start forwarding

* Cleanup a bit

* Fix copy error

* Return error from perf standby creation

* Add some more comments

* Fix copy/paste error
  • Loading branch information
briankassouf authored Feb 15, 2019
1 parent e39a5f2 commit 9fc2d79
Show file tree
Hide file tree
Showing 12 changed files with 619 additions and 532 deletions.
9 changes: 9 additions & 0 deletions helper/certutil/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"math/big"
"strings"

"github.com/hashicorp/errwrap"
"github.com/hashicorp/vault/helper/errutil"
)

// This can be one of a few key types so the different params may or may not be filled
type ClusterKeyParams struct {
Type string `json:"type" structs:"type" mapstructure:"type"`
X *big.Int `json:"x" structs:"x" mapstructure:"x"`
Y *big.Int `json:"y" structs:"y" mapstructure:"y"`
D *big.Int `json:"d" structs:"d" mapstructure:"d"`
}

// Secret is used to attempt to unmarshal a Vault secret
// JSON response, as a convenience
type Secret struct {
Expand Down
Loading

0 comments on commit 9fc2d79

Please sign in to comment.