Skip to content

Commit 510b0d2

Browse files
committed
chore: add json tags
Add JSON tags so that the fields can be un-marshelled by tools like Pulumi when creating a pulumi provider for Talos SecretsBundle, ref: https://github.com/frezbo/pulumi-provider-talos/blob/main/provider/cmd/pulumi-resource-talos/schema.json Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent 6fa2d93 commit 510b0d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x509/x509.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ type KeyPair struct {
8686
// PEMEncodedCertificateAndKey represents a PEM encoded certificate and
8787
// private key pair.
8888
type PEMEncodedCertificateAndKey struct {
89-
Crt []byte
90-
Key []byte
89+
Crt []byte `json:"Crt"`
90+
Key []byte `json:"Key"`
9191
}
9292

9393
// PEMEncodedKey represents a PEM encoded private key.
9494
type PEMEncodedKey struct {
95-
Key []byte
95+
Key []byte `json:"Key"`
9696
}
9797

9898
// Options is the functional options struct.

0 commit comments

Comments
 (0)