wrapped

package
v4.2.26+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobDescriptorService

func NewBlobDescriptorService(bds distribution.BlobDescriptorService, wrapper Wrapper) distribution.BlobDescriptorService

NewBlobDescriptorService NewBlobStore returns a wrapped distribution.BlobDescriptorService.

func NewBlobStore

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

NewBlobStore returns a wrapped distribution.BlobStore.

func NewBlobWriter

func NewBlobWriter(bw distribution.BlobWriter, wrapper Wrapper) distribution.BlobWriter

NewBlobWriter returns a wrapped distribution.BlobWriter.

func NewManifestService

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

NewManifestService returns a wrapped distribution.ManifestService.

func NewReadCloser

func NewReadCloser(r io.ReadCloser, wrapper SimpleWrapper) io.ReadCloser

func NewRepository

func NewRepository(r distribution.Repository, wrapper Wrapper) distribution.Repository

NewRepository returns a repository that creates wrapped services.

func NewTagService

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

NewTagService returns a wrapped distribution.TagService.

Types

type SimpleWrapper

type SimpleWrapper func(funcname string, f func() error) error

SimpleWrapper is a user defined function that wraps methods to control the execution flow and error reporing of methods. Unlike Wrapper, it wraps functions that don't use contexts, including low-level functions like (io.Reader).Read.

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 methods to control their execution flow, contexts and error reporing.

Jump to

Keyboard shortcuts

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