func (s *StatefulSetScanner) GetObjects() ([]*Object, error) {
	rcs, err := s.getStatefulSets()
	if err != nil {
		return nil, err
	}
	return s.getObjects(rcs)
}
GetObjects will return a populated list of Objects containing the relavant
resources with their schedule info.
package scanner
import (
	"fmt"
	"github.com/golang/glog"
	v1beta "k8s.io/api/apps/v1beta1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/watch"
	appsv1beta "k8s.io/client-go/kubernetes/typed/apps/v1beta1"
	"k8s.io/client-go/rest"
)
type StatefulSetScanner struct {
	config     Config
	kubernetes *rest.Config
}
func init() {
	RegisterModule("statefulset", NewStatefulSetScanner)
}
func NewStatefulSetScanner() (Scanner, error) {
	kubernetes, err := getKubernetes()
	if err != nil {
		return nil, fmt.Errorf("failed instantiating k8s client: %s", err)
	}
	return &StatefulSetScanner{
		kubernetes: kubernetes,
	}, nil
}
func (s *StatefulSetScanner) SetConfig(cfg Config) {
	s.config = cfg
}
func (s *StatefulSetScanner) GetConfig() Config {
	return s.config
}