Documentation ¶
Index ¶
- func NewObjectReader(ctx context.Context, obj *storage.ObjectHandle) (*storage.Reader, error)
- func ObjectAttrs(ctx context.Context, obj *storage.ObjectHandle) (*storage.ObjectAttrs, error)
- func PrivateKey(keyPath string) (ed25519.PrivateKey, error)
- func PublicKeyUpload(publicKey ed25519.PublicKey) (*types.Upload, error)
- func Retry(ctx context.Context, f func() error) error
- func Sign(uploads []types.Upload, privateKey ed25519.PrivateKey) ([]types.Upload, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectReader ¶
NewObjectReader gets a reader for the given object, with retries.
func ObjectAttrs ¶
func ObjectAttrs(ctx context.Context, obj *storage.ObjectHandle) (*storage.ObjectAttrs, error)
ObjectAttrs gets the attributes for the given object, with retries.
func PrivateKey ¶
func PrivateKey(keyPath string) (ed25519.PrivateKey, error)
PrivateKey parses an ed25519 private key from a pem-formatted key file. It expects the key to be in a PKCS#8, ASN.1 DER format as generated by running `openssl genpkey -algorithm ed25519 -out <private key>.pem`.
func PublicKeyUpload ¶
PublicKeyUpload returns an Upload representing the public key used for release builds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.