pb

package
v0.0.0-...-eb3fb91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 2 Imported by: 0

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)

func (*EncryptionAccess) Encode

func (m *EncryptionAccess) Encode(c *picobuf.Encoder) bool

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 (*EncryptionAccess_StoreEntry) Encode

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)

func (*EncryptionParameters) Encode

func (m *EncryptionParameters) Encode(c *picobuf.Encoder) bool

type Scope

type Scope struct {
	SatelliteAddr    string            `json:"satellite_addr,omitempty"`
	ApiKey           []byte            `json:"api_key,omitempty"`
	EncryptionAccess *EncryptionAccess `json:"encryption_access,omitempty"`
}

func (*Scope) Decode

func (m *Scope) Decode(c *picobuf.Decoder)

func (*Scope) Encode

func (m *Scope) Encode(c *picobuf.Encoder) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL