Documentation ¶
Index ¶
- func DeleteCollectionService(client *kubernetes.Clientset, serviceList []k8s.ServiceData) (err error)
- func DeleteService(client *kubernetes.Clientset, ns string, serviceName string) error
- func GetServiceEvents(client *client.Clientset, dsQuery *dataselect.DataSelectQuery, ...) (*k8scommon.EventList, error)
- func GetServicePods(client *kubernetes.Clientset, namespace, name string, ...) (*pods.PodList, error)
- type Service
- type ServiceCell
- type ServiceDetail
- type ServiceList
- func CreateServiceList(services []v1.Service, dsQuery *dataselect.DataSelectQuery) *ServiceList
- func GetServiceList(client *kubernetes.Clientset, nsQuery *k8scommon.NamespaceQuery, ...) (*ServiceList, error)
- func GetServiceListFromChannels(channels *k8scommon.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*ServiceList, error)
- func GetToService(client *kubernetes.Clientset, namespace string, name string) (*ServiceList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCollectionService ¶
func DeleteCollectionService(client *kubernetes.Clientset, serviceList []k8s.ServiceData) (err error)
func DeleteService ¶
func DeleteService(client *kubernetes.Clientset, ns string, serviceName string) error
func GetServiceEvents ¶
func GetServiceEvents(client *client.Clientset, dsQuery *dataselect.DataSelectQuery, namespace, name string) (*k8scommon.EventList, error)
GetServiceEvents returns model events for a service with the given name in the given namespace.
func GetServicePods ¶
func GetServicePods(client *kubernetes.Clientset, namespace, name string, dsQuery *dataselect.DataSelectQuery) (*pods.PodList, error)
GetServicePods gets list of pods targeted by given label selector in given namespace.
Types ¶
type Service ¶
type Service struct { ObjectMeta k8s.ObjectMeta `json:"objectMeta"` TypeMeta k8s.TypeMeta `json:"typeMeta"` // InternalEndpoint of all Kubernetes services that have the same label selector as connected Replication // Controller. Endpoint is DNS name merged with ports. InternalEndpoint k8scommon.Endpoint `json:"internalEndpoint"` // ExternalEndpoints of all Kubernetes services that have the same label selector as connected Replication // Controller. Endpoint is external IP address name merged with ports. ExternalEndpoints []k8scommon.Endpoint `json:"externalEndpoints"` // Label selector of the service. Selector map[string]string `json:"selector"` // Type determines how the service will be exposed. Valid options: ClusterIP, NodePort, LoadBalancer, ExternalName Type v1.ServiceType `json:"type"` // ClusterIP is usually assigned by the master. Valid values are None, empty string (""), or // a valid IP address. None can be specified for headless services when proxying is not required ClusterIP string `json:"clusterIP"` }
Service is a representation of a service.
type ServiceCell ¶
func (ServiceCell) GetProperty ¶
func (self ServiceCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
type ServiceDetail ¶
type ServiceDetail struct { // Extends list item structure. Service `json:",inline"` // List of Endpoint obj. that are endpoints of this Service. EndpointList endpoint.EndpointList `json:"endpointList"` // Show the value of the SessionAffinity of the Service. SessionAffinity v1.ServiceAffinity `json:"sessionAffinity"` EventList *k8scommon.EventList `json:"eventList"` PodList *pods.PodList `json:"podList"` }
ServiceDetail is a representation of a service.
func GetServiceDetail ¶
func GetServiceDetail(client *kubernetes.Clientset, namespace, name string, dsQuery *dataselect.DataSelectQuery) (*ServiceDetail, error)
GetServiceDetail gets service details.
type ServiceList ¶
type ServiceList struct { ListMeta k8s.ListMeta `json:"listMeta"` // Unordered list of services. Services []Service `json:"services"` }
ServiceList contains a list of services in the cluster.
func CreateServiceList ¶
func CreateServiceList(services []v1.Service, dsQuery *dataselect.DataSelectQuery) *ServiceList
CreateServiceList returns paginated service list based on given service array and pagination query.
func GetServiceList ¶
func GetServiceList(client *kubernetes.Clientset, nsQuery *k8scommon.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*ServiceList, error)
GetServiceList returns a list of all services in the cluster.
func GetServiceListFromChannels ¶
func GetServiceListFromChannels(channels *k8scommon.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*ServiceList, error)
GetServiceListFromChannels returns a list of all services in the cluster.
func GetToService ¶
func GetToService(client *kubernetes.Clientset, namespace string, name string) (*ServiceList, error)
Click to show internal directories.
Click to hide internal directories.