Documentation ¶
Index ¶
- Variables
- func RegisterVaultServer(s grpc.ServiceRegistrar, srv VaultServer)
- type StoreCredRequest
- func (*StoreCredRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StoreCredRequest) GetCredname() string
- func (x *StoreCredRequest) GetPassword() string
- func (x *StoreCredRequest) GetUsername() string
- func (*StoreCredRequest) ProtoMessage()
- func (x *StoreCredRequest) ProtoReflect() protoreflect.Message
- func (x *StoreCredRequest) Reset()
- func (x *StoreCredRequest) String() string
- type StoreCredResponse
- type UnimplementedVaultServer
- type UnsafeVaultServer
- type VaultClient
- type VaultServer
Constants ¶
This section is empty.
Variables ¶
var File_agent_vault_proto protoreflect.FileDescriptor
var Vault_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vaultservpb.Vault", HandlerType: (*VaultServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StoreCred", Handler: _Vault_StoreCred_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "agent-vault.proto", }
Vault_ServiceDesc is the grpc.ServiceDesc for Vault service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVaultServer ¶
func RegisterVaultServer(s grpc.ServiceRegistrar, srv VaultServer)
Types ¶
type StoreCredRequest ¶
type StoreCredRequest struct { Credname string `protobuf:"bytes,1,opt,name=credname,proto3" json:"credname,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*StoreCredRequest) Descriptor
deprecated
func (*StoreCredRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreCredRequest.ProtoReflect.Descriptor instead.
func (*StoreCredRequest) GetCredname ¶
func (x *StoreCredRequest) GetCredname() string
func (*StoreCredRequest) GetPassword ¶
func (x *StoreCredRequest) GetPassword() string
func (*StoreCredRequest) GetUsername ¶
func (x *StoreCredRequest) GetUsername() string
func (*StoreCredRequest) ProtoMessage ¶
func (*StoreCredRequest) ProtoMessage()
func (*StoreCredRequest) ProtoReflect ¶
func (x *StoreCredRequest) ProtoReflect() protoreflect.Message
func (*StoreCredRequest) Reset ¶
func (x *StoreCredRequest) Reset()
func (*StoreCredRequest) String ¶
func (x *StoreCredRequest) String() string
type StoreCredResponse ¶
type StoreCredResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*StoreCredResponse) Descriptor
deprecated
func (*StoreCredResponse) Descriptor() ([]byte, []int)
Deprecated: Use StoreCredResponse.ProtoReflect.Descriptor instead.
func (*StoreCredResponse) GetStatus ¶
func (x *StoreCredResponse) GetStatus() string
func (*StoreCredResponse) ProtoMessage ¶
func (*StoreCredResponse) ProtoMessage()
func (*StoreCredResponse) ProtoReflect ¶
func (x *StoreCredResponse) ProtoReflect() protoreflect.Message
func (*StoreCredResponse) Reset ¶
func (x *StoreCredResponse) Reset()
func (*StoreCredResponse) String ¶
func (x *StoreCredResponse) String() string
type UnimplementedVaultServer ¶
type UnimplementedVaultServer struct { }
UnimplementedVaultServer must be embedded to have forward compatible implementations.
func (UnimplementedVaultServer) StoreCred ¶
func (UnimplementedVaultServer) StoreCred(context.Context, *StoreCredRequest) (*StoreCredResponse, error)
type UnsafeVaultServer ¶
type UnsafeVaultServer interface {
// contains filtered or unexported methods
}
UnsafeVaultServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VaultServer will result in compilation errors.
type VaultClient ¶
type VaultClient interface {
StoreCred(ctx context.Context, in *StoreCredRequest, opts ...grpc.CallOption) (*StoreCredResponse, error)
}
VaultClient is the client API for Vault 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 NewVaultClient ¶
func NewVaultClient(cc grpc.ClientConnInterface) VaultClient
type VaultServer ¶
type VaultServer interface { StoreCred(context.Context, *StoreCredRequest) (*StoreCredResponse, error) // contains filtered or unexported methods }
VaultServer is the server API for Vault service. All implementations must embed UnimplementedVaultServer for forward compatibility