api

package
v1.15.9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package api has message structs

Index

Constants

This section is empty.

Variables

View Source
var (
	ConsoleLevel_name = map[int32]string{
		0: "CONSOLE_LEVEL_UNSPECIFIED",
		1: "CONSOLE_LEVEL_INFO",
		2: "CONSOLE_LEVEL_WARN",
		3: "CONSOLE_LEVEL_ERROR",
	}
	ConsoleLevel_value = map[string]int32{
		"CONSOLE_LEVEL_UNSPECIFIED": 0,
		"CONSOLE_LEVEL_INFO":        1,
		"CONSOLE_LEVEL_WARN":        2,
		"CONSOLE_LEVEL_ERROR":       3,
	}
)

Enum value maps for ConsoleLevel.

Functions

func RegisterLocalizerServiceServer

func RegisterLocalizerServiceServer(s *grpc.Server, srv LocalizerServiceServer)

Types

type ConsoleLevel

type ConsoleLevel int32
const (
	ConsoleLevel_CONSOLE_LEVEL_UNSPECIFIED ConsoleLevel = 0
	ConsoleLevel_CONSOLE_LEVEL_INFO        ConsoleLevel = 1
	ConsoleLevel_CONSOLE_LEVEL_WARN        ConsoleLevel = 2
	ConsoleLevel_CONSOLE_LEVEL_ERROR       ConsoleLevel = 3
)

func (ConsoleLevel) Descriptor

func (ConsoleLevel) Enum

func (x ConsoleLevel) Enum() *ConsoleLevel

func (ConsoleLevel) EnumDescriptor deprecated

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

Deprecated: Use ConsoleLevel.Descriptor instead.

func (ConsoleLevel) Number

func (ConsoleLevel) String

func (x ConsoleLevel) String() string

func (ConsoleLevel) Type

type ConsoleResponse

type ConsoleResponse struct {

	// Output level of this console output
	Level ConsoleLevel `protobuf:"varint,1,opt,name=level,proto3,enum=api.v1.ConsoleLevel" json:"level,omitempty"`
	// Message of this console output
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

This will be turned into ConsoleResponse to be generic probably some time later in the future.

func (*ConsoleResponse) Descriptor deprecated

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

Deprecated: Use ConsoleResponse.ProtoReflect.Descriptor instead.

func (*ConsoleResponse) GetLevel

func (x *ConsoleResponse) GetLevel() ConsoleLevel

func (*ConsoleResponse) GetMessage

func (x *ConsoleResponse) GetMessage() string

func (*ConsoleResponse) ProtoMessage

func (*ConsoleResponse) ProtoMessage()

func (*ConsoleResponse) ProtoReflect

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

func (*ConsoleResponse) Reset

func (x *ConsoleResponse) Reset()

func (*ConsoleResponse) String

func (x *ConsoleResponse) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ExposeServiceRequest

type ExposeServiceRequest struct {
	Namespace string   `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Service   string   `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	PortMap   []string `protobuf:"bytes,3,rep,name=port_map,json=portMap,proto3" json:"port_map,omitempty"`
	// contains filtered or unexported fields
}

func (*ExposeServiceRequest) Descriptor deprecated

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

Deprecated: Use ExposeServiceRequest.ProtoReflect.Descriptor instead.

func (*ExposeServiceRequest) GetNamespace

func (x *ExposeServiceRequest) GetNamespace() string

func (*ExposeServiceRequest) GetPortMap

func (x *ExposeServiceRequest) GetPortMap() []string

func (*ExposeServiceRequest) GetService

func (x *ExposeServiceRequest) GetService() string

func (*ExposeServiceRequest) ProtoMessage

func (*ExposeServiceRequest) ProtoMessage()

func (*ExposeServiceRequest) ProtoReflect

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

func (*ExposeServiceRequest) Reset

func (x *ExposeServiceRequest) Reset()

func (*ExposeServiceRequest) String

func (x *ExposeServiceRequest) String() string

type ListRequest

type ListRequest struct {
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Services []*ListService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetServices

func (x *ListResponse) GetServices() []*ListService

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type ListService

type ListService struct {
	Namespace    string   `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name         string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Status       string   `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	Endpoint     string   `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	StatusReason string   `protobuf:"bytes,5,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"`
	Ip           string   `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`
	Ports        []string `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*ListService) Descriptor deprecated

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

Deprecated: Use ListService.ProtoReflect.Descriptor instead.

func (*ListService) GetEndpoint

func (x *ListService) GetEndpoint() string

func (*ListService) GetIp

func (x *ListService) GetIp() string

func (*ListService) GetName

func (x *ListService) GetName() string

func (*ListService) GetNamespace

func (x *ListService) GetNamespace() string

func (*ListService) GetPorts

func (x *ListService) GetPorts() []string

func (*ListService) GetStatus

func (x *ListService) GetStatus() string

func (*ListService) GetStatusReason

func (x *ListService) GetStatusReason() string

func (*ListService) ProtoMessage

func (*ListService) ProtoMessage()

func (*ListService) ProtoReflect

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

func (*ListService) Reset

func (x *ListService) Reset()

func (*ListService) String

func (x *ListService) String() string

type LocalizerServiceClient

type LocalizerServiceClient interface {
	ExposeService(ctx context.Context, in *ExposeServiceRequest, opts ...grpc.CallOption) (LocalizerService_ExposeServiceClient, error)
	StopExpose(ctx context.Context, in *StopExposeRequest, opts ...grpc.CallOption) (LocalizerService_StopExposeClient, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	Kill(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	Stable(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StableResponse, error)
}

LocalizerServiceClient is the client API for LocalizerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type LocalizerServiceServer

LocalizerServiceServer is the server API for LocalizerService service.

type LocalizerService_ExposeServiceClient

type LocalizerService_ExposeServiceClient interface {
	Recv() (*ConsoleResponse, error)
	grpc.ClientStream
}

type LocalizerService_ExposeServiceServer

type LocalizerService_ExposeServiceServer interface {
	Send(*ConsoleResponse) error
	grpc.ServerStream
}

type LocalizerService_StopExposeClient

type LocalizerService_StopExposeClient interface {
	Recv() (*ConsoleResponse, error)
	grpc.ClientStream
}

type LocalizerService_StopExposeServer

type LocalizerService_StopExposeServer interface {
	Send(*ConsoleResponse) error
	grpc.ServerStream
}

type PingRequest

type PingRequest struct {
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

type PingResponse struct {
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type StableResponse

type StableResponse struct {
	Stable bool `protobuf:"varint,1,opt,name=stable,proto3" json:"stable,omitempty"`
	// contains filtered or unexported fields
}

func (*StableResponse) Descriptor deprecated

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

Deprecated: Use StableResponse.ProtoReflect.Descriptor instead.

func (*StableResponse) GetStable

func (x *StableResponse) GetStable() bool

func (*StableResponse) ProtoMessage

func (*StableResponse) ProtoMessage()

func (*StableResponse) ProtoReflect

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

func (*StableResponse) Reset

func (x *StableResponse) Reset()

func (*StableResponse) String

func (x *StableResponse) String() string

type StopExposeRequest

type StopExposeRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Service   string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*StopExposeRequest) Descriptor deprecated

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

Deprecated: Use StopExposeRequest.ProtoReflect.Descriptor instead.

func (*StopExposeRequest) GetNamespace

func (x *StopExposeRequest) GetNamespace() string

func (*StopExposeRequest) GetService

func (x *StopExposeRequest) GetService() string

func (*StopExposeRequest) ProtoMessage

func (*StopExposeRequest) ProtoMessage()

func (*StopExposeRequest) ProtoReflect

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

func (*StopExposeRequest) Reset

func (x *StopExposeRequest) Reset()

func (*StopExposeRequest) String

func (x *StopExposeRequest) String() string

type UnimplementedLocalizerServiceServer

type UnimplementedLocalizerServiceServer struct {
}

UnimplementedLocalizerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLocalizerServiceServer) ExposeService

func (*UnimplementedLocalizerServiceServer) Kill

func (*UnimplementedLocalizerServiceServer) List

func (*UnimplementedLocalizerServiceServer) Ping

func (*UnimplementedLocalizerServiceServer) Stable

func (*UnimplementedLocalizerServiceServer) StopExpose

Jump to

Keyboard shortcuts

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