Documentation
¶
Index ¶
- Variables
- func RegisterRootManagerAPIServer(s grpc.ServiceRegistrar, srv RootManagerAPIServer)
- type GetHostsRequest
- type GetHostsResponse
- func (*GetHostsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHostsResponse) GetEntries() []*api.HostEntry
- func (*GetHostsResponse) ProtoMessage()
- func (x *GetHostsResponse) ProtoReflect() protoreflect.Message
- func (x *GetHostsResponse) Reset()
- func (x *GetHostsResponse) String() string
- type RootManagerAPIClient
- type RootManagerAPIServer
- type ShutdownRequest
- type ShutdownResponse
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetHosts() *api.HostsStatus
- func (x *StatusResponse) GetLocalDns() *api.LocalDNSStatus
- func (x *StatusResponse) GetLocalnet() *api.LocalNetStatus
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type UnimplementedRootManagerAPIServer
- func (UnimplementedRootManagerAPIServer) GetHosts(context.Context, *GetHostsRequest) (*GetHostsResponse, error)
- func (UnimplementedRootManagerAPIServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
- func (UnimplementedRootManagerAPIServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
- type UnsafeRootManagerAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_internal_locald_api_rootmanager_root_manager_api_proto protoreflect.FileDescriptor
var RootManagerAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rootmanager.RootManagerAPI", HandlerType: (*RootManagerAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _RootManagerAPI_Status_Handler, }, { MethodName: "Shutdown", Handler: _RootManagerAPI_Shutdown_Handler, }, { MethodName: "GetHosts", Handler: _RootManagerAPI_GetHosts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/locald/api/rootmanager/root_manager_api.proto", }
RootManagerAPI_ServiceDesc is the grpc.ServiceDesc for RootManagerAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRootManagerAPIServer ¶
func RegisterRootManagerAPIServer(s grpc.ServiceRegistrar, srv RootManagerAPIServer)
Types ¶
type GetHostsRequest ¶ added in v1.8.0
type GetHostsRequest struct {
// contains filtered or unexported fields
}
func (*GetHostsRequest) Descriptor
deprecated
added in
v1.8.0
func (*GetHostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHostsRequest.ProtoReflect.Descriptor instead.
func (*GetHostsRequest) ProtoMessage ¶ added in v1.8.0
func (*GetHostsRequest) ProtoMessage()
func (*GetHostsRequest) ProtoReflect ¶ added in v1.8.0
func (x *GetHostsRequest) ProtoReflect() protoreflect.Message
func (*GetHostsRequest) Reset ¶ added in v1.8.0
func (x *GetHostsRequest) Reset()
func (*GetHostsRequest) String ¶ added in v1.8.0
func (x *GetHostsRequest) String() string
type GetHostsResponse ¶ added in v1.8.0
type GetHostsResponse struct {
Entries []*api.HostEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
// contains filtered or unexported fields
}
func (*GetHostsResponse) Descriptor
deprecated
added in
v1.8.0
func (*GetHostsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHostsResponse.ProtoReflect.Descriptor instead.
func (*GetHostsResponse) GetEntries ¶ added in v1.8.0
func (x *GetHostsResponse) GetEntries() []*api.HostEntry
func (*GetHostsResponse) ProtoMessage ¶ added in v1.8.0
func (*GetHostsResponse) ProtoMessage()
func (*GetHostsResponse) ProtoReflect ¶ added in v1.8.0
func (x *GetHostsResponse) ProtoReflect() protoreflect.Message
func (*GetHostsResponse) Reset ¶ added in v1.8.0
func (x *GetHostsResponse) Reset()
func (*GetHostsResponse) String ¶ added in v1.8.0
func (x *GetHostsResponse) String() string
type RootManagerAPIClient ¶
type RootManagerAPIClient interface {
// This method returns the status of the root controller
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
// This method requests the root controller to shutdown
Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
// This method returns the resolvable cluster hosts and their assigned
// addresses, regardless of whether name resolution is served via /etc/hosts
// or the local DNS resolver.
GetHosts(ctx context.Context, in *GetHostsRequest, opts ...grpc.CallOption) (*GetHostsResponse, error)
}
RootManagerAPIClient is the client API for RootManagerAPI 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 NewRootManagerAPIClient ¶
func NewRootManagerAPIClient(cc grpc.ClientConnInterface) RootManagerAPIClient
type RootManagerAPIServer ¶
type RootManagerAPIServer interface {
// This method returns the status of the root controller
Status(context.Context, *StatusRequest) (*StatusResponse, error)
// This method requests the root controller to shutdown
Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
// This method returns the resolvable cluster hosts and their assigned
// addresses, regardless of whether name resolution is served via /etc/hosts
// or the local DNS resolver.
GetHosts(context.Context, *GetHostsRequest) (*GetHostsResponse, error)
// contains filtered or unexported methods
}
RootManagerAPIServer is the server API for RootManagerAPI service. All implementations must embed UnimplementedRootManagerAPIServer for forward compatibility
type ShutdownRequest ¶
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct {
Localnet *api.LocalNetStatus `protobuf:"bytes,1,opt,name=localnet,proto3" json:"localnet,omitempty"`
Hosts *api.HostsStatus `protobuf:"bytes,2,opt,name=hosts,proto3" json:"hosts,omitempty"`
LocalDns *api.LocalDNSStatus `protobuf:"bytes,3,opt,name=local_dns,json=localDns,proto3" json:"local_dns,omitempty"`
// contains filtered or unexported fields
}
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetHosts ¶
func (x *StatusResponse) GetHosts() *api.HostsStatus
func (*StatusResponse) GetLocalDns ¶ added in v1.8.0
func (x *StatusResponse) GetLocalDns() *api.LocalDNSStatus
func (*StatusResponse) GetLocalnet ¶
func (x *StatusResponse) GetLocalnet() *api.LocalNetStatus
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedRootManagerAPIServer ¶
type UnimplementedRootManagerAPIServer struct {
}
UnimplementedRootManagerAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedRootManagerAPIServer) GetHosts ¶ added in v1.8.0
func (UnimplementedRootManagerAPIServer) GetHosts(context.Context, *GetHostsRequest) (*GetHostsResponse, error)
func (UnimplementedRootManagerAPIServer) Shutdown ¶
func (UnimplementedRootManagerAPIServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
func (UnimplementedRootManagerAPIServer) Status ¶
func (UnimplementedRootManagerAPIServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
type UnsafeRootManagerAPIServer ¶
type UnsafeRootManagerAPIServer interface {
// contains filtered or unexported methods
}
UnsafeRootManagerAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RootManagerAPIServer will result in compilation errors.