Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AgentControl_ServiceDesc = grpc.ServiceDesc{ ServiceName: "control.AgentControl", HandlerType: (*AgentControlServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetHealth", Handler: _AgentControl_GetHealth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/rancher/opni/pkg/apis/control/v1/remote.proto", }
AgentControl_ServiceDesc is the grpc.ServiceDesc for AgentControl service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_rancher_opni_pkg_apis_control_v1_remote_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentControlServer ¶
func RegisterAgentControlServer(s grpc.ServiceRegistrar, srv AgentControlServer)
Types ¶
type AgentControlClient ¶
type AgentControlClient interface {
GetHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v1.Health, error)
}
AgentControlClient is the client API for AgentControl 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 NewAgentControlClient ¶
func NewAgentControlClient(cc grpc.ClientConnInterface) AgentControlClient
type AgentControlServer ¶
type AgentControlServer interface { GetHealth(context.Context, *emptypb.Empty) (*v1.Health, error) // contains filtered or unexported methods }
AgentControlServer is the server API for AgentControl service. All implementations must embed UnimplementedAgentControlServer for forward compatibility
type UnimplementedAgentControlServer ¶
type UnimplementedAgentControlServer struct { }
UnimplementedAgentControlServer must be embedded to have forward compatible implementations.
type UnsafeAgentControlServer ¶
type UnsafeAgentControlServer interface {
// contains filtered or unexported methods
}
UnsafeAgentControlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentControlServer will result in compilation errors.