Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGetter ¶
type FakeGetter struct { RC *api.ReplicationController Err error }
FakeGetter is a Getter implementation designed to be used in unit tests
func (FakeGetter) Get ¶
func (f FakeGetter) Get(api.ListOptions) (*api.ReplicationController, error)
Get is the Getter interface implementation. It simply returns f.RCList, f.Err
type FakeLister ¶
type FakeLister struct { RCList *api.ReplicationControllerList Err error }
FakeLister is a Lister implementation designed to be used in unit tests
func (FakeLister) List ¶
func (f FakeLister) List(api.ListOptions) (*api.ReplicationControllerList, error)
List is the Lister interface implementation. It simply returns f.RCList, f.Err
type Getter ¶
type Getter interface {
Get(name string) (*api.ReplicationController, error)
}
Getter is a (k8s.io/kubernetes/pkg/client/unversioned).ReplicationControllerInterface compatible interface designed only for getting replication controllers. It should be used as a parameter to functions so that they can be more easily unit tested
type Lister ¶
type Lister interface {
List(api.ListOptions) (*api.ReplicationControllerList, error)
}
Lister is a (k8s.io/kubernetes/pkg/client/unversioned).ReplicationControllerInterface compatible interface designed only for listing replication controllers. It should be used as a parameter to functions so that they can be more easily unit tested