github.com/docker/compose-on-kubernetes@v0.5.0/api/client/informers/compose/v1alpha3/interface.go (about) 1 package v1alpha3 2 3 import ( 4 "github.com/docker/compose-on-kubernetes/api/client/informers/internalinterfaces" 5 ) 6 7 // Interface provides access to all the informers in this group version. 8 type Interface interface { 9 // Stacks returns a StackInformer. 10 Stacks() StackInformer 11 } 12 13 type version struct { 14 internalinterfaces.SharedInformerFactory 15 } 16 17 // New returns a new Interface. 18 func New(f internalinterfaces.SharedInformerFactory) Interface { 19 return &version{f} 20 } 21 22 // Stacks returns a StackInformer. 23 func (v *version) Stacks() StackInformer { 24 return &stackInformer{factory: v.SharedInformerFactory} 25 }