github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/caasoperator/export_test.go (about) 1 // Copyright 2019 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package caasoperator 5 6 import ( 7 "github.com/juju/names/v5" 8 ) 9 10 var ( 11 GetNewRunnerExecutor = getNewRunnerExecutor 12 JujudSymlinks = jujudSymlinks 13 InitializeUnit = initializeUnit 14 RunnerWithRetry = runnerWithRetry 15 ) 16 17 type ( 18 InitializeUnitParams = initializeUnitParams 19 CaasOperator = caasOperator 20 ) 21 22 func (op *caasOperator) MakeAgentSymlinks(unitTag names.UnitTag) error { 23 return op.makeAgentSymlinks(unitTag) 24 } 25 26 func (op *caasOperator) GetDataDir() string { 27 return op.config.DataDir 28 } 29 30 func (op *caasOperator) GetToolsDir() string { 31 return op.paths.GetToolsDir() 32 }