blobstore

package
v0.0.0-...-7b1ab2b Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(ctx context.Context, endpoint string, creds *credentials.Credentials, bucketName string, useTLS bool) (*Store, <-chan error, error)

New returns a reader/writer for storing/retrieving attestations

func (*Store) Get

func (s *Store) Get(ctx context.Context, gitoid string) (io.ReadCloser, error)

func (*Store) PutBlob

func (store *Store) PutBlob(ctx context.Context, idx string, obj []byte) error

PutBlob stores the attestation blob into the backend store

func (*Store) Store

func (s *Store) Store(ctx context.Context, gitoid string, payload []byte) error

Jump to

Keyboard shortcuts

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