Add TemplateData to SignSSHOptions.
This commit is contained in:
parent
fdd0eb6773
commit
631f1612a1
1 changed files with 8 additions and 6 deletions
|
@ -3,6 +3,7 @@ package provisioner
|
||||||
import (
|
import (
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"encoding/json"
|
||||||
"math/big"
|
"math/big"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -56,12 +57,13 @@ func (f sshModifierFunc) Modify(cert *ssh.Certificate) error {
|
||||||
|
|
||||||
// SignSSHOptions contains the options that can be passed to the SignSSH method.
|
// SignSSHOptions contains the options that can be passed to the SignSSH method.
|
||||||
type SignSSHOptions struct {
|
type SignSSHOptions struct {
|
||||||
CertType string `json:"certType"`
|
CertType string `json:"certType"`
|
||||||
KeyID string `json:"keyID"`
|
KeyID string `json:"keyID"`
|
||||||
Principals []string `json:"principals"`
|
Principals []string `json:"principals"`
|
||||||
ValidAfter TimeDuration `json:"validAfter,omitempty"`
|
ValidAfter TimeDuration `json:"validAfter,omitempty"`
|
||||||
ValidBefore TimeDuration `json:"validBefore,omitempty"`
|
ValidBefore TimeDuration `json:"validBefore,omitempty"`
|
||||||
Backdate time.Duration `json:"-"`
|
TemplateData json.RawMessage `json:"templateData"`
|
||||||
|
Backdate time.Duration `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type returns the uint32 representation of the CertType.
|
// Type returns the uint32 representation of the CertType.
|
||||||
|
|
Loading…
Reference in a new issue