wrapped

package
v3.9.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobStore

func NewBlobStore(bs distribution.BlobStore, wrapper Wrapper) distribution.BlobStore

NewBlobStore returns a wrapped distribution.BlobStore.

func NewManifestService

func NewManifestService(ms distribution.ManifestService, wrapper Wrapper) distribution.ManifestService

NewManifestService returns a wrapped distribution.ManifestService.

func NewTagService

func NewTagService(ts distribution.TagService, wrapper Wrapper) distribution.TagService

NewTagService returns a wrapped distribution.TagService.

Types

type Wrapper

type Wrapper func(ctx context.Context, funcname string, f func(ctx context.Context) error) error

Wrapper is a user defined function that wraps a method and can control the execution flow, modify its context and handle errors.

Jump to

Keyboard shortcuts

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