Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
1.9 KiB

// Code generated by protoc-json-shim. DO NOT EDIT.
package pbconnectca
import (
protojson "google.golang.org/protobuf/encoding/protojson"
)
// MarshalJSON is a custom marshaler for WatchRootsRequest
func (this *WatchRootsRequest) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for WatchRootsRequest
func (this *WatchRootsRequest) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for WatchRootsResponse
func (this *WatchRootsResponse) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for WatchRootsResponse
func (this *WatchRootsResponse) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for CARoot
func (this *CARoot) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for CARoot
func (this *CARoot) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for SignRequest
func (this *SignRequest) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for SignRequest
func (this *SignRequest) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(b, this)
}
// MarshalJSON is a custom marshaler for SignResponse
func (this *SignResponse) MarshalJSON() ([]byte, error) {
str, err := CaMarshaler.Marshal(this)
return []byte(str), err
}
// UnmarshalJSON is a custom unmarshaler for SignResponse
func (this *SignResponse) UnmarshalJSON(b []byte) error {
return CaUnmarshaler.Unmarshal(b, this)
}
var (
CaMarshaler = &protojson.MarshalOptions{}
CaUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)