lib

package
v0.0.0-...-9b59340 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObjectReader

func NewObjectReader(ctx context.Context, obj *storage.ObjectHandle) (*storage.Reader, error)

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

func PublicKeyUpload(publicKey ed25519.PublicKey) (*types.Upload, error)

PublicKeyUpload returns an Upload representing the public key used for release builds.

func Retry

func Retry(ctx context.Context, f func() error) error

Retry wraps a function that makes a GCS API call, adding retries for failures that might be transient.

func Sign

func Sign(uploads []types.Upload, privateKey ed25519.PrivateKey) ([]types.Upload, error)

Sign signs the upload files and attaches the signatures as metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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