Files
archie/internal/contracts/state/v1/harness_secret_grpc.pb.go
T
sam 0dae907dad refactor(state)!: split StateStoreService into per-domain services
One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
2026-10-25 19:54:27 +11:00

170 lines
7.2 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.2
// - protoc (unknown)
// source: state/v1/harness_secret.proto
package statev1
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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
HarnessSecretService_GetHarnessSecret_FullMethodName = "/state.v1.HarnessSecretService/GetHarnessSecret"
HarnessSecretService_PutHarnessSecret_FullMethodName = "/state.v1.HarnessSecretService/PutHarnessSecret"
)
// HarnessSecretServiceClient is the client API for HarnessSecretService 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.
//
// Harness OAuth secrets (docs/prds/external-agent-harness.md,
// Credentials). Administrative: the setup terminal (an `update` action on
// the secret, Authorizer-gated) and the egress proxy's token-endpoint
// interception (acting as the daemon, not a worker) are the only callers.
type HarnessSecretServiceClient interface {
GetHarnessSecret(ctx context.Context, in *GetHarnessSecretRequest, opts ...grpc.CallOption) (*GetHarnessSecretResponse, error)
PutHarnessSecret(ctx context.Context, in *PutHarnessSecretRequest, opts ...grpc.CallOption) (*PutHarnessSecretResponse, error)
}
type harnessSecretServiceClient struct {
cc grpc.ClientConnInterface
}
func NewHarnessSecretServiceClient(cc grpc.ClientConnInterface) HarnessSecretServiceClient {
return &harnessSecretServiceClient{cc}
}
func (c *harnessSecretServiceClient) GetHarnessSecret(ctx context.Context, in *GetHarnessSecretRequest, opts ...grpc.CallOption) (*GetHarnessSecretResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetHarnessSecretResponse)
err := c.cc.Invoke(ctx, HarnessSecretService_GetHarnessSecret_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *harnessSecretServiceClient) PutHarnessSecret(ctx context.Context, in *PutHarnessSecretRequest, opts ...grpc.CallOption) (*PutHarnessSecretResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(PutHarnessSecretResponse)
err := c.cc.Invoke(ctx, HarnessSecretService_PutHarnessSecret_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// HarnessSecretServiceServer is the server API for HarnessSecretService service.
// All implementations must embed UnimplementedHarnessSecretServiceServer
// for forward compatibility.
//
// Harness OAuth secrets (docs/prds/external-agent-harness.md,
// Credentials). Administrative: the setup terminal (an `update` action on
// the secret, Authorizer-gated) and the egress proxy's token-endpoint
// interception (acting as the daemon, not a worker) are the only callers.
type HarnessSecretServiceServer interface {
GetHarnessSecret(context.Context, *GetHarnessSecretRequest) (*GetHarnessSecretResponse, error)
PutHarnessSecret(context.Context, *PutHarnessSecretRequest) (*PutHarnessSecretResponse, error)
mustEmbedUnimplementedHarnessSecretServiceServer()
}
// UnimplementedHarnessSecretServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedHarnessSecretServiceServer struct{}
func (UnimplementedHarnessSecretServiceServer) GetHarnessSecret(context.Context, *GetHarnessSecretRequest) (*GetHarnessSecretResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetHarnessSecret not implemented")
}
func (UnimplementedHarnessSecretServiceServer) PutHarnessSecret(context.Context, *PutHarnessSecretRequest) (*PutHarnessSecretResponse, error) {
return nil, status.Error(codes.Unimplemented, "method PutHarnessSecret not implemented")
}
func (UnimplementedHarnessSecretServiceServer) mustEmbedUnimplementedHarnessSecretServiceServer() {}
func (UnimplementedHarnessSecretServiceServer) testEmbeddedByValue() {}
// UnsafeHarnessSecretServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to HarnessSecretServiceServer will
// result in compilation errors.
type UnsafeHarnessSecretServiceServer interface {
mustEmbedUnimplementedHarnessSecretServiceServer()
}
func RegisterHarnessSecretServiceServer(s grpc.ServiceRegistrar, srv HarnessSecretServiceServer) {
// If the following call panics, it indicates UnimplementedHarnessSecretServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&HarnessSecretService_ServiceDesc, srv)
}
func _HarnessSecretService_GetHarnessSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetHarnessSecretRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HarnessSecretServiceServer).GetHarnessSecret(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: HarnessSecretService_GetHarnessSecret_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HarnessSecretServiceServer).GetHarnessSecret(ctx, req.(*GetHarnessSecretRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HarnessSecretService_PutHarnessSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PutHarnessSecretRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HarnessSecretServiceServer).PutHarnessSecret(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: HarnessSecretService_PutHarnessSecret_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HarnessSecretServiceServer).PutHarnessSecret(ctx, req.(*PutHarnessSecretRequest))
}
return interceptor(ctx, in, info, handler)
}
// HarnessSecretService_ServiceDesc is the grpc.ServiceDesc for HarnessSecretService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var HarnessSecretService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "state.v1.HarnessSecretService",
HandlerType: (*HarnessSecretServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetHarnessSecret",
Handler: _HarnessSecretService_GetHarnessSecret_Handler,
},
{
MethodName: "PutHarnessSecret",
Handler: _HarnessSecretService_PutHarnessSecret_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "state/v1/harness_secret.proto",
}