cache

package
v11.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheDownloadURL

func GetCacheDownloadURL(build *common.Build, key string) *url.URL

func GetCacheUploadURL

func GetCacheUploadURL(build *common.Build, key string) *url.URL

Types

type Adapter

type Adapter interface {
	GetDownloadURL() *url.URL
	GetUploadURL() *url.URL
}

func CreateAdapter

func CreateAdapter(cacheConfig *common.CacheConfig, timeout time.Duration, objectName string) (Adapter, error)

type FactoriesMap

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

func Factories

func Factories() *FactoriesMap

func (*FactoriesMap) Find

func (m *FactoriesMap) Find(typeName string) (Factory, error)

func (*FactoriesMap) Register

func (m *FactoriesMap) Register(typeName string, factory Factory) error

type Factory

type Factory func(config *common.CacheConfig, timeout time.Duration, objectName string) (Adapter, error)

type MockAdapter

type MockAdapter struct {
	mock.Mock
}

MockAdapter is an autogenerated mock type for the Adapter type

func (*MockAdapter) GetDownloadURL

func (_m *MockAdapter) GetDownloadURL() *url.URL

GetDownloadURL provides a mock function with given fields:

func (*MockAdapter) GetUploadURL

func (_m *MockAdapter) GetUploadURL() *url.URL

GetUploadURL provides a mock function with given fields:

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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