cache

package
v11.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: MIT Imports: 11 Imported by: 75

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