object

package
v0.0.0-...-96bc9f9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptedObject

type EncryptedObject struct {
	Link    string
	Key     string
	Nonce   string
	Content string
	Expires int64
}

type RemoteFileInteractor

type RemoteFileInteractor struct {
	// contains filtered or unexported fields
}

func NewRemoteFileInteractor

func NewRemoteFileInteractor(api restTransport) *RemoteFileInteractor

func (*RemoteFileInteractor) GetObject

func (r *RemoteFileInteractor) GetObject(link, key string) ([]byte, error)

GetObject downloads a decrypts a remote object.

func (*RemoteFileInteractor) SetObject

func (r *RemoteFileInteractor) SetObject(data []byte) (*EncryptedObject, error)

Encrypts and uploads an object.

Jump to

Keyboard shortcuts

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