Documentation
¶
Index ¶
- func NewValidationError(msg string) error
- type PodService
- func (s *PodService) Create(namespace string, pod *corev1.Pod) (*corev1.Pod, error)
- func (s *PodService) Delete(namespace, name string) error
- func (s *PodService) Get(namespace, name string) (*corev1.Pod, error)
- func (s *PodService) List(namespace, selector string, limit int64) (*corev1.PodList, error)
- func (s *PodService) Update(namespace string, pod *corev1.Pod) (*corev1.Pod, error)
- func (s *PodService) Watch(namespace, selector string) (watch.Interface, error)
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidationError ¶
Types ¶
type PodService ¶
type PodService struct {
// contains filtered or unexported fields
}
func NewPodService ¶
func NewPodService(client kubernetes.Interface) *PodService
func (*PodService) Get ¶
func (s *PodService) Get(namespace, name string) (*corev1.Pod, error)
获取单个Pod
type ValidationError ¶
type ValidationError struct {
Message string
}
自定义错误类型
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.