agent

package
v1.0.5-test.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agent_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ambassador.agent.Agent",
	HandlerType: (*AgentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Version",
			Handler:    _Agent_Version_Handler,
		},
		{
			MethodName: "ResolveIngress",
			Handler:    _Agent_ResolveIngress_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "agent/agent.proto",
}

Agent_ServiceDesc is the grpc.ServiceDesc for Agent 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_agent_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentServer

func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)

Types

type AgentClient

type AgentClient interface {
	Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionInfo, error)
	ResolveIngress(ctx context.Context, in *IngressInfoRequest, opts ...grpc.CallOption) (*IngressInfoResponse, error)
}

AgentClient is the client API for Agent 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.

func NewAgentClient

func NewAgentClient(cc grpc.ClientConnInterface) AgentClient

type AgentServer

type AgentServer interface {
	Version(context.Context, *emptypb.Empty) (*VersionInfo, error)
	ResolveIngress(context.Context, *IngressInfoRequest) (*IngressInfoResponse, error)
	// contains filtered or unexported methods
}

AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility

type IngressInfoRequest

type IngressInfoRequest struct {
	Namespace         string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ServiceId         string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	ServiceName       string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ServicePortName   string `protobuf:"bytes,4,opt,name=service_port_name,json=servicePortName,proto3" json:"service_port_name,omitempty"`
	ServicePortProto  string `protobuf:"bytes,5,opt,name=service_port_proto,json=servicePortProto,proto3" json:"service_port_proto,omitempty"`
	ServicePortNumber int32  `protobuf:"varint,6,opt,name=service_port_number,json=servicePortNumber,proto3" json:"service_port_number,omitempty"`
	// contains filtered or unexported fields
}

IngressInfoRequest represents the intercept properties required to resolve ingress info.

func (*IngressInfoRequest) Descriptor deprecated

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

Deprecated: Use IngressInfoRequest.ProtoReflect.Descriptor instead.

func (*IngressInfoRequest) GetNamespace

func (x *IngressInfoRequest) GetNamespace() string

func (*IngressInfoRequest) GetServiceId

func (x *IngressInfoRequest) GetServiceId() string

func (*IngressInfoRequest) GetServiceName

func (x *IngressInfoRequest) GetServiceName() string

func (*IngressInfoRequest) GetServicePortName

func (x *IngressInfoRequest) GetServicePortName() string

func (*IngressInfoRequest) GetServicePortNumber

func (x *IngressInfoRequest) GetServicePortNumber() int32

func (*IngressInfoRequest) GetServicePortProto

func (x *IngressInfoRequest) GetServicePortProto() string

func (*IngressInfoRequest) ProtoMessage

func (*IngressInfoRequest) ProtoMessage()

func (*IngressInfoRequest) ProtoReflect

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

func (*IngressInfoRequest) Reset

func (x *IngressInfoRequest) Reset()

func (*IngressInfoRequest) String

func (x *IngressInfoRequest) String() string

type IngressInfoResponse

type IngressInfoResponse struct {
	L3Host  string `protobuf:"bytes,1,opt,name=l3_host,json=l3Host,proto3" json:"l3_host,omitempty"`
	L4Proto string `protobuf:"bytes,2,opt,name=l4_proto,json=l4Proto,proto3" json:"l4_proto,omitempty"`
	Port    int32  `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	UseTls  bool   `protobuf:"varint,4,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	L5Host  string `protobuf:"bytes,5,opt,name=l5_host,json=l5Host,proto3" json:"l5_host,omitempty"`
	// contains filtered or unexported fields
}

IngressInfoResponse represents the ingress properties required to configure a preview url.

func (*IngressInfoResponse) Descriptor deprecated

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

Deprecated: Use IngressInfoResponse.ProtoReflect.Descriptor instead.

func (*IngressInfoResponse) GetL3Host

func (x *IngressInfoResponse) GetL3Host() string

func (*IngressInfoResponse) GetL4Proto

func (x *IngressInfoResponse) GetL4Proto() string

func (*IngressInfoResponse) GetL5Host

func (x *IngressInfoResponse) GetL5Host() string

func (*IngressInfoResponse) GetPort

func (x *IngressInfoResponse) GetPort() int32

func (*IngressInfoResponse) GetUseTls

func (x *IngressInfoResponse) GetUseTls() bool

func (*IngressInfoResponse) ProtoMessage

func (*IngressInfoResponse) ProtoMessage()

func (*IngressInfoResponse) ProtoReflect

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

func (*IngressInfoResponse) Reset

func (x *IngressInfoResponse) Reset()

func (*IngressInfoResponse) String

func (x *IngressInfoResponse) String() string

type UnimplementedAgentServer

type UnimplementedAgentServer struct {
}

UnimplementedAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentServer) ResolveIngress

func (UnimplementedAgentServer) Version

type UnsafeAgentServer

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

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

type VersionInfo

type VersionInfo struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionInfo) Descriptor deprecated

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

Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead.

func (*VersionInfo) GetName

func (x *VersionInfo) GetName() string

func (*VersionInfo) GetVersion

func (x *VersionInfo) GetVersion() string

func (*VersionInfo) ProtoMessage

func (*VersionInfo) ProtoMessage()

func (*VersionInfo) ProtoReflect

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

func (*VersionInfo) Reset

func (x *VersionInfo) Reset()

func (*VersionInfo) String

func (x *VersionInfo) String() string

Jump to

Keyboard shortcuts

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