Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGetter ¶
FakeGetter is a ServiceGetter implementation to be used in unit tests
type FakeLister ¶
type FakeLister struct { SvcList *api.ServiceList Err error }
FakeLister is a ServiceLister implementation to be used in unit tests
func (FakeLister) List ¶
func (f FakeLister) List(opts api.ListOptions) (*api.ServiceList, error)
List is the Lister interface implementation. It just returns f.SvcList, f.Err
type Getter ¶
Getter is a (k8s.io/kubernetes/pkg/client/unversioned).ServiceInterface compatible interface designed only for getting a service. It should be used as a parameter to functions so that they can be more easily unit tested
type Lister ¶
type Lister interface {
List(opts api.ListOptions) (*api.ServiceList, error)
}
Lister is a (k8s.io/kubernetes/pkg/client/unversioned).ServiceInterface compatible interface designed only for listing services. It should be used as a parameter to functions so that they can be more easily unit tested