standalonednsproxy

package
v1.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

Protocol Documentation

Table of Contents

Top

standalone-dns-proxy/standalone-dns-proxy.proto

DNSPolicy

L7 DNS policy specifying which requests are permitted to which DNS server

Field Type Label Description
source_endpoint_id uint32 Endpoint ID of the workload this L7 DNS policy should apply to
dns_pattern string repeated Allowed DNS pattern this identity is allowed to resolve.
dns_servers DNSServer repeated List of DNS servers to be allowed to connect.

DNSServer

DNServer identity, port and protocol the requests be allowed to

Field Type Label Description
dns_server_identity uint32 Identity of destination DNS server
dns_server_port uint32
dns_server_proto uint32

EndpointInfo

cilium endpoint ipaddress and ID

Field Type Label Description
id uint64
ip bytes repeated

FQDNMapping

FQDN-IP mapping goalstate sent from SDP to agent

Field Type Label Description
fqdn string dns name
record_ip bytes repeated List of IPs corresponding to dns name
ttl uint32 TTL of DNS record
source_identity uint32 Identity of the client making the DNS request
source_ip bytes IP address of the client making the DNS request
response_code uint32 DNS Response code as specified in RFC2316

IdentityToEndpointMapping

Cilium Identity ID to IP address mapping

Field Type Label Description
identity uint32
endpoint_info EndpointInfo repeated

PolicyState

L7 DNS policy snapshot of all local endpoints and identity to ip mapping of source and destinatione egress endpoints enforcing fqdn rules.

Field Type Label Description
egress_l7_dns_policy DNSPolicy repeated
request_id string Random UUID based identifier which will be referenced in ACKs
identity_to_endpoint_mapping IdentityToEndpointMapping repeated Identity to Endpoint mapping for the DNS server and the source identity

PolicyStateResponse

Ack sent from SDP to Agent on processing DNS policy rules

Field Type Label Description
response ResponseCode
request_id string Request ID for which response is sent to

UpdateMappingResponse

Ack returned by cilium agent to SDP on receiving FQDN-IP mapping update

Field Type Label Description
response ResponseCode

ResponseCode

Response code returned by RPC methods.

Name Number Description
RESPONSE_CODE_UNSPECIFIED 0
RESPONSE_CODE_NO_ERROR 1
RESPONSE_CODE_FORMAT_ERROR 2
RESPONSE_CODE_SERVER_FAILURE 3
RESPONSE_CODE_NOT_IMPLEMENTED 4
RESPONSE_CODE_REFUSED 5

FQDNData

Cilium agent runs the FQDNData service and Standalone DNS proxy connects to it to get the DNS Policy rules. Standalone DNS proxy sends FQDN-IP mapping updates to Cilium Agent. CFP: https://github.com/cilium/design-cfps/pull/54

Method Name Request Type Response Type Description
StreamPolicyState PolicyStateResponse stream PolicyState stream StreamPolicyState is used by the Standalone DNS proxy to get the current policy state. Policy state includes the DNS policies and the identity to IP mapping. Cilium agent will stream DNS policies state to Standalone DNS proxy. In case of any client side error, cilium agent will cancel the stream and SDP will have to re-subscribe. In case of any server side error, cilium agent will send an error response and SDP will have to re-subscribe.
UpdateMappingRequest FQDNMapping UpdateMappingResponse UpdateMappingRequest is used by the Standalone DNS proxy to update ciliium agent with FQDN-IP mappings which in turn update L3/L4 policy maps. In case of any error, SDP will either retry the connection if the error is server side or will error out. Note: In case of concurrent updates, since this is called in a callback(notifyDNSMsg) from the DNS server it follows the same behavior as the inbuilt dns proxy in cilium.

Scalar Value Types

.proto Type Notes C++ Java Python Go C# PHP Ruby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)

Documentation

Index

Constants

