Add Status in runtime interface and use it for runtime health check.

This commit is contained in:
Random-Liu
2016-03-03 02:01:15 -08:00
parent 7215860ecd
commit 07b21c50fa
10 changed files with 191 additions and 280 deletions

View File

@@ -53,6 +53,11 @@ func (r *Mock) APIVersion() (Version, error) {
return args.Get(0).(Version), args.Error(1)
}
func (r *Mock) Status() error {
args := r.Called()
return args.Error(0)
}
func (r *Mock) GetPods(all bool) ([]*Pod, error) {
args := r.Called(all)
return args.Get(0).([]*Pod), args.Error(1)