Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSecretHTTPServer(s *http.Server, srv SecretHTTPServer)
- func RegisterSecretServer(s grpc.ServiceRegistrar, srv SecretServer)
- type CreateSecretReply
- type CreateSecretRequest
- func (*CreateSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSecretRequest) GetExpires() int64
- func (*CreateSecretRequest) ProtoMessage()
- func (x *CreateSecretRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSecretRequest) Reset()
- func (x *CreateSecretRequest) String() string
- type DeleteSecretReply
- type DeleteSecretRequest
- type GetSecretReply
- type GetSecretRequest
- type ListSecretReply
- func (*ListSecretReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretReply) GetListMeta() *v1.ListMeta
- func (x *ListSecretReply) GetSecrets() []*Secret
- func (*ListSecretReply) ProtoMessage()
- func (x *ListSecretReply) ProtoReflect() protoreflect.Message
- func (x *ListSecretReply) Reset()
- func (x *ListSecretReply) String() string
- type ListSecretRequest
- type Secret
- func (*Secret) Descriptor() ([]byte, []int)deprecated
- func (x *Secret) GetDescription() string
- func (x *Secret) GetExpires() int64
- func (x *Secret) GetMeta() *v1.ObjectMeta
- func (x *Secret) GetSecretID() string
- func (x *Secret) GetSecretKey() string
- func (x *Secret) GetUsername() string
- func (*Secret) ProtoMessage()
- func (x *Secret) ProtoReflect() protoreflect.Message
- func (x *Secret) Reset()
- func (x *Secret) String() string
- type SecretClient
- type SecretHTTPClient
- type SecretHTTPClientImpl
- type SecretHTTPServer
- type SecretServer
- type UnimplementedSecretServer
- func (UnimplementedSecretServer) CreateSecret(context.Context, *CreateSecretRequest) (*CreateSecretReply, error)
- func (UnimplementedSecretServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*DeleteSecretReply, error)
- func (UnimplementedSecretServer) GetSecret(context.Context, *GetSecretRequest) (*GetSecretReply, error)
- func (UnimplementedSecretServer) ListSecret(context.Context, *ListSecretRequest) (*ListSecretReply, error)
- func (UnimplementedSecretServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*UpdateSecretReply, error)
- type UnsafeSecretServer
- type UpdateSecretReply
- type UpdateSecretRequest
Constants ¶
const ( Secret_CreateSecret_FullMethodName = "/secret.v1.Secret/CreateSecret" Secret_UpdateSecret_FullMethodName = "/secret.v1.Secret/UpdateSecret" Secret_DeleteSecret_FullMethodName = "/secret.v1.Secret/DeleteSecret" Secret_GetSecret_FullMethodName = "/secret.v1.Secret/GetSecret" Secret_ListSecret_FullMethodName = "/secret.v1.Secret/ListSecret" )
const OperationSecretCreateSecret = "/secret.v1.Secret/CreateSecret"
Variables ¶
var File_secret_v1_secret_proto protoreflect.FileDescriptor
var Secret_ServiceDesc = grpc.ServiceDesc{ ServiceName: "secret.v1.Secret", HandlerType: (*SecretServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSecret", Handler: _Secret_CreateSecret_Handler, }, { MethodName: "UpdateSecret", Handler: _Secret_UpdateSecret_Handler, }, { MethodName: "DeleteSecret", Handler: _Secret_DeleteSecret_Handler, }, { MethodName: "GetSecret", Handler: _Secret_GetSecret_Handler, }, { MethodName: "ListSecret", Handler: _Secret_ListSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "secret/v1/secret.proto", }
Secret_ServiceDesc is the grpc.ServiceDesc for Secret service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecretHTTPServer ¶
func RegisterSecretHTTPServer(s *http.Server, srv SecretHTTPServer)
func RegisterSecretServer ¶
func RegisterSecretServer(s grpc.ServiceRegistrar, srv SecretServer)
Types ¶
type CreateSecretReply ¶
type CreateSecretReply struct {
// contains filtered or unexported fields
}
func (*CreateSecretReply) Descriptor
deprecated
func (*CreateSecretReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSecretReply.ProtoReflect.Descriptor instead.
func (*CreateSecretReply) ProtoMessage ¶
func (*CreateSecretReply) ProtoMessage()
func (*CreateSecretReply) ProtoReflect ¶
func (x *CreateSecretReply) ProtoReflect() protoreflect.Message
func (*CreateSecretReply) Reset ¶
func (x *CreateSecretReply) Reset()
func (*CreateSecretReply) String ¶
func (x *CreateSecretReply) String() string
type CreateSecretRequest ¶
type CreateSecretRequest struct { Expires int64 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*CreateSecretRequest) Descriptor
deprecated
func (*CreateSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSecretRequest.ProtoReflect.Descriptor instead.
func (*CreateSecretRequest) GetExpires ¶
func (x *CreateSecretRequest) GetExpires() int64
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 DeleteSecretReply ¶
type DeleteSecretReply struct {
// contains filtered or unexported fields
}
func (*DeleteSecretReply) Descriptor
deprecated
func (*DeleteSecretReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretReply.ProtoReflect.Descriptor instead.
func (*DeleteSecretReply) ProtoMessage ¶
func (*DeleteSecretReply) ProtoMessage()
func (*DeleteSecretReply) ProtoReflect ¶
func (x *DeleteSecretReply) ProtoReflect() protoreflect.Message
func (*DeleteSecretReply) Reset ¶
func (x *DeleteSecretReply) Reset()
func (*DeleteSecretReply) String ¶
func (x *DeleteSecretReply) String() string
type DeleteSecretRequest ¶
type DeleteSecretRequest struct {
// contains filtered or unexported fields
}
func (*DeleteSecretRequest) Descriptor
deprecated
func (*DeleteSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.
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 GetSecretReply ¶
type GetSecretReply struct {
// contains filtered or unexported fields
}
func (*GetSecretReply) Descriptor
deprecated
func (*GetSecretReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretReply.ProtoReflect.Descriptor instead.
func (*GetSecretReply) ProtoMessage ¶
func (*GetSecretReply) ProtoMessage()
func (*GetSecretReply) ProtoReflect ¶
func (x *GetSecretReply) ProtoReflect() protoreflect.Message
func (*GetSecretReply) Reset ¶
func (x *GetSecretReply) Reset()
func (*GetSecretReply) String ¶
func (x *GetSecretReply) String() string
type GetSecretRequest ¶
type GetSecretRequest struct {
// contains filtered or unexported fields
}
func (*GetSecretRequest) Descriptor
deprecated
func (*GetSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.
func (*GetSecretRequest) ProtoMessage ¶
func (*GetSecretRequest) ProtoMessage()
func (*GetSecretRequest) ProtoReflect ¶
func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
func (*GetSecretRequest) Reset ¶
func (x *GetSecretRequest) Reset()
func (*GetSecretRequest) String ¶
func (x *GetSecretRequest) String() string
type ListSecretReply ¶
type ListSecretReply struct { ListMeta *v1.ListMeta `protobuf:"bytes,1,opt,name=listMeta,proto3" json:"listMeta,omitempty"` Secrets []*Secret `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` // contains filtered or unexported fields }
func (*ListSecretReply) Descriptor
deprecated
func (*ListSecretReply) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretReply.ProtoReflect.Descriptor instead.
func (*ListSecretReply) GetListMeta ¶
func (x *ListSecretReply) GetListMeta() *v1.ListMeta
func (*ListSecretReply) GetSecrets ¶
func (x *ListSecretReply) GetSecrets() []*Secret
func (*ListSecretReply) ProtoMessage ¶
func (*ListSecretReply) ProtoMessage()
func (*ListSecretReply) ProtoReflect ¶
func (x *ListSecretReply) ProtoReflect() protoreflect.Message
func (*ListSecretReply) Reset ¶
func (x *ListSecretReply) Reset()
func (*ListSecretReply) String ¶
func (x *ListSecretReply) String() string
type ListSecretRequest ¶
type ListSecretRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*ListSecretRequest) Descriptor
deprecated
func (*ListSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretRequest.ProtoReflect.Descriptor instead.
func (*ListSecretRequest) GetUsername ¶
func (x *ListSecretRequest) GetUsername() string
func (*ListSecretRequest) ProtoMessage ¶
func (*ListSecretRequest) ProtoMessage()
func (*ListSecretRequest) ProtoReflect ¶
func (x *ListSecretRequest) ProtoReflect() protoreflect.Message
func (*ListSecretRequest) Reset ¶
func (x *ListSecretRequest) Reset()
func (*ListSecretRequest) String ¶
func (x *ListSecretRequest) String() string
type Secret ¶
type Secret struct { Meta *v1.ObjectMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` SecretID string `protobuf:"bytes,3,opt,name=secretID,proto3" json:"secretID,omitempty"` SecretKey string `protobuf:"bytes,4,opt,name=secretKey,proto3" json:"secretKey,omitempty"` Expires int64 `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Secret) Descriptor
deprecated
func (*Secret) GetDescription ¶
func (*Secret) GetExpires ¶
func (*Secret) GetMeta ¶
func (x *Secret) GetMeta() *v1.ObjectMeta
func (*Secret) GetSecretID ¶
func (*Secret) GetSecretKey ¶
func (*Secret) GetUsername ¶
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
type SecretClient ¶
type SecretClient interface { CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*CreateSecretReply, error) UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*UpdateSecretReply, error) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*DeleteSecretReply, error) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretReply, error) ListSecret(ctx context.Context, in *ListSecretRequest, opts ...grpc.CallOption) (*ListSecretReply, error) }
SecretClient is the client API for Secret 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 NewSecretClient ¶
func NewSecretClient(cc grpc.ClientConnInterface) SecretClient
type SecretHTTPClient ¶
type SecretHTTPClient interface {
CreateSecret(ctx context.Context, req *CreateSecretRequest, opts ...http.CallOption) (rsp *CreateSecretReply, err error)
}
func NewSecretHTTPClient ¶
func NewSecretHTTPClient(client *http.Client) SecretHTTPClient
type SecretHTTPClientImpl ¶
type SecretHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SecretHTTPClientImpl) CreateSecret ¶
func (c *SecretHTTPClientImpl) CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...http.CallOption) (*CreateSecretReply, error)
type SecretHTTPServer ¶
type SecretHTTPServer interface {
CreateSecret(context.Context, *CreateSecretRequest) (*CreateSecretReply, error)
}
type SecretServer ¶
type SecretServer interface { CreateSecret(context.Context, *CreateSecretRequest) (*CreateSecretReply, error) UpdateSecret(context.Context, *UpdateSecretRequest) (*UpdateSecretReply, error) DeleteSecret(context.Context, *DeleteSecretRequest) (*DeleteSecretReply, error) GetSecret(context.Context, *GetSecretRequest) (*GetSecretReply, error) ListSecret(context.Context, *ListSecretRequest) (*ListSecretReply, error) // contains filtered or unexported methods }
SecretServer is the server API for Secret service. All implementations must embed UnimplementedSecretServer for forward compatibility
type UnimplementedSecretServer ¶
type UnimplementedSecretServer struct { }
UnimplementedSecretServer must be embedded to have forward compatible implementations.
func (UnimplementedSecretServer) CreateSecret ¶
func (UnimplementedSecretServer) CreateSecret(context.Context, *CreateSecretRequest) (*CreateSecretReply, error)
func (UnimplementedSecretServer) DeleteSecret ¶
func (UnimplementedSecretServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*DeleteSecretReply, error)
func (UnimplementedSecretServer) GetSecret ¶
func (UnimplementedSecretServer) GetSecret(context.Context, *GetSecretRequest) (*GetSecretReply, error)
func (UnimplementedSecretServer) ListSecret ¶
func (UnimplementedSecretServer) ListSecret(context.Context, *ListSecretRequest) (*ListSecretReply, error)
func (UnimplementedSecretServer) UpdateSecret ¶
func (UnimplementedSecretServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*UpdateSecretReply, error)
type UnsafeSecretServer ¶
type UnsafeSecretServer interface {
// contains filtered or unexported methods
}
UnsafeSecretServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretServer will result in compilation errors.
type UpdateSecretReply ¶
type UpdateSecretReply struct {
// contains filtered or unexported fields
}
func (*UpdateSecretReply) Descriptor
deprecated
func (*UpdateSecretReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSecretReply.ProtoReflect.Descriptor instead.
func (*UpdateSecretReply) ProtoMessage ¶
func (*UpdateSecretReply) ProtoMessage()
func (*UpdateSecretReply) ProtoReflect ¶
func (x *UpdateSecretReply) ProtoReflect() protoreflect.Message
func (*UpdateSecretReply) Reset ¶
func (x *UpdateSecretReply) Reset()
func (*UpdateSecretReply) String ¶
func (x *UpdateSecretReply) String() string
type UpdateSecretRequest ¶
type UpdateSecretRequest struct {
// contains filtered or unexported fields
}
func (*UpdateSecretRequest) Descriptor
deprecated
func (*UpdateSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSecretRequest.ProtoReflect.Descriptor instead.
func (*UpdateSecretRequest) ProtoMessage ¶
func (*UpdateSecretRequest) ProtoMessage()
func (*UpdateSecretRequest) ProtoReflect ¶
func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message
func (*UpdateSecretRequest) Reset ¶
func (x *UpdateSecretRequest) Reset()
func (*UpdateSecretRequest) String ¶
func (x *UpdateSecretRequest) String() string