wrapped

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

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 5 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 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 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