Documentation
¶
Index ¶
- Constants
- func GetAuthorizationHeader() string
- func GetTLSClientConfig() *tls.Config
- func Init() error
- type ApiError
- type Client
- type NamespaceClient
- func (c *NamespaceClient) ByName(name string) (*model.Namespace, error)
- func (c *NamespaceClient) CreateNamespace(resource *model.Namespace) (*model.Namespace, error)
- func (c *NamespaceClient) DeleteNamespace(name string) (*model.Status, error)
- func (c *NamespaceClient) ReplaceNamespace(name string, resource *model.Namespace) (*model.Namespace, error)
- type NamespaceOperations
- type NodeClient
- type NodeOperations
- type PodClient
- func (c *PodClient) ByName(namespace string, name string) (*model.Pod, error)
- func (c *PodClient) CreatePod(namespace string, resource *model.Pod) (*model.Pod, error)
- func (c *PodClient) DeletePod(namespace string, name string) (*model.Status, error)
- func (c *PodClient) ReplacePod(namespace string, resource *model.Pod) (*model.Pod, error)
- type PodOperations
- type ReplicationControllerClient
- func (c *ReplicationControllerClient) ByName(namespace string, name string) (*model.ReplicationController, error)
- func (c *ReplicationControllerClient) CreateReplicationController(namespace string, resource *model.ReplicationController) (*model.ReplicationController, error)
- func (c *ReplicationControllerClient) DeleteReplicationController(namespace string, name string) (*model.Status, error)
- func (c *ReplicationControllerClient) ReplaceReplicationController(namespace string, resource *model.ReplicationController) (*model.ReplicationController, error)
- type ReplicationControllerOperations
- type ServiceClient
- func (c *ServiceClient) ByName(namespace string, name string) (*model.Service, error)
- func (c *ServiceClient) CreateService(namespace string, resource *model.Service) (*model.Service, error)
- func (c *ServiceClient) DeleteService(namespace string, name string) (*model.Status, error)
- func (c *ServiceClient) ReplaceService(namespace string, resource *model.Service) (*model.Service, error)
- type ServiceOperations
Constants ¶
View Source
const NamespaceByNamePath string = "/api/v1/namespaces/%s"
View Source
const NamespacePath string = "/api/v1/namespaces/"
View Source
const NodeByNamePath string = "/api/v1/nodes/%s"
View Source
const NodePath string = "/api/v1/nodes"
View Source
const PodByNamePath string = "/api/v1/namespaces/%s/pods/%s"
View Source
const PodPath string = "/api/v1/namespaces/%s/pods"
View Source
const ReplicationControllerByNamePath string = "/api/v1/namespaces/%s/replicationcontrollers/%s"
View Source
const ReplicationControllerPath string = "/api/v1/namespaces/%s/replicationcontrollers"
View Source
const ServiceByNamePath string = "/api/v1/namespaces/%s/services/%s"
View Source
const ServicePath string = "/api/v1/namespaces/%s/services"
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizationHeader ¶ added in v0.6.2
func GetAuthorizationHeader() string
func GetTLSClientConfig ¶ added in v0.6.2
Types ¶
type Client ¶
type Client struct { Pod PodOperations Namespace NamespaceOperations ReplicationController ReplicationControllerOperations Service ServiceOperations Node NodeOperations // contains filtered or unexported fields }
type NamespaceClient ¶
type NamespaceClient struct {
// contains filtered or unexported fields
}
func (*NamespaceClient) ByName ¶
func (c *NamespaceClient) ByName(name string) (*model.Namespace, error)
func (*NamespaceClient) CreateNamespace ¶
func (*NamespaceClient) DeleteNamespace ¶ added in v0.2.2
func (c *NamespaceClient) DeleteNamespace(name string) (*model.Status, error)
func (*NamespaceClient) ReplaceNamespace ¶
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) (*model.Node, error)
func (*NodeClient) CreateNode ¶ added in v0.3.0
func (*NodeClient) DeleteNode ¶ added in v0.3.0
func (c *NodeClient) DeleteNode(name string) (*model.Status, 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 ReplicationControllerClient ¶
type ReplicationControllerClient struct {
// contains filtered or unexported fields
}
func (*ReplicationControllerClient) ByName ¶
func (c *ReplicationControllerClient) ByName(namespace string, name string) (*model.ReplicationController, error)
func (*ReplicationControllerClient) CreateReplicationController ¶
func (c *ReplicationControllerClient) CreateReplicationController(namespace string, resource *model.ReplicationController) (*model.ReplicationController, error)
func (*ReplicationControllerClient) DeleteReplicationController ¶
func (*ReplicationControllerClient) ReplaceReplicationController ¶
func (c *ReplicationControllerClient) ReplaceReplicationController(namespace string, resource *model.ReplicationController) (*model.ReplicationController, error)
type ReplicationControllerOperations ¶
type ReplicationControllerOperations interface { ByName(namespace string, name string) (*model.ReplicationController, error) CreateReplicationController(namespace string, resource *model.ReplicationController) (*model.ReplicationController, error) ReplaceReplicationController(namespace string, resource *model.ReplicationController) (*model.ReplicationController, error) DeleteReplicationController(namespace string, name string) (*model.Status, error) }
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
func (*ServiceClient) CreateService ¶
func (*ServiceClient) DeleteService ¶
func (*ServiceClient) ReplaceService ¶
type ServiceOperations ¶
type ServiceOperations interface { ByName(namespace string, name string) (*model.Service, error) CreateService(namespace string, resource *model.Service) (*model.Service, error) ReplaceService(namespace string, resource *model.Service) (*model.Service, error) DeleteService(namespace string, name string) (*model.Status, error) }
Click to show internal directories.
Click to hide internal directories.