cacheconfigcommon

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectEndpointURL

func SelectEndpointURL(endpointURL string, envProvider func(string) string) string

SelectEndpointURL - if endpointURL provided use that, otherwise select the best build cache endpoint automatically

Types

type CacheAuthConfig

type CacheAuthConfig struct {
	AuthToken   string
	WorkspaceID string
}

CacheAuthConfig holds the auth config for the cache.

func ReadAuthConfigFromEnvironments

func ReadAuthConfigFromEnvironments(envProvider func(string) string) (CacheAuthConfig, error)

ReadAuthConfigFromEnvironments reads auth information from the environment variables - if BITRISEIO_BITRISE_SERVICES_ACCESS_TOKEN is provided, use that - otherwise, if BITRISE_BUILD_CACHE_AUTH_TOKEN and BITRISE_BUILD_CACHE_WORKSPACE_ID is provided, use that - otherwise return error

func (CacheAuthConfig) TokenInGradleFormat

func (cac CacheAuthConfig) TokenInGradleFormat() string

TokenInGradleFormat returns the auth token in gradle format.

Jump to

Keyboard shortcuts

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