github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/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 = (*Application)(nil)
    15  	_ Entity = (*Model)(nil)
    16  	_ Entity = (*User)(nil)
    17  
    18  	_ EntityWithApplication = (*Unit)(nil)
    19  
    20  	_ Lifer = (*Machine)(nil)
    21  	_ Lifer = (*Unit)(nil)
    22  	_ Lifer = (*Application)(nil)
    23  	_ Lifer = (*Relation)(nil)
    24  
    25  	_ EnsureDeader = (*Machine)(nil)
    26  	_ EnsureDeader = (*Unit)(nil)
    27  
    28  	_ Remover = (*Machine)(nil)
    29  	_ Remover = (*Unit)(nil)
    30  
    31  	_ Authenticator = (*Machine)(nil)
    32  	_ Authenticator = (*Unit)(nil)
    33  	_ Authenticator = (*User)(nil)
    34  
    35  	_ NotifyWatcherFactory = (*Machine)(nil)
    36  	_ NotifyWatcherFactory = (*Unit)(nil)
    37  	_ NotifyWatcherFactory = (*Application)(nil)
    38  	_ NotifyWatcherFactory = (*Model)(nil)
    39  
    40  	_ AgentEntity = (*Machine)(nil)
    41  	_ AgentEntity = (*Unit)(nil)
    42  
    43  	_ ModelAccessor = (*State)(nil)
    44  
    45  	_ UnitsWatcher = (*Machine)(nil)
    46  	_ UnitsWatcher = (*Application)(nil)
    47  
    48  	_ ModelMachinesWatcher = (*State)(nil)
    49  
    50  	_ InstanceIdGetter = (*Machine)(nil)
    51  
    52  	_ ActionsWatcher = (*Unit)(nil)
    53  	// TODO(jcw4): when we implement service level Actions
    54  	// _ ActionsWatcher = (*Service)(nil)
    55  
    56  	_ ActionReceiver = (*Unit)(nil)
    57  	// TODO(jcw4) - use when Actions can be queued for applications.
    58  	//_ ActionReceiver = (*Service)(nil)
    59  
    60  	_ GlobalEntity = (*Machine)(nil)
    61  	_ GlobalEntity = (*Unit)(nil)
    62  	_ GlobalEntity = (*Application)(nil)
    63  	_ GlobalEntity = (*Charm)(nil)
    64  	_ GlobalEntity = (*Model)(nil)
    65  )