View Source
const (
	FQDNData_StreamPolicyState_FullMethodName    = "/standalonednsproxy.FQDNData/StreamPolicyState"
	FQDNData_UpdateMappingRequest_FullMethodName = "/standalonednsproxy.FQDNData/UpdateMappingRequest"
)

Variables

View Source
var (
	ResponseCode_name = map[int32]string{
		0: "RESPONSE_CODE_UNSPECIFIED",
		1: "RESPONSE_CODE_NO_ERROR",
		2: "RESPONSE_CODE_FORMAT_ERROR",
		3: "RESPONSE_CODE_SERVER_FAILURE",
		4: "RESPONSE_CODE_NOT_IMPLEMENTED",
		5: "RESPONSE_CODE_REFUSED",
	}
	ResponseCode_value = map[string]int32{
		"RESPONSE_CODE_UNSPECIFIED":     0,
		"RESPONSE_CODE_NO_ERROR":        1,
		"RESPONSE_CODE_FORMAT_ERROR":    2,
		"RESPONSE_CODE_SERVER_FAILURE":  3,
		"RESPONSE_CODE_NOT_IMPLEMENTED": 4,
		"RESPONSE_CODE_REFUSED":         5,
	}
)

Enum value maps for ResponseCode.

View Source
var FQDNData_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "standalonednsproxy.FQDNData",
	HandlerType: (*FQDNDataServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateMappingRequest",
			Handler:    _FQDNData_UpdateMappingRequest_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamPolicyState",
			Handler:       _FQDNData_StreamPolicyState_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "standalone-dns-proxy/standalone-dns-proxy.proto",
}

FQDNData_ServiceDesc is the grpc.ServiceDesc for FQDNData service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_standalone_dns_proxy_standalone_dns_proxy_proto protoreflect.FileDescriptor

Functions

func RegisterFQDNDataServer

func RegisterFQDNDataServer(s grpc.ServiceRegistrar, srv FQDNDataServer)

Types

type DNSPolicy

type DNSPolicy struct {
	SourceEndpointId uint32       `protobuf:"varint,1,opt,name=source_endpoint_id,json=sourceEndpointId,proto3" json:"source_endpoint_id,omitempty"` // Endpoint ID of the workload this L7 DNS policy should apply to
	DnsPattern       []string     `protobuf:"bytes,2,rep,name=dns_pattern,json=dnsPattern,proto3" json:"dns_pattern,omitempty"`                      // Allowed DNS pattern this identity is allowed to resolve.
	DnsServers       []*DNSServer `protobuf:"bytes,3,rep,name=dns_servers,json=dnsServers,proto3" json:"dns_servers,omitempty"`                      // List of DNS servers to be allowed to connect.
	// contains filtered or unexported fields
}

L7 DNS policy specifying which requests are permitted to which DNS server

func (*DNSPolicy) Descriptor deprecated

func (*DNSPolicy) Descriptor() ([]byte, []int)

Deprecated: Use DNSPolicy.ProtoReflect.Descriptor instead.

func (*DNSPolicy) GetDnsPattern

func (x *DNSPolicy) GetDnsPattern() []string

func (*DNSPolicy) GetDnsServers

func (x *DNSPolicy) GetDnsServers() []*DNSServer

func (*DNSPolicy) GetSourceEndpointId

func (x *DNSPolicy) GetSourceEndpointId() uint32

func (*DNSPolicy) MarshalJSON

func (msg *DNSPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*DNSPolicy) ProtoMessage

func (*DNSPolicy) ProtoMessage()

func (*DNSPolicy) ProtoReflect

func (x *DNSPolicy) ProtoReflect() protoreflect.Message

func (*DNSPolicy) Reset

func (x *DNSPolicy) Reset()

func (*DNSPolicy) String

func (x *DNSPolicy) String() string

func (*DNSPolicy) UnmarshalJSON

