k8sclient

package
v0.0.0-...-615a20d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL