Documentation ¶
Overview ¶
Package pb contains protobuf definitions for Storj peers. Run protolock in the storj.io/common module root to update the lock file. E.g. `protolock commit`, no other parameters necessary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CipherSuite ¶
type CipherSuite int32
const ( CipherSuite_ENC_UNSPECIFIED CipherSuite = 0 CipherSuite_ENC_NULL CipherSuite = 1 CipherSuite_ENC_AESGCM CipherSuite = 2 CipherSuite_ENC_SECRETBOX CipherSuite = 3 )
func (CipherSuite) String ¶
func (m CipherSuite) String() string
type EncryptionAccess ¶
type EncryptionAccess struct { DefaultKey []byte `json:"default_key,omitempty"` StoreEntries []*EncryptionAccess_StoreEntry `json:"store_entries,omitempty"` DefaultPathCipher CipherSuite `json:"default_path_cipher,omitempty"` DefaultEncryptionParameters *EncryptionParameters `json:"default_encryption_parameters,omitempty"` }
func (*EncryptionAccess) Decode ¶
func (m *EncryptionAccess) Decode(c *picobuf.Decoder)
type EncryptionAccess_StoreEntry ¶
type EncryptionAccess_StoreEntry struct { Bucket []byte `json:"bucket,omitempty"` UnencryptedPath []byte `json:"unencrypted_path,omitempty"` EncryptedPath []byte `json:"encrypted_path,omitempty"` Key []byte `json:"key,omitempty"` PathCipher CipherSuite `json:"path_cipher,omitempty"` EncryptionParameters *EncryptionParameters `json:"encryption_parameters,omitempty"` }
func (*EncryptionAccess_StoreEntry) Decode ¶
func (m *EncryptionAccess_StoreEntry) Decode(c *picobuf.Decoder)
type EncryptionParameters ¶
type EncryptionParameters struct { CipherSuite CipherSuite `json:"cipher_suite,omitempty"` BlockSize int64 `json:"block_size,omitempty"` }
func (*EncryptionParameters) Decode ¶
func (m *EncryptionParameters) Decode(c *picobuf.Decoder)
type Scope ¶
type Scope struct { SatelliteAddr string `json:"satellite_addr,omitempty"` ApiKey []byte `json:"api_key,omitempty"` EncryptionAccess *EncryptionAccess `json:"encryption_access,omitempty"` }
Click to show internal directories.
Click to hide internal directories.