Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CIProviderBitrise ... CIProviderBitrise = "bitrise" // CIProviderCircleCI ... CIProviderCircleCI = "circle-ci" // CIProviderGitHubActions ... CIProviderGitHubActions = "github-actions" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheAuthConfig ¶
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.
type CacheConfig ¶ added in v0.6.0
type CacheConfig struct { CIProvider string RepoURL string // BitriseCI specific BitriseAppID string BitriseStepID string BitriseWorkflowName string BitriseBuildID string }
func NewCacheConfig ¶ added in v0.6.0
func NewCacheConfig(envProvider EnvProviderFunc) CacheConfig
NewCacheConfig creates a new CacheConfig instance based on the environment variables.
type EnvProviderFunc ¶ added in v0.6.0
EnvProviderFunc is a function which returns the value of an environment variable. It's compatible with os.Getenv - os.Getenv can be passed as an EnvProviderFunc.
Click to show internal directories.
Click to hide internal directories.