github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/apiserver/client/export_test.go (about) 1 // Copyright 2012, 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package client 5 6 import "github.com/juju/juju/state" 7 8 var ( 9 RemoteParamsForMachine = remoteParamsForMachine 10 GetAllUnitNames = getAllUnitNames 11 ) 12 13 // Filtering exports 14 var ( 15 MatchPortRanges = matchPortRanges 16 MatchSubnet = matchSubnet 17 ) 18 19 // Status exports 20 var ( 21 ProcessMachines = processMachines 22 MakeMachineStatus = makeMachineStatus 23 ) 24 25 type MachineAndContainers machineAndContainers 26 27 // Status history exports 28 type StateInterface stateInterface 29 30 type Patcher interface { 31 PatchValue(ptr, value interface{}) 32 } 33 34 func PatchState(p Patcher, st StateInterface) { 35 p.PatchValue(&getState, func(*state.State) stateInterface { 36 return st 37 }) 38 }