Documentation ¶
Index ¶
- type K8sConnector
- func (c *K8sConnector) GetBaseURL() string
- func (c *K8sConnector) GetNamespaceList() (*NamespaceList, error)
- func (c *K8sConnector) GetResourceList() (*ResourceList, error)
- func (c *K8sConnector) GetServiceItemsInNamespace(namespace string, servicename string) ([]*ServiceItem, error)
- func (c *K8sConnector) GetServiceList() (*ServiceList, error)
- func (c *K8sConnector) GetServicesByNamespace() (map[string][]ServiceItem, error)
- func (c *K8sConnector) SetBaseURL(u string) error
- type NamespaceList
- type ResourceList
- type ServiceItem
- type ServiceList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sConnector ¶
type K8sConnector struct {
// contains filtered or unexported fields
}
func NewK8sConnector ¶
func NewK8sConnector(baseURL string) *K8sConnector
func (*K8sConnector) GetBaseURL ¶
func (c *K8sConnector) GetBaseURL() string
func (*K8sConnector) GetNamespaceList ¶
func (c *K8sConnector) GetNamespaceList() (*NamespaceList, error)
func (*K8sConnector) GetResourceList ¶
func (c *K8sConnector) GetResourceList() (*ResourceList, error)
func (*K8sConnector) GetServiceItemsInNamespace ¶
func (c *K8sConnector) GetServiceItemsInNamespace(namespace string, servicename string) ([]*ServiceItem, error)
GetServiceItemsInNamespace returns the ServiceItems that match servicename in the namespace
func (*K8sConnector) GetServiceList ¶
func (c *K8sConnector) GetServiceList() (*ServiceList, error)
func (*K8sConnector) GetServicesByNamespace ¶
func (c *K8sConnector) GetServicesByNamespace() (map[string][]ServiceItem, error)
GetServicesByNamespace returns a map of namespacename :: [ kubernetesServiceItem ]
func (*K8sConnector) SetBaseURL ¶
func (c *K8sConnector) SetBaseURL(u string) error
type NamespaceList ¶
type NamespaceList struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata apiListMetadata `json:"metadata"` Items []nsItems `json:"items"` }
Kubernetes NamespaceList
type ResourceList ¶
type ResourceList struct { Kind string `json:"kind"` GroupVersion string `json:"groupVersion"` Resources []resource `json:"resources"` }
Kubernetes Resource List
type ServiceItem ¶
type ServiceItem struct { Metadata serviceMetadata `json:"metadata"` Spec serviceSpec `json:"spec"` }
type ServiceList ¶
type ServiceList struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata apiListMetadata `json:"metadata"` Items []ServiceItem `json:"items"` }
Kubernetes ServiceList
Click to show internal directories.
Click to hide internal directories.