cache

package
v1.11.1-0...-769674b Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 11 Imported by: 0

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