// Code generated by protoc-gen-go-binary. DO NOT EDIT.
// source: proto/pbsubscribe/subscribe.proto
package pbsubscribe
import (
"github.com/golang/protobuf/proto"
)
proxycfg: server-local config entry data sources
This is the OSS portion of enterprise PR 2056.
This commit provides server-local implementations of the proxycfg.ConfigEntry
and proxycfg.ConfigEntryList interfaces, that source data from streaming events.
It makes use of the LocalMaterializer type introduced for peering replication,
adding the necessary support for authorization.
It also adds support for "wildcard" subscriptions (within a topic) to the event
publisher, as this is needed to fetch service-resolvers for all services when
configuring mesh gateways.
Currently, events will be emitted for just the ingress-gateway, service-resolver,
and mesh config entry types, as these are the only entries required by proxycfg
— the events will be emitted on topics named IngressGateway, ServiceResolver,
and MeshConfig topics respectively.
Though these events will only be consumed "locally" for now, they can also be
consumed via the gRPC endpoint (confirmed using grpcurl) so using them from
client agents should be a case of swapping the LocalMaterializer for an
RPCMaterializer.
2 years ago
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * NamedSubject ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * NamedSubject ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * SubscribeRequest ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * SubscribeRequest ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * Event ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * Event ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * EventBatch ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * EventBatch ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * ServiceHealthUpdate ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * ServiceHealthUpdate ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}
proxycfg: server-local config entry data sources
This is the OSS portion of enterprise PR 2056.
This commit provides server-local implementations of the proxycfg.ConfigEntry
and proxycfg.ConfigEntryList interfaces, that source data from streaming events.
It makes use of the LocalMaterializer type introduced for peering replication,
adding the necessary support for authorization.
It also adds support for "wildcard" subscriptions (within a topic) to the event
publisher, as this is needed to fetch service-resolvers for all services when
configuring mesh gateways.
Currently, events will be emitted for just the ingress-gateway, service-resolver,
and mesh config entry types, as these are the only entries required by proxycfg
— the events will be emitted on topics named IngressGateway, ServiceResolver,
and MeshConfig topics respectively.
Though these events will only be consumed "locally" for now, they can also be
consumed via the gRPC endpoint (confirmed using grpcurl) so using them from
client agents should be a case of swapping the LocalMaterializer for an
RPCMaterializer.
2 years ago
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * ConfigEntryUpdate ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * ConfigEntryUpdate ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}
// MarshalBinary implements encoding.BinaryMarshaler
func ( msg * ServiceListUpdate ) MarshalBinary ( ) ( [ ] byte , error ) {
return proto . Marshal ( msg )
}
// UnmarshalBinary implements encoding.BinaryUnmarshaler
func ( msg * ServiceListUpdate ) UnmarshalBinary ( b [ ] byte ) error {
return proto . Unmarshal ( b , msg )
}