Documentation ¶
Index ¶
- Variables
- func RegisterVaultServer(s grpc.ServiceRegistrar, srv VaultServer)
- type CreateSecretRequest
- func (*CreateSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSecretRequest) GetDomain() string
- func (x *CreateSecretRequest) GetName() string
- func (x *CreateSecretRequest) GetValue() []byte
- func (*CreateSecretRequest) ProtoMessage()
- func (x *CreateSecretRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSecretRequest) Reset()
- func (x *CreateSecretRequest) String() string
- type DeleteSecretRequest
- func (*DeleteSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSecretRequest) GetDomain() string
- func (x *DeleteSecretRequest) GetName() string
- func (*DeleteSecretRequest) ProtoMessage()
- func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretRequest) Reset()
- func (x *DeleteSecretRequest) String() string
- type SecretRequest
- func (*SecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SecretRequest) GetDomain() string
- func (x *SecretRequest) GetName() string
- func (*SecretRequest) ProtoMessage()
- func (x *SecretRequest) ProtoReflect() protoreflect.Message
- func (x *SecretRequest) Reset()
- func (x *SecretRequest) String() string
- type SecretResponse
- type UnimplementedVaultServer
- func (UnimplementedVaultServer) CreateSecret(context.Context, *CreateSecretRequest) (*SecretResponse, error)
- func (UnimplementedVaultServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error)
- func (UnimplementedVaultServer) Secret(context.Context, *SecretRequest) (*SecretResponse, error)
- type UnsafeVaultServer
- type VaultClient
- type VaultServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_vault_proto protoreflect.FileDescriptor
var Vault_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vault.Vault", HandlerType: (*VaultServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Secret", Handler: _Vault_Secret_Handler, }, { MethodName: "CreateSecret", Handler: _Vault_CreateSecret_Handler, }, { MethodName: "DeleteSecret", Handler: _Vault_DeleteSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/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 CreateSecretRequest ¶
type CreateSecretRequest struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*CreateSecretRequest) Descriptor
deprecated
func (*CreateSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSecretRequest.ProtoReflect.Descriptor instead.
func (*CreateSecretRequest) GetDomain ¶
func (x *CreateSecretRequest) GetDomain() string
func (*CreateSecretRequest) GetName ¶
func (x *CreateSecretRequest) GetName() string
func (*CreateSecretRequest) GetValue ¶
func (x *CreateSecretRequest) GetValue() []byte
func (*CreateSecretRequest) ProtoMessage ¶
func (*CreateSecretRequest) ProtoMessage()
func (*CreateSecretRequest) ProtoReflect ¶
func (x *CreateSecretRequest) ProtoReflect() protoreflect.Message
func (*CreateSecretRequest) Reset ¶
func (x *CreateSecretRequest) Reset()
func (*CreateSecretRequest) String ¶
func (x *CreateSecretRequest) String() string
type DeleteSecretRequest ¶
type DeleteSecretRequest struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteSecretRequest) Descriptor
deprecated
func (*DeleteSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.
func (*DeleteSecretRequest) GetDomain ¶
func (x *DeleteSecretRequest) GetDomain() string
func (*DeleteSecretRequest) GetName ¶
func (x *DeleteSecretRequest) GetName() string
func (*DeleteSecretRequest) ProtoMessage ¶
func (*DeleteSecretRequest) ProtoMessage()
func (*DeleteSecretRequest) ProtoReflect ¶
func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message
func (*DeleteSecretRequest) Reset ¶
func (x *DeleteSecretRequest) Reset()
func (*DeleteSecretRequest) String ¶
func (x *DeleteSecretRequest) String() string
type SecretRequest ¶
type SecretRequest struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SecretRequest) Descriptor
deprecated
func (*SecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use SecretRequest.ProtoReflect.Descriptor instead.
func (*SecretRequest) GetDomain ¶
func (x *SecretRequest) GetDomain() string
func (*SecretRequest) GetName ¶
func (x *SecretRequest) GetName() string
func (*SecretRequest) ProtoMessage ¶
func (*SecretRequest) ProtoMessage()
func (*SecretRequest) ProtoReflect ¶
func (x *SecretRequest) ProtoReflect() protoreflect.Message
func (*SecretRequest) Reset ¶
func (x *SecretRequest) Reset()
func (*SecretRequest) String ¶
func (x *SecretRequest) String() string
type SecretResponse ¶
type SecretResponse struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SecretResponse) Descriptor
deprecated
func (*SecretResponse) Descriptor() ([]byte, []int)
Deprecated: Use SecretResponse.ProtoReflect.Descriptor instead.
func (*SecretResponse) GetValue ¶
func (x *SecretResponse) GetValue() []byte
func (*SecretResponse) ProtoMessage ¶
func (*SecretResponse) ProtoMessage()
func (*SecretResponse) ProtoReflect ¶
func (x *SecretResponse) ProtoReflect() protoreflect.Message
func (*SecretResponse) Reset ¶
func (x *SecretResponse) Reset()
func (*SecretResponse) String ¶
func (x *SecretResponse) String() string
type UnimplementedVaultServer ¶
type UnimplementedVaultServer struct { }
UnimplementedVaultServer must be embedded to have forward compatible implementations.
func (UnimplementedVaultServer) CreateSecret ¶
func (UnimplementedVaultServer) CreateSecret(context.Context, *CreateSecretRequest) (*SecretResponse, error)
func (UnimplementedVaultServer) DeleteSecret ¶
func (UnimplementedVaultServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error)
func (UnimplementedVaultServer) Secret ¶
func (UnimplementedVaultServer) Secret(context.Context, *SecretRequest) (*SecretResponse, 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 { Secret(ctx context.Context, in *SecretRequest, opts ...grpc.CallOption) (*SecretResponse, error) CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*SecretResponse, error) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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 { Secret(context.Context, *SecretRequest) (*SecretResponse, error) CreateSecret(context.Context, *CreateSecretRequest) (*SecretResponse, error) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
VaultServer is the server API for Vault service. All implementations must embed UnimplementedVaultServer for forward compatibility