Documentation ¶
Index ¶
- Constants
- func NewUmgmtServiceHandler(svc UmgmtServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type UmgmtServiceClient
- type UmgmtServiceHandler
- type UnimplementedUmgmtServiceHandler
- func (UnimplementedUmgmtServiceHandler) ChangeSystemState(context.Context, *connect.Request[v1alpha1.ChangeSystemStateRequest]) (*connect.Response[v1alpha1.ChangeSystemStateResponse], error)
- func (UnimplementedUmgmtServiceHandler) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error)
- func (UnimplementedUmgmtServiceHandler) GetChassisInfo(context.Context, *connect.Request[v1alpha1.GetChassisInfoRequest]) (*connect.Response[v1alpha1.GetChassisInfoResponse], error)
- func (UnimplementedUmgmtServiceHandler) GetUserInfo(context.Context, *connect.Request[v1alpha1.GetUserInfoRequest]) (*connect.Response[v1alpha1.GetUserInfoResponse], error)
- func (UnimplementedUmgmtServiceHandler) ListInventory(context.Context, *connect.Request[v1alpha1.ListInventoryRequest]) (*connect.Response[v1alpha1.ListInventoryResponse], error)
- func (UnimplementedUmgmtServiceHandler) ListUsers(context.Context, *connect.Request[v1alpha1.ListUsersRequest]) (*connect.Response[v1alpha1.ListUsersResponse], error)
- func (UnimplementedUmgmtServiceHandler) StreamConsole(context.Context, ...) error
- func (UnimplementedUmgmtServiceHandler) UpdateUser(context.Context, *connect.Request[v1alpha1.UpdateUserRequest]) (*connect.Response[v1alpha1.UpdateUserResponse], error)
Constants ¶
const ( // UmgmtServiceListUsersProcedure is the fully-qualified name of the UmgmtService's ListUsers RPC. UmgmtServiceListUsersProcedure = "/umgmt.v1alpha1.UmgmtService/ListUsers" // UmgmtServiceGetUserInfoProcedure is the fully-qualified name of the UmgmtService's GetUserInfo // RPC. UmgmtServiceGetUserInfoProcedure = "/umgmt.v1alpha1.UmgmtService/GetUserInfo" // UmgmtServiceUpdateUserProcedure is the fully-qualified name of the UmgmtService's UpdateUser RPC. UmgmtServiceUpdateUserProcedure = "/umgmt.v1alpha1.UmgmtService/UpdateUser" // UmgmtServiceDeleteUserProcedure is the fully-qualified name of the UmgmtService's DeleteUser RPC. UmgmtServiceDeleteUserProcedure = "/umgmt.v1alpha1.UmgmtService/DeleteUser" // UmgmtServiceListInventoryProcedure is the fully-qualified name of the UmgmtService's // ListInventory RPC. UmgmtServiceListInventoryProcedure = "/umgmt.v1alpha1.UmgmtService/ListInventory" // UmgmtServiceGetChassisInfoProcedure is the fully-qualified name of the UmgmtService's // GetChassisInfo RPC. UmgmtServiceGetChassisInfoProcedure = "/umgmt.v1alpha1.UmgmtService/GetChassisInfo" // UmgmtServiceChangeSystemStateProcedure is the fully-qualified name of the UmgmtService's // ChangeSystemState RPC. UmgmtServiceChangeSystemStateProcedure = "/umgmt.v1alpha1.UmgmtService/ChangeSystemState" // UmgmtServiceStreamConsoleProcedure is the fully-qualified name of the UmgmtService's // StreamConsole RPC. UmgmtServiceStreamConsoleProcedure = "/umgmt.v1alpha1.UmgmtService/StreamConsole" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// UmgmtServiceName is the fully-qualified name of the UmgmtService service.
UmgmtServiceName = "umgmt.v1alpha1.UmgmtService"
)
Variables ¶
This section is empty.
Functions ¶
func NewUmgmtServiceHandler ¶
func NewUmgmtServiceHandler(svc UmgmtServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewUmgmtServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type UmgmtServiceClient ¶
type UmgmtServiceClient interface { ListUsers(context.Context, *connect.Request[v1alpha1.ListUsersRequest]) (*connect.Response[v1alpha1.ListUsersResponse], error) GetUserInfo(context.Context, *connect.Request[v1alpha1.GetUserInfoRequest]) (*connect.Response[v1alpha1.GetUserInfoResponse], error) UpdateUser(context.Context, *connect.Request[v1alpha1.UpdateUserRequest]) (*connect.Response[v1alpha1.UpdateUserResponse], error) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error) ListInventory(context.Context, *connect.Request[v1alpha1.ListInventoryRequest]) (*connect.Response[v1alpha1.ListInventoryResponse], error) GetChassisInfo(context.Context, *connect.Request[v1alpha1.GetChassisInfoRequest]) (*connect.Response[v1alpha1.GetChassisInfoResponse], error) ChangeSystemState(context.Context, *connect.Request[v1alpha1.ChangeSystemStateRequest]) (*connect.Response[v1alpha1.ChangeSystemStateResponse], error) StreamConsole(context.Context) *connect.BidiStreamForClient[v1alpha1.StreamConsoleRequest, v1alpha1.StreamConsoleResponse] }
UmgmtServiceClient is a client for the umgmt.v1alpha1.UmgmtService service.
func NewUmgmtServiceClient ¶
func NewUmgmtServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UmgmtServiceClient
NewUmgmtServiceClient constructs a client for the umgmt.v1alpha1.UmgmtService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type UmgmtServiceHandler ¶
type UmgmtServiceHandler interface { ListUsers(context.Context, *connect.Request[v1alpha1.ListUsersRequest]) (*connect.Response[v1alpha1.ListUsersResponse], error) GetUserInfo(context.Context, *connect.Request[v1alpha1.GetUserInfoRequest]) (*connect.Response[v1alpha1.GetUserInfoResponse], error) UpdateUser(context.Context, *connect.Request[v1alpha1.UpdateUserRequest]) (*connect.Response[v1alpha1.UpdateUserResponse], error) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error) ListInventory(context.Context, *connect.Request[v1alpha1.ListInventoryRequest]) (*connect.Response[v1alpha1.ListInventoryResponse], error) GetChassisInfo(context.Context, *connect.Request[v1alpha1.GetChassisInfoRequest]) (*connect.Response[v1alpha1.GetChassisInfoResponse], error) ChangeSystemState(context.Context, *connect.Request[v1alpha1.ChangeSystemStateRequest]) (*connect.Response[v1alpha1.ChangeSystemStateResponse], error) StreamConsole(context.Context, *connect.BidiStream[v1alpha1.StreamConsoleRequest, v1alpha1.StreamConsoleResponse]) error }
UmgmtServiceHandler is an implementation of the umgmt.v1alpha1.UmgmtService service.
type UnimplementedUmgmtServiceHandler ¶
type UnimplementedUmgmtServiceHandler struct{}
UnimplementedUmgmtServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedUmgmtServiceHandler) ChangeSystemState ¶
func (UnimplementedUmgmtServiceHandler) ChangeSystemState(context.Context, *connect.Request[v1alpha1.ChangeSystemStateRequest]) (*connect.Response[v1alpha1.ChangeSystemStateResponse], error)
func (UnimplementedUmgmtServiceHandler) DeleteUser ¶
func (UnimplementedUmgmtServiceHandler) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error)
func (UnimplementedUmgmtServiceHandler) GetChassisInfo ¶
func (UnimplementedUmgmtServiceHandler) GetChassisInfo(context.Context, *connect.Request[v1alpha1.GetChassisInfoRequest]) (*connect.Response[v1alpha1.GetChassisInfoResponse], error)
func (UnimplementedUmgmtServiceHandler) GetUserInfo ¶
func (UnimplementedUmgmtServiceHandler) GetUserInfo(context.Context, *connect.Request[v1alpha1.GetUserInfoRequest]) (*connect.Response[v1alpha1.GetUserInfoResponse], error)
func (UnimplementedUmgmtServiceHandler) ListInventory ¶
func (UnimplementedUmgmtServiceHandler) ListInventory(context.Context, *connect.Request[v1alpha1.ListInventoryRequest]) (*connect.Response[v1alpha1.ListInventoryResponse], error)
func (UnimplementedUmgmtServiceHandler) ListUsers ¶
func (UnimplementedUmgmtServiceHandler) ListUsers(context.Context, *connect.Request[v1alpha1.ListUsersRequest]) (*connect.Response[v1alpha1.ListUsersResponse], error)
func (UnimplementedUmgmtServiceHandler) StreamConsole ¶
func (UnimplementedUmgmtServiceHandler) StreamConsole(context.Context, *connect.BidiStream[v1alpha1.StreamConsoleRequest, v1alpha1.StreamConsoleResponse]) error
func (UnimplementedUmgmtServiceHandler) UpdateUser ¶
func (UnimplementedUmgmtServiceHandler) UpdateUser(context.Context, *connect.Request[v1alpha1.UpdateUserRequest]) (*connect.Response[v1alpha1.UpdateUserResponse], error)