func (msg *DNSPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type DNSServer

type DNSServer struct {
	DnsServerIdentity uint32 `protobuf:"varint,1,opt,name=dns_server_identity,json=dnsServerIdentity,proto3" json:"dns_server_identity,omitempty"` // Identity of destination DNS server
	DnsServerPort     uint32 `protobuf:"varint,2,opt,name=dns_server_port,json=dnsServerPort,proto3" json:"dns_server_port,omitempty"`
	DnsServerProto    uint32 `protobuf:"varint,3,opt,name=dns_server_proto,json=dnsServerProto,proto3" json:"dns_server_proto,omitempty"`
	// contains filtered or unexported fields
}

DNServer identity, port and protocol the requests be allowed to

func (*DNSServer) Descriptor deprecated

func (*DNSServer) Descriptor() ([]byte, []int)

Deprecated: Use DNSServer.ProtoReflect.Descriptor instead.

func (*DNSServer) GetDnsServerIdentity

func (x *DNSServer) GetDnsServerIdentity() uint32

func (*DNSServer) GetDnsServerPort

func (x *DNSServer) GetDnsServerPort() uint32

func (*DNSServer) GetDnsServerProto

func (x *DNSServer) GetDnsServerProto() uint32

func (*DNSServer) MarshalJSON

func (msg *DNSServer) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*DNSServer) ProtoMessage

func (*DNSServer) ProtoMessage()

func (*DNSServer) ProtoReflect

func (x *DNSServer) ProtoReflect() protoreflect.Message

func (*DNSServer) Reset

func (x *DNSServer) Reset()

func (*DNSServer) String

func (x *DNSServer) String() string

func (*DNSServer) UnmarshalJSON

func (msg *DNSServer) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type EndpointInfo

