github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/edge/pkg/metamanager/client/pod.go (about)

     1  package client
     2  
     3  import api "k8s.io/api/core/v1"
     4  
     5  //PodsGetter is interface to get pods
     6  type PodsGetter interface {
     7  	Pods(namespace string) PodsInterface
     8  }
     9  
    10  //PodsInterface is pod interface
    11  type PodsInterface interface {
    12  	Create(*api.Pod) (*api.Pod, error)
    13  	Update(*api.Pod) error
    14  	Delete(name string) error
    15  	Get(name string) (*api.Pod, error)
    16  }
    17  
    18  type pods struct {
    19  	namespace string
    20  	send      SendInterface
    21  }
    22  
    23  func newPods(namespace string, s SendInterface) *pods {
    24  	return &pods{
    25  		send:      s,
    26  		namespace: namespace,
    27  	}
    28  }
    29  
    30  func (c *pods) Create(cm *api.Pod) (*api.Pod, error) {
    31  	return nil, nil
    32  }
    33  
    34  func (c *pods) Update(cm *api.Pod) error {
    35  	return nil
    36  }
    37  
    38  func (c *pods) Delete(name string) error {
    39  	return nil
    40  }
    41  
    42  func (c *pods) Get(name string) (*api.Pod, error) {
    43  	return nil, nil
    44  }