Documentation
¶
Index ¶
- Variables
- func GetOVFEnvelope(ctx context.Context, itemID, contentVersion string) (env *ovf.Envelope, err error)
- func JoinContext(left, right context.Context) context.Context
- func SetGetter(parent context.Context, getter GetterFn)
- func WithContext(parent context.Context) context.Context
- type GetterFn
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGetter = internal.ErrNoGetter
ErrNoGetter is returned from GetOVFEnvelope if there is no getter function.
Functions ¶
func GetOVFEnvelope ¶
func GetOVFEnvelope( ctx context.Context, itemID, contentVersion string) (env *ovf.Envelope, err error)
GetOVFEnvelope returns the OVF envelope for the provided item ID, either from the cache or from vSphere. If the item is not in the cache, it will be cached prior to being returned.
func JoinContext ¶
JoinContext returns a context with the OVF cache from the right or left, in that order.
Types ¶
Click to show internal directories.
Click to hide internal directories.