Documentation ¶
Overview ¶
Package k8sservice manipulates the k8s api of service object
Index ¶
- type Option
- type Service
- func (s *Service) Create(service *apiv1.Service) error
- func (s *Service) Delete(namespace, name string) error
- func (s *Service) Get(namespace, name string) (*apiv1.Service, error)
- func (s *Service) List(namespace string, labelSelector map[string]string) (apiv1.ServiceList, error)
- func (s *Service) Put(service *apiv1.Service) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
Option configures a Service
func WithCompleteParams ¶
func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option
WithCompleteParams provides an Option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the object to manipulate k8s api of service
Click to show internal directories.
Click to hide internal directories.