Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
safedump.proto
It has these top-level messages:
GetPublicCertRequest GetPublicCertResponse DecryptSecretRequest DecryptSecretResponse EncryptedHeader ServerConfig ClientConfig KeyAndCert PersistedObject
Index ¶
- Variables
- func RegisterSafeDumpServiceServer(s *grpc.Server, srv SafeDumpServiceServer)
- type ClientConfig
- func (*ClientConfig) Descriptor() ([]byte, []int)
- func (m *ClientConfig) GetGrpcCert() string
- func (m *ClientConfig) GetGrpcServer() string
- func (m *ClientConfig) GetHttpBaseUrl() string
- func (m *ClientConfig) GetNoGrpcSecurity() bool
- func (m *ClientConfig) GetProtocol() ServerProtocol
- func (m *ClientConfig) GetUseSystemCaForGrpc() bool
- func (*ClientConfig) ProtoMessage()
- func (m *ClientConfig) Reset()
- func (m *ClientConfig) String() string
- type DecryptSecretRequest
- type DecryptSecretResponse
- type EncryptedHeader
- func (*EncryptedHeader) Descriptor() ([]byte, []int)
- func (m *EncryptedHeader) GetEncryptedKey() []byte
- func (m *EncryptedHeader) GetSpkiFingerprint() []byte
- func (m *EncryptedHeader) GetTtl() int64
- func (*EncryptedHeader) ProtoMessage()
- func (m *EncryptedHeader) Reset()
- func (m *EncryptedHeader) String() string
- type GetPublicCertRequest
- type GetPublicCertResponse
- type KeyAndCert
- type PersistedObject
- type SafeDumpServiceClient
- type SafeDumpServiceServer
- type ServerConfig
- func (*ServerConfig) Descriptor() ([]byte, []int)
- func (m *ServerConfig) GetArchivedKeysDir() string
- func (m *ServerConfig) GetCertificateRotationPeriod() string
- func (m *ServerConfig) GetKeyRetentionPeriod() string
- func (m *ServerConfig) GetListenBind() string
- func (m *ServerConfig) GetListenProtocol() string
- func (m *ServerConfig) GetMaxDecryptionPeriod() string
- func (m *ServerConfig) GetPurgeOldKeys() bool
- func (m *ServerConfig) GetServerCertPath() string
- func (m *ServerConfig) GetServerKeyPath() string
- func (*ServerConfig) ProtoMessage()
- func (m *ServerConfig) Reset()
- func (m *ServerConfig) String() string
- type ServerProtocol
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerProtocol_name = map[int32]string{
0: "GRPC_PROTOCOL",
1: "HTTP_PROTOCOL",
}
View Source
var ServerProtocol_value = map[string]int32{
"GRPC_PROTOCOL": 0,
"HTTP_PROTOCOL": 1,
}
Functions ¶
func RegisterSafeDumpServiceServer ¶
func RegisterSafeDumpServiceServer(s *grpc.Server, srv SafeDumpServiceServer)
Types ¶
type ClientConfig ¶
type ClientConfig struct { NoGrpcSecurity bool `protobuf:"varint,1,opt,name=no_grpc_security,json=noGrpcSecurity" json:"no_grpc_security,omitempty"` UseSystemCaForGrpc bool `protobuf:"varint,2,opt,name=use_system_ca_for_grpc,json=useSystemCaForGrpc" json:"use_system_ca_for_grpc,omitempty"` GrpcCert string `protobuf:"bytes,3,opt,name=grpc_cert,json=grpcCert" json:"grpc_cert,omitempty"` GrpcServer string `protobuf:"bytes,4,opt,name=grpc_server,json=grpcServer" json:"grpc_server,omitempty"` HttpBaseUrl string `protobuf:"bytes,5,opt,name=http_base_url,json=httpBaseUrl" json:"http_base_url,omitempty"` Protocol ServerProtocol `protobuf:"varint,6,opt,name=protocol,enum=continusec.safedump.ServerProtocol" json:"protocol,omitempty"` }
func (*ClientConfig) Descriptor ¶
func (*ClientConfig) Descriptor() ([]byte, []int)
func (*ClientConfig) GetGrpcCert ¶
func (m *ClientConfig) GetGrpcCert() string
func (*ClientConfig) GetGrpcServer ¶
func (m *ClientConfig) GetGrpcServer() string
func (*ClientConfig) GetHttpBaseUrl ¶
func (m *ClientConfig) GetHttpBaseUrl() string
func (*ClientConfig) GetNoGrpcSecurity ¶
func (m *ClientConfig) GetNoGrpcSecurity() bool
func (*ClientConfig) GetProtocol ¶
func (m *ClientConfig) GetProtocol() ServerProtocol
func (*ClientConfig) GetUseSystemCaForGrpc ¶
func (m *ClientConfig) GetUseSystemCaForGrpc() bool
func (*ClientConfig) ProtoMessage ¶
func (*ClientConfig) ProtoMessage()
func (*ClientConfig) Reset ¶
func (m *ClientConfig) Reset()
func (*ClientConfig) String ¶
func (m *ClientConfig) String() string
type DecryptSecretRequest ¶
type DecryptSecretRequest struct {
Header *EncryptedHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}
func (*DecryptSecretRequest) Descriptor ¶
func (*DecryptSecretRequest) Descriptor() ([]byte, []int)
func (*DecryptSecretRequest) GetHeader ¶
func (m *DecryptSecretRequest) GetHeader() *EncryptedHeader
func (*DecryptSecretRequest) ProtoMessage ¶
func (*DecryptSecretRequest) ProtoMessage()
func (*DecryptSecretRequest) Reset ¶
func (m *DecryptSecretRequest) Reset()
func (*DecryptSecretRequest) String ¶
func (m *DecryptSecretRequest) String() string
type DecryptSecretResponse ¶
type DecryptSecretResponse struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (*DecryptSecretResponse) Descriptor ¶
func (*DecryptSecretResponse) Descriptor() ([]byte, []int)
func (*DecryptSecretResponse) GetKey ¶
func (m *DecryptSecretResponse) GetKey() []byte
func (*DecryptSecretResponse) ProtoMessage ¶
func (*DecryptSecretResponse) ProtoMessage()
func (*DecryptSecretResponse) Reset ¶
func (m *DecryptSecretResponse) Reset()
func (*DecryptSecretResponse) String ¶
func (m *DecryptSecretResponse) String() string
type EncryptedHeader ¶
type EncryptedHeader struct { SpkiFingerprint []byte `protobuf:"bytes,1,opt,name=spki_fingerprint,json=spkiFingerprint,proto3" json:"spki_fingerprint,omitempty"` Ttl int64 `protobuf:"varint,2,opt,name=ttl" json:"ttl,omitempty"` EncryptedKey []byte `protobuf:"bytes,3,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"` }
func (*EncryptedHeader) Descriptor ¶
func (*EncryptedHeader) Descriptor() ([]byte, []int)
func (*EncryptedHeader) GetEncryptedKey ¶
func (m *EncryptedHeader) GetEncryptedKey() []byte
func (*EncryptedHeader) GetSpkiFingerprint ¶
func (m *EncryptedHeader) GetSpkiFingerprint() []byte
func (*EncryptedHeader) GetTtl ¶
func (m *EncryptedHeader) GetTtl() int64
func (*EncryptedHeader) ProtoMessage ¶
func (*EncryptedHeader) ProtoMessage()
func (*EncryptedHeader) Reset ¶
func (m *EncryptedHeader) Reset()
func (*EncryptedHeader) String ¶
func (m *EncryptedHeader) String() string
type GetPublicCertRequest ¶
type GetPublicCertRequest struct { }
func (*GetPublicCertRequest) Descriptor ¶
func (*GetPublicCertRequest) Descriptor() ([]byte, []int)
func (*GetPublicCertRequest) ProtoMessage ¶
func (*GetPublicCertRequest) ProtoMessage()
func (*GetPublicCertRequest) Reset ¶
func (m *GetPublicCertRequest) Reset()
func (*GetPublicCertRequest) String ¶
func (m *GetPublicCertRequest) String() string
type GetPublicCertResponse ¶
type GetPublicCertResponse struct { Der []byte `protobuf:"bytes,1,opt,name=der,proto3" json:"der,omitempty"` Ttl int64 `protobuf:"varint,2,opt,name=ttl" json:"ttl,omitempty"` }
func (*GetPublicCertResponse) Descriptor ¶
func (*GetPublicCertResponse) Descriptor() ([]byte, []int)
func (*GetPublicCertResponse) GetDer ¶
func (m *GetPublicCertResponse) GetDer() []byte
func (*GetPublicCertResponse) GetTtl ¶
func (m *GetPublicCertResponse) GetTtl() int64
func (*GetPublicCertResponse) ProtoMessage ¶
func (*GetPublicCertResponse) ProtoMessage()
func (*GetPublicCertResponse) Reset ¶
func (m *GetPublicCertResponse) Reset()
func (*GetPublicCertResponse) String ¶
func (m *GetPublicCertResponse) String() string
type KeyAndCert ¶
type KeyAndCert struct { Cert *GetPublicCertResponse `protobuf:"bytes,1,opt,name=cert" json:"cert,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` }
func (*KeyAndCert) Descriptor ¶
func (*KeyAndCert) Descriptor() ([]byte, []int)
func (*KeyAndCert) GetCert ¶
func (m *KeyAndCert) GetCert() *GetPublicCertResponse
func (*KeyAndCert) GetKey ¶
func (m *KeyAndCert) GetKey() []byte
func (*KeyAndCert) ProtoMessage ¶
func (*KeyAndCert) ProtoMessage()
func (*KeyAndCert) Reset ¶
func (m *KeyAndCert) Reset()
func (*KeyAndCert) String ¶
func (m *KeyAndCert) String() string
type PersistedObject ¶
type PersistedObject struct { Ttl int64 `protobuf:"varint,1,opt,name=ttl" json:"ttl,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*PersistedObject) Descriptor ¶
func (*PersistedObject) Descriptor() ([]byte, []int)
func (*PersistedObject) GetKey ¶
func (m *PersistedObject) GetKey() []byte
func (*PersistedObject) GetTtl ¶
func (m *PersistedObject) GetTtl() int64
func (*PersistedObject) GetValue ¶
func (m *PersistedObject) GetValue() []byte
func (*PersistedObject) ProtoMessage ¶
func (*PersistedObject) ProtoMessage()
func (*PersistedObject) Reset ¶
func (m *PersistedObject) Reset()
func (*PersistedObject) String ¶
func (m *PersistedObject) String() string
type SafeDumpServiceClient ¶
type SafeDumpServiceClient interface { GetPublicCert(ctx context.Context, in *GetPublicCertRequest, opts ...grpc.CallOption) (*GetPublicCertResponse, error) DecryptSecret(ctx context.Context, in *DecryptSecretRequest, opts ...grpc.CallOption) (*DecryptSecretResponse, error) }
func NewSafeDumpServiceClient ¶
func NewSafeDumpServiceClient(cc *grpc.ClientConn) SafeDumpServiceClient
type SafeDumpServiceServer ¶
type SafeDumpServiceServer interface { GetPublicCert(context.Context, *GetPublicCertRequest) (*GetPublicCertResponse, error) DecryptSecret(context.Context, *DecryptSecretRequest) (*DecryptSecretResponse, error) }
type ServerConfig ¶
type ServerConfig struct { ServerCertPath string `protobuf:"bytes,1,opt,name=server_cert_path,json=serverCertPath" json:"server_cert_path,omitempty"` ServerKeyPath string `protobuf:"bytes,2,opt,name=server_key_path,json=serverKeyPath" json:"server_key_path,omitempty"` ListenBind string `protobuf:"bytes,3,opt,name=listen_bind,json=listenBind" json:"listen_bind,omitempty"` ArchivedKeysDir string `protobuf:"bytes,4,opt,name=archived_keys_dir,json=archivedKeysDir" json:"archived_keys_dir,omitempty"` ListenProtocol string `protobuf:"bytes,5,opt,name=listen_protocol,json=listenProtocol" json:"listen_protocol,omitempty"` MaxDecryptionPeriod string `protobuf:"bytes,6,opt,name=max_decryption_period,json=maxDecryptionPeriod" json:"max_decryption_period,omitempty"` CertificateRotationPeriod string `` /* 131-byte string literal not displayed */ PurgeOldKeys bool `protobuf:"varint,8,opt,name=purge_old_keys,json=purgeOldKeys" json:"purge_old_keys,omitempty"` KeyRetentionPeriod string `protobuf:"bytes,9,opt,name=key_retention_period,json=keyRetentionPeriod" json:"key_retention_period,omitempty"` }
func (*ServerConfig) Descriptor ¶
func (*ServerConfig) Descriptor() ([]byte, []int)
func (*ServerConfig) GetArchivedKeysDir ¶
func (m *ServerConfig) GetArchivedKeysDir() string
func (*ServerConfig) GetCertificateRotationPeriod ¶
func (m *ServerConfig) GetCertificateRotationPeriod() string
func (*ServerConfig) GetKeyRetentionPeriod ¶
func (m *ServerConfig) GetKeyRetentionPeriod() string
func (*ServerConfig) GetListenBind ¶
func (m *ServerConfig) GetListenBind() string
func (*ServerConfig) GetListenProtocol ¶
func (m *ServerConfig) GetListenProtocol() string
func (*ServerConfig) GetMaxDecryptionPeriod ¶
func (m *ServerConfig) GetMaxDecryptionPeriod() string
func (*ServerConfig) GetPurgeOldKeys ¶
func (m *ServerConfig) GetPurgeOldKeys() bool
func (*ServerConfig) GetServerCertPath ¶
func (m *ServerConfig) GetServerCertPath() string
func (*ServerConfig) GetServerKeyPath ¶
func (m *ServerConfig) GetServerKeyPath() string
func (*ServerConfig) ProtoMessage ¶
func (*ServerConfig) ProtoMessage()
func (*ServerConfig) Reset ¶
func (m *ServerConfig) Reset()
func (*ServerConfig) String ¶
func (m *ServerConfig) String() string
type ServerProtocol ¶
type ServerProtocol int32
const ( ServerProtocol_GRPC_PROTOCOL ServerProtocol = 0 ServerProtocol_HTTP_PROTOCOL ServerProtocol = 1 )
func (ServerProtocol) EnumDescriptor ¶
func (ServerProtocol) EnumDescriptor() ([]byte, []int)
func (ServerProtocol) String ¶
func (x ServerProtocol) String() string
Click to show internal directories.
Click to hide internal directories.