Documentation
¶
Index ¶
- Constants
- func GradleTemplateProxy() utils.TemplateProxy
- type ActivateGradleParams
- type AnalyticsParams
- type AnalyticsTemplateInventory
- type CacheParams
- type CacheTemplateInventory
- type CacheValidationLevel
- type GradlePropertiesUpdater
- type PluginCommonTemplateInventory
- type TemplateInventory
- type TestDistroParams
- type TestDistroTemplateInventory
- type UsageLevel
Constants ¶
View Source
const ( ErrFmtGradlePropertiesCheck = "check if gradle.properties exists at %s, error: %w" ErrFmtGradlePropertyWrite = "write gradle.properties to %s, error: %w" )
View Source
const (
ErrFmtReadAutConfig = "read auth config from environment variables: %w"
)
Variables ¶
This section is empty.
Functions ¶
func GradleTemplateProxy ¶ added in v0.16.11
func GradleTemplateProxy() utils.TemplateProxy
Types ¶
type ActivateGradleParams ¶ added in v0.16.11
type ActivateGradleParams struct { Cache CacheParams Analytics AnalyticsParams TestDistro TestDistroParams }
func DefaultActivateGradleParams ¶ added in v0.16.11
func DefaultActivateGradleParams() ActivateGradleParams
func (ActivateGradleParams) TemplateInventory ¶ added in v0.16.11
func (params ActivateGradleParams) TemplateInventory( logger log.Logger, envProvider func(string) string, isDebug bool, ) (TemplateInventory, error)
type AnalyticsParams ¶ added in v0.16.10
type AnalyticsTemplateInventory ¶ added in v0.16.10
type AnalyticsTemplateInventory struct { Usage UsageLevel Version string Endpoint string Port int HTTPEndpoint string }
type CacheParams ¶ added in v0.16.10
type CacheTemplateInventory ¶ added in v0.16.10
type CacheTemplateInventory struct { Usage UsageLevel Version string EndpointURLWithPort string IsPushEnabled bool ValidationLevel string }
type CacheValidationLevel ¶ added in v0.14.4
type CacheValidationLevel string
var ( CacheValidationLevelNone CacheValidationLevel = "none" CacheValidationLevelWarning CacheValidationLevel = "warning" CacheValidationLevelError CacheValidationLevel = "error" )
type GradlePropertiesUpdater ¶ added in v0.16.10
func DefaultGradlePropertiesUpdater ¶ added in v0.16.10
func DefaultGradlePropertiesUpdater() GradlePropertiesUpdater
func (GradlePropertiesUpdater) UpdateGradleProps ¶ added in v0.16.10
func (updater GradlePropertiesUpdater) UpdateGradleProps( params ActivateGradleParams, logger log.Logger, gradleHomePath string, ) error
type PluginCommonTemplateInventory ¶ added in v0.16.10
type TemplateInventory ¶ added in v0.16.10
type TemplateInventory struct { Common PluginCommonTemplateInventory Cache CacheTemplateInventory Analytics AnalyticsTemplateInventory TestDistro TestDistroTemplateInventory }
func (TemplateInventory) GenerateInitGradle ¶ added in v0.16.10
func (inventory TemplateInventory) GenerateInitGradle(templateProxy utils.TemplateProxy) (string, error)
Generate init.gradle content. Recommended to save the content into $HOME/.gradle/init.d/ instead of overwriting the $HOME/.gradle/init.gradle file.
func (TemplateInventory) HasDependencies ¶ added in v0.16.10
func (inventory TemplateInventory) HasDependencies() bool
func (TemplateInventory) WriteToGradleInit ¶ added in v0.16.10
func (inventory TemplateInventory) WriteToGradleInit( logger log.Logger, gradleHomePath string, osProxy utils.OsProxy, templateProxy utils.TemplateProxy, ) error
type TestDistroParams ¶ added in v0.16.10
type TestDistroTemplateInventory ¶ added in v0.16.10
type UsageLevel ¶ added in v0.16.10
type UsageLevel string
var ( UsageLevelNone UsageLevel = "none" UsageLevelDependency UsageLevel = "dependency" UsageLevelEnabled UsageLevel = "enabled" )
Click to show internal directories.
Click to hide internal directories.