github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/state/interface_test.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package state 5 6 // Ensure the interface fulfillment of interfaces without 7 // creating code in the binaries. 8 var ( 9 _ EntityFinder = (*State)(nil) 10 11 _ Entity = (*Machine)(nil) 12 _ Entity = (*Unit)(nil) 13 _ Entity = (*UnitAgent)(nil) 14 _ Entity = (*Service)(nil) 15 _ Entity = (*Model)(nil) 16 _ Entity = (*User)(nil) 17 _ Entity = (*IPAddress)(nil) 18 19 _ EntityWithService = (*Unit)(nil) 20 21 _ Lifer = (*Machine)(nil) 22 _ Lifer = (*Unit)(nil) 23 _ Lifer = (*Service)(nil) 24 _ Lifer = (*Relation)(nil) 25 26 _ EnsureDeader = (*Machine)(nil) 27 _ EnsureDeader = (*Unit)(nil) 28 29 _ Remover = (*Machine)(nil) 30 _ Remover = (*Unit)(nil) 31 32 _ Authenticator = (*Machine)(nil) 33 _ Authenticator = (*Unit)(nil) 34 _ Authenticator = (*User)(nil) 35 36 _ NotifyWatcherFactory = (*Machine)(nil) 37 _ NotifyWatcherFactory = (*Unit)(nil) 38 _ NotifyWatcherFactory = (*Service)(nil) 39 _ NotifyWatcherFactory = (*Model)(nil) 40 41 _ AgentEntity = (*Machine)(nil) 42 _ AgentEntity = (*Unit)(nil) 43 44 _ ModelAccessor = (*State)(nil) 45 46 _ UnitsWatcher = (*Machine)(nil) 47 _ UnitsWatcher = (*Service)(nil) 48 49 _ ModelMachinesWatcher = (*State)(nil) 50 51 _ InstanceIdGetter = (*Machine)(nil) 52 53 _ ActionsWatcher = (*Unit)(nil) 54 // TODO(jcw4): when we implement service level Actions 55 // _ ActionsWatcher = (*Service)(nil) 56 57 _ ActionReceiver = (*Unit)(nil) 58 // TODO(jcw4) - use when Actions can be queued for Services. 59 //_ ActionReceiver = (*Service)(nil) 60 61 _ GlobalEntity = (*Machine)(nil) 62 _ GlobalEntity = (*Unit)(nil) 63 _ GlobalEntity = (*Service)(nil) 64 _ GlobalEntity = (*Charm)(nil) 65 _ GlobalEntity = (*Model)(nil) 66 )