Documentation ¶
Index ¶
- func GetK8sClientSet(apiURL string) *kubernetes.Clientset
- type Client
- type NamespaceClient
- type NamespaceOperations
- type NodeClient
- type NodeOperations
- type PodClient
- type PodOperations
- type ServiceClient
- func (c *ServiceClient) ByName(namespace string, name string) (*v1.Service, error)
- func (c *ServiceClient) CreateService(namespace string, resource *v1.Service) (*v1.Service, error)
- func (c *ServiceClient) DeleteService(namespace string, name string) error
- func (c *ServiceClient) ReplaceService(namespace string, resource *v1.Service) (*v1.Service, error)
- type ServiceOperations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetK8sClientSet ¶ added in v0.6.6
func GetK8sClientSet(apiURL string) *kubernetes.Clientset
Types ¶
type Client ¶
type Client struct { K8sClient *kubernetes.Clientset Pod PodOperations Namespace NamespaceOperations Service ServiceOperations Node NodeOperations }
type NamespaceClient ¶
type NamespaceClient struct {
// contains filtered or unexported fields
}
func (*NamespaceClient) ByName ¶
func (c *NamespaceClient) ByName(name string) (*v1.Namespace, error)
func (*NamespaceClient) CreateNamespace ¶
func (*NamespaceClient) DeleteNamespace ¶ added in v0.2.2
func (c *NamespaceClient) DeleteNamespace(name string) error
type NamespaceOperations ¶
type NodeClient ¶ added in v0.3.0
type NodeClient struct {
// contains filtered or unexported fields
}
func (*NodeClient) ByName ¶ added in v0.3.0
func (c *NodeClient) ByName(name string) (*v1.Node, error)
func (*NodeClient) ReplaceNode ¶ added in v0.3.0
type NodeOperations ¶ added in v0.3.0
type PodClient ¶
type PodClient struct {
// contains filtered or unexported fields
}
type PodOperations ¶
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
func (*ServiceClient) CreateService ¶
func (*ServiceClient) DeleteService ¶
func (c *ServiceClient) DeleteService(namespace string, name string) error
func (*ServiceClient) ReplaceService ¶
type ServiceOperations ¶
Click to show internal directories.
Click to hide internal directories.