...

Package objectstore

import "golang.conradwood.net/go-easyops/objectstore"
Overview
Index

Overview ▾

wrapper around objectstore service.

func Evict

func Evict(ctx context.Context, key string) ([]byte, error)

evict (remove) an object from the objectstore by key

func Get

func Get(ctx context.Context, key string) ([]byte, error)

get an object from the objectstore by key

func PutWithID

func PutWithID(ctx context.Context, key string, buf []byte) error

func PutWithIDAndExpiry

func PutWithIDAndExpiry(ctx context.Context, key string, buf []byte, expiry time.Time) error

func RetrieveProto

func RetrieveProto(ctx context.Context, key string, p proto.Message) error

retrieve a proto in the objectstore

func StoreProto

func StoreProto(ctx context.Context, key string, p proto.Message) error

store a proto in the objectstore