Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
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 api.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 ServiceDetail ¶
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. 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 api.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"` // PodList represents list of pods targeted by same label selector as this service. PodList pod.PodList `json:"podList"` }
Service is a representation of a service.
func GetServiceDetail ¶
func GetServiceDetail(client k8sClient.Interface, heapsterClient client.HeapsterClient, namespace, name string) (*ServiceDetail, error)
GetServiceDetail gets service details.
func ToServiceDetail ¶
func ToServiceDetail(service *api.Service) ServiceDetail
ToServiceDetail returns api service object based on kubernetes service object
type ServiceList ¶
type ServiceList struct { // Unordered list of services. Services []Service `json:"services"` }
ServiceList contains a list of services in the cluster.
func GetServiceList ¶
func GetServiceList(client client.Interface, nsQuery *common.NamespaceQuery) (*ServiceList, error)
GetServiceList returns a list of all services in the cluster.
func GetServiceListFromChannels ¶
func GetServiceListFromChannels(channels *common.ResourceChannels) (*ServiceList, error)
GetServiceListFromChannels returns a list of all services in the cluster.
Click to show internal directories.
Click to hide internal directories.