Documentation ¶
Index ¶
- func CreateOrUpdateService(cli *kubernetes.Clientset, service *kapi.Service) (*kapi.Service, error)
- func DeleteService(cli *kubernetes.Clientset, name, namespace string) error
- func GetService(cli *kubernetes.Clientset, name, namespace string) (*kapi.Service, error)
- func GetServicePage(cli *kubernetes.Clientset, namespace string, q *backendCommon.QueryParam) (page *backendCommon.Page, err error)
- type Service
- type ServiceCell
- type ServiceDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateService ¶
func DeleteService ¶
func DeleteService(cli *kubernetes.Clientset, name, namespace string) error
func GetService ¶ added in v1.3.0
func GetServicePage ¶ added in v1.3.0
func GetServicePage(cli *kubernetes.Clientset, namespace string, q *backendCommon.QueryParam) (page *backendCommon.Page, err error)
Types ¶
type Service ¶ added in v1.3.0
type Service struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.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 common.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 []common.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 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"` }
func GetServiceList ¶ added in v1.3.0
func GetServiceList(cli *kubernetes.Clientset, namespace string, opts metaV1.ListOptions) (list []Service, err error)
type ServiceCell ¶ added in v1.3.0
type ServiceCell Service
func (ServiceCell) GetProperty ¶ added in v1.3.0
func (self ServiceCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
type ServiceDetail ¶ added in v1.3.0
type ServiceDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // InternalEndpoint of all Kubernetes services that have the same label selector as connected Replication // Controller. Endpoints is DNS name merged with ports. InternalEndpoint common.Endpoint `json:"internalEndpoint"` // ExternalEndpoints of all Kubernetes services that have the same label selector as connected Replication // Controller. Endpoints is external IP address name merged with ports. ExternalEndpoints []common.Endpoint `json:"externalEndpoints"` // List of Endpoint obj. that are endpoints of this Service. EndpointList []endpoint.Endpoint `json:"endpointList"` // Label selector of the service. Selector map[string]string `json:"selector"` // Type determines how the service will be exposed. Valid options: ClusterIP, NodePort, LoadBalancer 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"` // List of events related to this Service EventList []common.Event `json:"eventList"` // PodInfos represents list of pods status targeted by same label selector as this service. PodList []*v1.Pod `json:"podList"` // Show the value of the SessionAffinity of the Service. SessionAffinity v1.ServiceAffinity `json:"sessionAffinity"` }
func GetServiceDetail ¶
func GetServiceDetail(cli *kubernetes.Clientset, indexer *client.CacheFactory, namespace, name string) (*ServiceDetail, error)
Click to show internal directories.
Click to hide internal directories.