type EndpointInfo struct {
	Id uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Ip [][]byte `protobuf:"bytes,2,rep,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

cilium endpoint ipaddress and ID

func (*EndpointInfo) Descriptor deprecated

func (*EndpointInfo) Descriptor() ([]byte, []int)

Deprecated: Use EndpointInfo.ProtoReflect.Descriptor instead.

func (*EndpointInfo) GetId

func (x *EndpointInfo) GetId() uint64

func (*EndpointInfo) GetIp

func (x *EndpointInfo) GetIp() [][]byte

func (*EndpointInfo) MarshalJSON

func (msg *EndpointInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*EndpointInfo) ProtoMessage

func (*EndpointInfo) ProtoMessage()

func (*EndpointInfo) ProtoReflect

func (x *EndpointInfo) ProtoReflect() protoreflect.Message

func (*EndpointInfo) Reset

func (x *EndpointInfo) Reset()

func (*EndpointInfo) String

func (x *EndpointInfo) String() string

func (*EndpointInfo) UnmarshalJSON

func (msg *EndpointInfo) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type FQDNDataClient

type FQDNDataClient interface {
	// StreamPolicyState is used by the Standalone DNS proxy to get the current policy state.
	// Policy state includes the DNS policies and the identity to IP mapping.
	// Cilium agent will stream DNS policies state to Standalone DNS proxy.
	// In case of any client side error, cilium agent will cancel the stream and SDP will have to re-subscribe.
	// In case of any server side error, cilium agent will send an error response and SDP will have to re-subscribe.
	StreamPolicyState(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PolicyStateResponse, PolicyState], error)
	// UpdateMappingRequest is used by the Standalone DNS proxy to update ciliium agent with FQDN-IP mappings which in turn update L3/L4 policy maps.
	// In case of any error, SDP will either retry the connection if the error is server side or will error out.
	// Note: In case of concurrent updates, since this is called in a callback(notifyDNSMsg) from the DNS server it follows the same behavior as
	// the inbuilt dns proxy in cilium.
	UpdateMappingRequest(ctx context.Context, in *FQDNMapping, opts ...grpc.CallOption) (*UpdateMappingResponse, error)
}

FQDNDataClient is the client API for FQDNData service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Cilium agent runs the FQDNData service and Standalone DNS proxy connects to it to get the DNS Policy rules. Standalone DNS proxy sends FQDN-IP mapping updates to Cilium Agent. CFP: https://github.com/cilium/design-cfps/pull/54

func NewFQDNDataClient

func NewFQDNDataClient(cc grpc.ClientConnInterface) FQDNDataClient

type FQDNDataServer

type FQDNDataServer interface {
	// StreamPolicyState is used by the Standalone DNS proxy to get the current policy state.
	// Policy state includes the DNS policies and the identity to IP mapping.
	// Cilium agent will stream DNS policies state to Standalone DNS proxy.
	// In case of any client side error, cilium agent will cancel the stream and SDP will have to re-subscribe.
	// In case of any server side error, cilium agent will send an error response and SDP will have to re-subscribe.
	StreamPolicyState(grpc.BidiStreamingServer[PolicyStateResponse, PolicyState]) error
	// UpdateMappingRequest is used by the Standalone DNS proxy to update ciliium agent with FQDN-IP mappings which in turn update L3/L4 policy maps.
	// In case of any error, SDP will either retry the connection if the error is server side or will error out.
	// Note: In case of concurrent updates, since this is called in a callback(notifyDNSMsg) from the DNS server it follows the same behavior as
	// the inbuilt dns proxy in cilium.
	UpdateMappingRequest(context.Context, *FQDNMapping) (*UpdateMappingResponse, error)
}

FQDNDataServer is the server API for FQDNData service. All implementations should embed UnimplementedFQDNDataServer for forward compatibility.

Cilium agent runs the FQDNData service and Standalone DNS proxy connects to it to get the DNS Policy rules. Standalone DNS proxy sends FQDN-IP mapping updates to Cilium Agent. CFP: https://github.com/cilium/design-cfps/pull/54

type FQDNData_StreamPolicyStateClient

type FQDNData_StreamPolicyStateClient = grpc.BidiStreamingClient[PolicyStateResponse, PolicyState]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type FQDNData_StreamPolicyStateServer

type FQDNData_StreamPolicyStateServer = grpc.BidiStreamingServer[PolicyStateResponse, PolicyState]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type FQDNMapping

type FQDNMapping struct {
	Fqdn           string   `protobuf:"bytes,1,opt,name=fqdn,proto3" json:"fqdn,omitempty"`                                            // dns name
	RecordIp       [][]byte `protobuf:"bytes,2,rep,name=record_ip,json=recordIp,proto3" json:"record_ip,omitempty"`                    // List of IPs corresponding to dns name
	Ttl            uint32   `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`                                             // TTL of DNS record
	SourceIdentity uint32   `protobuf:"varint,4,opt,name=source_identity,json=sourceIdentity,proto3" json:"source_identity,omitempty"` // Identity of the client making the DNS request
	SourceIp       []byte   `protobuf:"bytes,5,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"`                    // IP address of the client making the DNS request
	ResponseCode   uint32   `protobuf:"varint,6,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"`       // DNS Response code as specified in RFC2316
	// contains filtered or unexported fields
}

FQDN-IP mapping goalstate sent from SDP to agent

func (*FQDNMapping) Descriptor deprecated

func (*FQDNMapping) Descriptor() ([]byte, []int)

Deprecated: Use FQDNMapping.ProtoReflect.Descriptor instead.

func (*FQDNMapping) GetFqdn

func (x *FQDNMapping) GetFqdn() string

func (*FQDNMapping) GetRecordIp

func (x *FQDNMapping) GetRecordIp() [][]byte

func (*FQDNMapping) GetResponseCode

func (x *FQDNMapping) GetResponseCode() uint32

func (*FQDNMapping) GetSourceIdentity

func (x *FQDNMapping) GetSourceIdentity() uint32

func (*FQDNMapping) GetSourceIp

func (x *FQDNMapping) GetSourceIp() []byte

func (*FQDNMapping) GetTtl

func (x *FQDNMapping) GetTtl() uint32

func (*FQDNMapping) MarshalJSON

func (msg *FQDNMapping) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*FQDNMapping) ProtoMessage

func (*FQDNMapping) ProtoMessage()

func (*FQDNMapping) ProtoReflect

func (x *FQDNMapping) ProtoReflect() protoreflect.Message

func (*FQDNMapping) Reset

func (x *FQDNMapping) Reset()

func (*FQDNMapping) String

func (x *FQDNMapping) String() string

func (*FQDNMapping) UnmarshalJSON

func (msg *FQDNMapping) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type IdentityToEndpointMapping

type IdentityToEndpointMapping struct {
	Identity     uint32          `protobuf:"varint,1,opt,name=identity,proto3" json:"identity,omitempty"`
	EndpointInfo []*EndpointInfo `protobuf:"bytes,2,rep,name=endpoint_info,json=endpointInfo,proto3" json:"endpoint_info,omitempty"`
	// contains filtered or unexported fields
}

Cilium Identity ID to IP address mapping

func (*IdentityToEndpointMapping) Descriptor deprecated

func (*IdentityToEndpointMapping) Descriptor() ([]byte, []int)

Deprecated: Use IdentityToEndpointMapping.ProtoReflect.Descriptor instead.

func (*IdentityToEndpointMapping) GetEndpointInfo

func (x *IdentityToEndpointMapping) GetEndpointInfo() []*EndpointInfo

func (*IdentityToEndpointMapping) GetIdentity

func (x *IdentityToEndpointMapping) GetIdentity() uint32

func (*IdentityToEndpointMapping) MarshalJSON

func (msg *IdentityToEndpointMapping) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*IdentityToEndpointMapping) ProtoMessage

func (*IdentityToEndpointMapping) ProtoMessage()

func (*IdentityToEndpointMapping) ProtoReflect

func (*IdentityToEndpointMapping) Reset

func (x *IdentityToEndpointMapping) Reset()

func (*IdentityToEndpointMapping) String

func (x *IdentityToEndpointMapping) String() string

func (*IdentityToEndpointMapping) UnmarshalJSON

func (msg *IdentityToEndpointMapping) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type PolicyState

type PolicyState struct {
	EgressL7DnsPolicy         []*DNSPolicy                 `protobuf:"bytes,1,rep,name=egress_l7_dns_policy,json=egressL7DnsPolicy,proto3" json:"egress_l7_dns_policy,omitempty"`
	RequestId                 string                       `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Random UUID based identifier which will be referenced in ACKs
	IdentityToEndpointMapping []*IdentityToEndpointMapping ``                                                                                         // Identity to Endpoint mapping for the DNS server and the source identity
	/* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

L7 DNS policy snapshot of all local endpoints and identity to ip mapping of source and destinatione egress endpoints enforcing fqdn rules.

func (*PolicyState) Descriptor deprecated

func (*PolicyState) Descriptor() ([]byte, []int)

Deprecated: Use PolicyState.ProtoReflect.Descriptor instead.

func (*PolicyState) GetEgressL7DnsPolicy

func (x *PolicyState) GetEgressL7DnsPolicy() []*DNSPolicy

func (*PolicyState) GetIdentityToEndpointMapping

func (x *PolicyState) GetIdentityToEndpointMapping() []*IdentityToEndpointMapping

func (*PolicyState) GetRequestId

func (x *PolicyState) GetRequestId() string

func (*PolicyState) MarshalJSON

func (msg *PolicyState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*PolicyState) ProtoMessage

func (*PolicyState) ProtoMessage()

func (*PolicyState) ProtoReflect

func (x *PolicyState) ProtoReflect() protoreflect.Message

func (*PolicyState) Reset

func (x *PolicyState) Reset()

func (*PolicyState) String

func (x *PolicyState) String() string

func (*PolicyState) UnmarshalJSON

func (msg *PolicyState) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type PolicyStateResponse

type PolicyStateResponse struct {
	Response  ResponseCode `protobuf:"varint,1,opt,name=response,proto3,enum=standalonednsproxy.ResponseCode" json:"response,omitempty"`
	RequestId string       `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Request ID for which response is sent to
	// contains filtered or unexported fields
}

Ack sent from SDP to Agent on processing DNS policy rules

func (*PolicyStateResponse) Descriptor deprecated

func (*PolicyStateResponse) Descriptor() ([]byte, []int)

Deprecated: Use PolicyStateResponse.ProtoReflect.Descriptor instead.

func (*PolicyStateResponse) GetRequestId

func (x *PolicyStateResponse) GetRequestId() string

func (*PolicyStateResponse) GetResponse

func (x *PolicyStateResponse) GetResponse() ResponseCode

func (*PolicyStateResponse) MarshalJSON

func (msg *PolicyStateResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*PolicyStateResponse) ProtoMessage

func (*PolicyStateResponse) ProtoMessage()

func (*PolicyStateResponse) ProtoReflect

func (x *PolicyStateResponse) ProtoReflect() protoreflect.Message

func (*PolicyStateResponse) Reset

func (x *PolicyStateResponse) Reset()

func (*PolicyStateResponse) String

func (x *PolicyStateResponse) String() string

func (*PolicyStateResponse) UnmarshalJSON

func (msg *PolicyStateResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ResponseCode

type ResponseCode int32

Response code returned by RPC methods.

const (
	ResponseCode_RESPONSE_CODE_UNSPECIFIED     ResponseCode = 0
	ResponseCode_RESPONSE_CODE_NO_ERROR        ResponseCode = 1
	ResponseCode_RESPONSE_CODE_FORMAT_ERROR    ResponseCode = 2
	ResponseCode_RESPONSE_CODE_SERVER_FAILURE  ResponseCode = 3
	ResponseCode_RESPONSE_CODE_NOT_IMPLEMENTED ResponseCode = 4
	ResponseCode_RESPONSE_CODE_REFUSED         ResponseCode = 5
)

func (ResponseCode) Descriptor

func (ResponseCode) Enum

func (x ResponseCode) Enum() *ResponseCode

func (ResponseCode) EnumDescriptor deprecated

func (ResponseCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResponseCode.Descriptor instead.

func (ResponseCode) Number

func (ResponseCode) String

func (x ResponseCode) String() string

func (ResponseCode) Type

type UnimplementedFQDNDataServer

type UnimplementedFQDNDataServer struct{}

UnimplementedFQDNDataServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedFQDNDataServer) StreamPolicyState

func (UnimplementedFQDNDataServer) UpdateMappingRequest

type UnsafeFQDNDataServer

type UnsafeFQDNDataServer interface {
	// contains filtered or unexported methods
}

UnsafeFQDNDataServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FQDNDataServer will result in compilation errors.

type UpdateMappingResponse

type UpdateMappingResponse struct {
	Response ResponseCode `protobuf:"varint,1,opt,name=response,proto3,enum=standalonednsproxy.ResponseCode" json:"response,omitempty"`
	// contains filtered or unexported fields
}

Ack returned by cilium agent to SDP on receiving FQDN-IP mapping update

func (*UpdateMappingResponse) Descriptor deprecated

func (*UpdateMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMappingResponse.ProtoReflect.Descriptor instead.

func (*UpdateMappingResponse) GetResponse

func (x *UpdateMappingResponse) GetResponse() ResponseCode

func (*UpdateMappingResponse) MarshalJSON

func (msg *UpdateMappingResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdateMappingResponse) ProtoMessage

func (*UpdateMappingResponse) ProtoMessage()

func (*UpdateMappingResponse) ProtoReflect

func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message

func (*UpdateMappingResponse) Reset

func (x *UpdateMappingResponse) Reset()

func (*UpdateMappingResponse) String

func (x *UpdateMappingResponse) String() string

func (*UpdateMappingResponse) UnmarshalJSON

func (msg *UpdateMappingResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL