guildhouse-spire-plugins/gen/quartermaster/v1/governance_grpc.pb.go
Tyler King a58d548518 feat: network-policy extension, governance lifecycle, audit remediation
- Network-policy SPIRE plugin extension
- Governance event notification with merkle anchoring
- Shellstream specs for consent channels + HFL embedded ABI
- All 17 audit findings from AUDIT.md remediated
- SSH credential composer + substrate key manager updates
- Test coverage for config + sshcert packages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 15:54:46 -04:00

232 lines
9.5 KiB
Go

// Source of truth: guildhouse monorepo
// services/qm-proto/proto/quartermaster/v1/governance.proto
// This file is a copy for Go code generation. Do not edit here.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.12
// source: quartermaster/v1/governance.proto
package quartermasterv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
GovernanceService_CreateIntent_FullMethodName = "/quartermaster.v1.GovernanceService/CreateIntent"
GovernanceService_RedeemIntent_FullMethodName = "/quartermaster.v1.GovernanceService/RedeemIntent"
GovernanceService_RevokeIntent_FullMethodName = "/quartermaster.v1.GovernanceService/RevokeIntent"
GovernanceService_ListIntents_FullMethodName = "/quartermaster.v1.GovernanceService/ListIntents"
)
// GovernanceServiceClient is the client API for GovernanceService 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.
type GovernanceServiceClient interface {
// Create a MutationIntent — called by application at user-request time.
CreateIntent(ctx context.Context, in *CreateIntentRequest, opts ...grpc.CallOption) (*CreateIntentResponse, error)
// Redeem a MutationIntent — called by worker at execution time.
RedeemIntent(ctx context.Context, in *RedeemIntentRequest, opts ...grpc.CallOption) (*RedeemIntentResponse, error)
// Revoke a MutationIntent — called to cancel pending authorization.
RevokeIntent(ctx context.Context, in *RevokeIntentRequest, opts ...grpc.CallOption) (*RevokeIntentResponse, error)
// Query intents for a tenant (admin/audit use).
ListIntents(ctx context.Context, in *ListIntentsRequest, opts ...grpc.CallOption) (*ListIntentsResponse, error)
}
type governanceServiceClient struct {
cc grpc.ClientConnInterface
}
func NewGovernanceServiceClient(cc grpc.ClientConnInterface) GovernanceServiceClient {
return &governanceServiceClient{cc}
}
func (c *governanceServiceClient) CreateIntent(ctx context.Context, in *CreateIntentRequest, opts ...grpc.CallOption) (*CreateIntentResponse, error) {
out := new(CreateIntentResponse)
err := c.cc.Invoke(ctx, GovernanceService_CreateIntent_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *governanceServiceClient) RedeemIntent(ctx context.Context, in *RedeemIntentRequest, opts ...grpc.CallOption) (*RedeemIntentResponse, error) {
out := new(RedeemIntentResponse)
err := c.cc.Invoke(ctx, GovernanceService_RedeemIntent_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *governanceServiceClient) RevokeIntent(ctx context.Context, in *RevokeIntentRequest, opts ...grpc.CallOption) (*RevokeIntentResponse, error) {
out := new(RevokeIntentResponse)
err := c.cc.Invoke(ctx, GovernanceService_RevokeIntent_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *governanceServiceClient) ListIntents(ctx context.Context, in *ListIntentsRequest, opts ...grpc.CallOption) (*ListIntentsResponse, error) {
out := new(ListIntentsResponse)
err := c.cc.Invoke(ctx, GovernanceService_ListIntents_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GovernanceServiceServer is the server API for GovernanceService service.
// All implementations must embed UnimplementedGovernanceServiceServer
// for forward compatibility
type GovernanceServiceServer interface {
// Create a MutationIntent — called by application at user-request time.
CreateIntent(context.Context, *CreateIntentRequest) (*CreateIntentResponse, error)
// Redeem a MutationIntent — called by worker at execution time.
RedeemIntent(context.Context, *RedeemIntentRequest) (*RedeemIntentResponse, error)
// Revoke a MutationIntent — called to cancel pending authorization.
RevokeIntent(context.Context, *RevokeIntentRequest) (*RevokeIntentResponse, error)
// Query intents for a tenant (admin/audit use).
ListIntents(context.Context, *ListIntentsRequest) (*ListIntentsResponse, error)
mustEmbedUnimplementedGovernanceServiceServer()
}
// UnimplementedGovernanceServiceServer must be embedded to have forward compatible implementations.
type UnimplementedGovernanceServiceServer struct {
}
func (UnimplementedGovernanceServiceServer) CreateIntent(context.Context, *CreateIntentRequest) (*CreateIntentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateIntent not implemented")
}
func (UnimplementedGovernanceServiceServer) RedeemIntent(context.Context, *RedeemIntentRequest) (*RedeemIntentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RedeemIntent not implemented")
}
func (UnimplementedGovernanceServiceServer) RevokeIntent(context.Context, *RevokeIntentRequest) (*RevokeIntentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RevokeIntent not implemented")
}
func (UnimplementedGovernanceServiceServer) ListIntents(context.Context, *ListIntentsRequest) (*ListIntentsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListIntents not implemented")
}
func (UnimplementedGovernanceServiceServer) mustEmbedUnimplementedGovernanceServiceServer() {}
// UnsafeGovernanceServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to GovernanceServiceServer will
// result in compilation errors.
type UnsafeGovernanceServiceServer interface {
mustEmbedUnimplementedGovernanceServiceServer()
}
func RegisterGovernanceServiceServer(s grpc.ServiceRegistrar, srv GovernanceServiceServer) {
s.RegisterService(&GovernanceService_ServiceDesc, srv)
}
func _GovernanceService_CreateIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateIntentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GovernanceServiceServer).CreateIntent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GovernanceService_CreateIntent_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GovernanceServiceServer).CreateIntent(ctx, req.(*CreateIntentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GovernanceService_RedeemIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RedeemIntentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GovernanceServiceServer).RedeemIntent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GovernanceService_RedeemIntent_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GovernanceServiceServer).RedeemIntent(ctx, req.(*RedeemIntentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GovernanceService_RevokeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RevokeIntentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GovernanceServiceServer).RevokeIntent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GovernanceService_RevokeIntent_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GovernanceServiceServer).RevokeIntent(ctx, req.(*RevokeIntentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GovernanceService_ListIntents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListIntentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GovernanceServiceServer).ListIntents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: GovernanceService_ListIntents_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GovernanceServiceServer).ListIntents(ctx, req.(*ListIntentsRequest))
}
return interceptor(ctx, in, info, handler)
}
// GovernanceService_ServiceDesc is the grpc.ServiceDesc for GovernanceService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var GovernanceService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "quartermaster.v1.GovernanceService",
HandlerType: (*GovernanceServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateIntent",
Handler: _GovernanceService_CreateIntent_Handler,
},
{
MethodName: "RedeemIntent",
Handler: _GovernanceService_RedeemIntent_Handler,
},
{
MethodName: "RevokeIntent",
Handler: _GovernanceService_RevokeIntent_Handler,
},
{
MethodName: "ListIntents",
Handler: _GovernanceService_ListIntents_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "quartermaster/v1/governance.proto",
}