mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
c2a0d4f9ca
* Override Marshal/UnmarshalJSON for proto-public types * Generate Deepcopy() for proto-public types for Kubernetes CRDs.
23 lines
676 B
Go
23 lines
676 B
Go
// Code generated by protoc-json-shim. DO NOT EDIT.
|
|
package authv2beta1
|
|
|
|
import (
|
|
protojson "google.golang.org/protobuf/encoding/protojson"
|
|
)
|
|
|
|
// MarshalJSON is a custom marshaler for WorkloadIdentity
|
|
func (this *WorkloadIdentity) MarshalJSON() ([]byte, error) {
|
|
str, err := WorkloadIdentityMarshaler.Marshal(this)
|
|
return []byte(str), err
|
|
}
|
|
|
|
// UnmarshalJSON is a custom unmarshaler for WorkloadIdentity
|
|
func (this *WorkloadIdentity) UnmarshalJSON(b []byte) error {
|
|
return WorkloadIdentityUnmarshaler.Unmarshal(b, this)
|
|
}
|
|
|
|
var (
|
|
WorkloadIdentityMarshaler = &protojson.MarshalOptions{}
|
|
WorkloadIdentityUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
|
|
)
|