decorator

package
v0.0.0-...-2bcb355 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blobstore

type Blobstore interface {

	// Instead doing:
	bitsgo.Blobstore
	Get(path string) (body io.ReadCloser, err error)
}

type MetricsEmittingBlobstoreDecorator

type MetricsEmittingBlobstoreDecorator struct {
	// contains filtered or unexported fields
}

func ForBlobstoreWithMetricsEmitter

func ForBlobstoreWithMetricsEmitter(delegate Blobstore, metricsService bitsgo.MetricsService, resourceType string) *MetricsEmittingBlobstoreDecorator

func (*MetricsEmittingBlobstoreDecorator) Copy

func (decorator *MetricsEmittingBlobstoreDecorator) Copy(src, dest string) error

func (*MetricsEmittingBlobstoreDecorator) Delete

func (decorator *MetricsEmittingBlobstoreDecorator) Delete(path string) error

func (*MetricsEmittingBlobstoreDecorator) DeleteDir

func (decorator *MetricsEmittingBlobstoreDecorator) DeleteDir(prefix string) error

func (*MetricsEmittingBlobstoreDecorator) Exists

func (decorator *MetricsEmittingBlobstoreDecorator) Exists(path string) (bool, error)

func (*MetricsEmittingBlobstoreDecorator) Get

func (decorator *MetricsEmittingBlobstoreDecorator) Get(path string) (body io.ReadCloser, err error)

func (*MetricsEmittingBlobstoreDecorator) GetOrRedirect

func (decorator *MetricsEmittingBlobstoreDecorator) GetOrRedirect(path string) (body io.ReadCloser, redirectLocation string, err error)

func (*MetricsEmittingBlobstoreDecorator) HeadOrRedirectAsGet

func (decorator *MetricsEmittingBlobstoreDecorator) HeadOrRedirectAsGet(path string) (redirectLocation string, err error)

func (*MetricsEmittingBlobstoreDecorator) Put

func (decorator *MetricsEmittingBlobstoreDecorator) Put(path string, src io.ReadSeeker) error

type PartitioningPathBlobstoreDecorator

type PartitioningPathBlobstoreDecorator struct {
	// contains filtered or unexported fields
}

func ForBlobstoreWithPathPartitioning

func ForBlobstoreWithPathPartitioning(delegate Blobstore) *PartitioningPathBlobstoreDecorator

func (*PartitioningPathBlobstoreDecorator) Copy

func (decorator *PartitioningPathBlobstoreDecorator) Copy(src, dest string) error

func (*PartitioningPathBlobstoreDecorator) Delete

func (decorator *PartitioningPathBlobstoreDecorator) Delete(path string) error

func (*PartitioningPathBlobstoreDecorator) DeleteDir

func (decorator *PartitioningPathBlobstoreDecorator) DeleteDir(prefix string) error

func (*PartitioningPathBlobstoreDecorator) Exists

func (decorator *PartitioningPathBlobstoreDecorator) Exists(path string) (bool, error)

func (*PartitioningPathBlobstoreDecorator) Get

func (decorator *PartitioningPathBlobstoreDecorator) Get(path string) (body io.ReadCloser, err error)

func (*PartitioningPathBlobstoreDecorator) GetOrRedirect

func (decorator *PartitioningPathBlobstoreDecorator) GetOrRedirect(path string) (body io.ReadCloser, redirectLocation string, err error)

func (*PartitioningPathBlobstoreDecorator) HeadOrRedirectAsGet

func (decorator *PartitioningPathBlobstoreDecorator) HeadOrRedirectAsGet(path string) (redirectLocation string, err error)

func (*PartitioningPathBlobstoreDecorator) Put

func (decorator *PartitioningPathBlobstoreDecorator) Put(path string, src io.ReadSeeker) error

type PartitioningPathResourceSigner

type PartitioningPathResourceSigner struct {
	// contains filtered or unexported fields
}

func ForResourceSignerWithPathPartitioning

func ForResourceSignerWithPathPartitioning(delegate bitsgo.ResourceSigner) *PartitioningPathResourceSigner

func (*PartitioningPathResourceSigner) Sign

func (signer *PartitioningPathResourceSigner) Sign(resource string, method string, expirationTime time.Time) (signedURL string)

type PrefixingPathBlobstoreDecorator

type PrefixingPathBlobstoreDecorator struct {
	// contains filtered or unexported fields
}

func ForBlobstoreWithPathPrefixing

func ForBlobstoreWithPathPrefixing(delegate Blobstore, prefix string) *PrefixingPathBlobstoreDecorator

func (*PrefixingPathBlobstoreDecorator) Copy

func (decorator *PrefixingPathBlobstoreDecorator) Copy(src, dest string) error

func (*PrefixingPathBlobstoreDecorator) Delete

func (decorator *PrefixingPathBlobstoreDecorator) Delete(path string) error

func (*PrefixingPathBlobstoreDecorator) DeleteDir

func (decorator *PrefixingPathBlobstoreDecorator) DeleteDir(prefix string) error

func (*PrefixingPathBlobstoreDecorator) Exists

func (decorator *PrefixingPathBlobstoreDecorator) Exists(path string) (bool, error)

func (*PrefixingPathBlobstoreDecorator) Get

func (decorator *PrefixingPathBlobstoreDecorator) Get(path string) (body io.ReadCloser, err error)

func (*PrefixingPathBlobstoreDecorator) GetOrRedirect

func (decorator *PrefixingPathBlobstoreDecorator) GetOrRedirect(path string) (body io.ReadCloser, redirectLocation string, err error)

func (*PrefixingPathBlobstoreDecorator) HeadOrRedirectAsGet

func (decorator *PrefixingPathBlobstoreDecorator) HeadOrRedirectAsGet(path string) (redirectLocation string, err error)

func (*PrefixingPathBlobstoreDecorator) Put

func (decorator *PrefixingPathBlobstoreDecorator) Put(path string, src io.ReadSeeker) error

type PrefixingPathResourceSigner

type PrefixingPathResourceSigner struct {
	// contains filtered or unexported fields
}

func ForResourceSignerWithPathPrefixing

func ForResourceSignerWithPathPrefixing(delegate bitsgo.ResourceSigner, prefix string) *PrefixingPathResourceSigner

func (*PrefixingPathResourceSigner) Sign

func (signer *PrefixingPathResourceSigner) Sign(resource string, method string, expirationTime time.Time) (signedURL string)

Jump to

Keyboard shortcuts

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