Documentation ¶
Index ¶
- Constants
- func NewKeServiceHandler(svc KeServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type KeServiceClient
- type KeServiceHandler
- type UnimplementedKeServiceHandler
- func (UnimplementedKeServiceHandler) CreateCluster(context.Context, *connect_go.Request[v1alpha.CreateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error)
- func (UnimplementedKeServiceHandler) DeleteCluster(context.Context, *connect_go.Request[v1alpha.DeleteClusterRequest]) (*connect_go.Response[emptypb.Empty], error)
- func (UnimplementedKeServiceHandler) GetCluster(context.Context, *connect_go.Request[v1alpha.GetClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error)
- func (UnimplementedKeServiceHandler) ListCluster(context.Context, *connect_go.Request[v1alpha.ListClusterRequest]) (*connect_go.Response[v1alpha.ListClusterResponse], error)
- func (UnimplementedKeServiceHandler) UpdateCluster(context.Context, *connect_go.Request[v1alpha.UpdateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error)
Constants ¶
const ( // KeServiceCreateClusterProcedure is the fully-qualified name of the KeService's CreateCluster RPC. KeServiceCreateClusterProcedure = "/api.ke.v1alpha.KeService/CreateCluster" // KeServiceGetClusterProcedure is the fully-qualified name of the KeService's GetCluster RPC. KeServiceGetClusterProcedure = "/api.ke.v1alpha.KeService/GetCluster" // KeServiceDeleteClusterProcedure is the fully-qualified name of the KeService's DeleteCluster RPC. KeServiceDeleteClusterProcedure = "/api.ke.v1alpha.KeService/DeleteCluster" // KeServiceListClusterProcedure is the fully-qualified name of the KeService's ListCluster RPC. KeServiceListClusterProcedure = "/api.ke.v1alpha.KeService/ListCluster" // KeServiceUpdateClusterProcedure is the fully-qualified name of the KeService's UpdateCluster RPC. KeServiceUpdateClusterProcedure = "/api.ke.v1alpha.KeService/UpdateCluster" )
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 (
// KeServiceName is the fully-qualified name of the KeService service.
KeServiceName = "api.ke.v1alpha.KeService"
)
Variables ¶
This section is empty.
Functions ¶
func NewKeServiceHandler ¶
func NewKeServiceHandler(svc KeServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewKeServiceHandler 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 KeServiceClient ¶
type KeServiceClient interface { CreateCluster(context.Context, *connect_go.Request[v1alpha.CreateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error) GetCluster(context.Context, *connect_go.Request[v1alpha.GetClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error) DeleteCluster(context.Context, *connect_go.Request[v1alpha.DeleteClusterRequest]) (*connect_go.Response[emptypb.Empty], error) ListCluster(context.Context, *connect_go.Request[v1alpha.ListClusterRequest]) (*connect_go.Response[v1alpha.ListClusterResponse], error) UpdateCluster(context.Context, *connect_go.Request[v1alpha.UpdateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error) }
KeServiceClient is a client for the api.ke.v1alpha.KeService service.
func NewKeServiceClient ¶
func NewKeServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) KeServiceClient
NewKeServiceClient constructs a client for the api.ke.v1alpha.KeService 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 KeServiceHandler ¶
type KeServiceHandler interface { CreateCluster(context.Context, *connect_go.Request[v1alpha.CreateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error) GetCluster(context.Context, *connect_go.Request[v1alpha.GetClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error) DeleteCluster(context.Context, *connect_go.Request[v1alpha.DeleteClusterRequest]) (*connect_go.Response[emptypb.Empty], error) ListCluster(context.Context, *connect_go.Request[v1alpha.ListClusterRequest]) (*connect_go.Response[v1alpha.ListClusterResponse], error) UpdateCluster(context.Context, *connect_go.Request[v1alpha.UpdateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error) }
KeServiceHandler is an implementation of the api.ke.v1alpha.KeService service.
type UnimplementedKeServiceHandler ¶
type UnimplementedKeServiceHandler struct{}
UnimplementedKeServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedKeServiceHandler) CreateCluster ¶
func (UnimplementedKeServiceHandler) CreateCluster(context.Context, *connect_go.Request[v1alpha.CreateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error)
func (UnimplementedKeServiceHandler) DeleteCluster ¶
func (UnimplementedKeServiceHandler) DeleteCluster(context.Context, *connect_go.Request[v1alpha.DeleteClusterRequest]) (*connect_go.Response[emptypb.Empty], error)
func (UnimplementedKeServiceHandler) GetCluster ¶
func (UnimplementedKeServiceHandler) GetCluster(context.Context, *connect_go.Request[v1alpha.GetClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error)
func (UnimplementedKeServiceHandler) ListCluster ¶
func (UnimplementedKeServiceHandler) ListCluster(context.Context, *connect_go.Request[v1alpha.ListClusterRequest]) (*connect_go.Response[v1alpha.ListClusterResponse], error)
func (UnimplementedKeServiceHandler) UpdateCluster ¶
func (UnimplementedKeServiceHandler) UpdateCluster(context.Context, *connect_go.Request[v1alpha.UpdateClusterRequest]) (*connect_go.Response[v1alpha.Cluster], error)