Documentation
¶
Index ¶
- Variables
- func GetLock(ctx context.Context, itemID string) sync.Locker
- func GetOVFEnvelope(ctx context.Context, itemID, contentVersion string) (env *ovf.Envelope, err error)
- func JoinContext(left, right context.Context) context.Context
- func Put(ctx context.Context, itemID string, env VersionedOVFEnvelope) pkgutil.CachePutResult
- func SetGetter(parent context.Context, getter GetterFn)
- func WithContext(parent context.Context, maxCachedItems int, ...) context.Context
- type ContextValueType
- type GetterFn
- type VersionedOVFEnvelope
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGetter = errors.New("ovfcache getter fn is nil")
ErrNoGetter is returned from GetOVFEnvelope if there is no getter function.
Functions ¶
func GetOVFEnvelope ¶
func Put ¶
func Put( ctx context.Context, itemID string, env VersionedOVFEnvelope) pkgutil.CachePutResult
Types ¶
type ContextValueType ¶
type ContextValueType struct {
// contains filtered or unexported fields
}
func Cache ¶
func Cache(ctx context.Context) ContextValueType
type VersionedOVFEnvelope ¶
Click to show internal directories.
Click to hide internal directories.