Documentation ¶
Index ¶
- Variables
- func GetClientSet() *kubernetes.Clientset
- func GetClusterName() string
- func GetConfigPath() string
- type CronJobHandler
- type CronJobResource
- type DaemonSetHandler
- type DaemonSetResource
- type DeploymentHandler
- type DeploymentResource
- type IngressHandler
- type IngressResource
- type JobHandler
- type JobResource
- type NamespacedResource
- type NodeHandler
- type NodeResource
- type PodHandler
- type PodResource
- type ReplicaSetHandler
- type ReplicaSetResource
- type ResourceHandler
- type ResourceInstance
- type ResourceSelector
- type ResourceType
- type StatefulSetHandler
- type StatefulSetResource
Constants ¶
This section is empty.
Variables ¶
View Source
var Resources = [...]ResourceType{ Pod, Deployment, ReplicaSet, StatefulSet, DaemonSet, Job, CronJob, Ingress, }
Functions ¶
func GetClientSet ¶
func GetClientSet() *kubernetes.Clientset
func GetClusterName ¶
func GetClusterName() string
func GetConfigPath ¶
func GetConfigPath() string
Types ¶
type CronJobHandler ¶
type CronJobHandler struct {
// contains filtered or unexported fields
}
func (CronJobHandler) Columns ¶
func (_ CronJobHandler) Columns() []table.Column
func (CronJobHandler) List ¶
func (ph CronJobHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type CronJobResource ¶
func (CronJobResource) ResourceName ¶
func (pr CronJobResource) ResourceName() string
func (CronJobResource) ResourceNamespace ¶
func (pr CronJobResource) ResourceNamespace() string
func (CronJobResource) Values ¶
func (pr CronJobResource) Values() []string
type DaemonSetHandler ¶
type DaemonSetHandler struct {
// contains filtered or unexported fields
}
func (DaemonSetHandler) Columns ¶
func (_ DaemonSetHandler) Columns() []table.Column
func (DaemonSetHandler) List ¶
func (ph DaemonSetHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type DaemonSetResource ¶
func (DaemonSetResource) ResourceName ¶
func (pr DaemonSetResource) ResourceName() string
func (DaemonSetResource) ResourceNamespace ¶
func (pr DaemonSetResource) ResourceNamespace() string
func (DaemonSetResource) Values ¶
func (pr DaemonSetResource) Values() []string
type DeploymentHandler ¶
type DeploymentHandler struct{}
func (DeploymentHandler) Columns ¶
func (_ DeploymentHandler) Columns() []table.Column
func (DeploymentHandler) List ¶
func (DeploymentHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type DeploymentResource ¶
type DeploymentResource v1.Deployment
func (DeploymentResource) ResourceName ¶
func (dr DeploymentResource) ResourceName() string
func (DeploymentResource) ResourceNamespace ¶
func (dr DeploymentResource) ResourceNamespace() string
func (DeploymentResource) Values ¶
func (dr DeploymentResource) Values() []string
type IngressHandler ¶
type IngressHandler struct {
// contains filtered or unexported fields
}
func (IngressHandler) Columns ¶
func (_ IngressHandler) Columns() []table.Column
func (IngressHandler) List ¶
func (IngressHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type IngressResource ¶
func (IngressResource) ResourceName ¶
func (ir IngressResource) ResourceName() string
func (IngressResource) ResourceNamespace ¶
func (ir IngressResource) ResourceNamespace() string
func (IngressResource) Values ¶
func (ir IngressResource) Values() []string
type JobHandler ¶
type JobHandler struct {
// contains filtered or unexported fields
}
func (JobHandler) Columns ¶
func (_ JobHandler) Columns() []table.Column
func (JobHandler) List ¶
func (ph JobHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type JobResource ¶
func (JobResource) ResourceName ¶
func (pr JobResource) ResourceName() string
func (JobResource) ResourceNamespace ¶
func (pr JobResource) ResourceNamespace() string
func (JobResource) Values ¶
func (pr JobResource) Values() []string
type NamespacedResource ¶
type NamespacedResource interface { ResourceInstance ResourceNamespace() string }
type NodeHandler ¶
type NodeHandler struct{}
func (NodeHandler) List ¶
func (NodeHandler) List( clientset *kubernetes.Clientset, ) ([]NodeResource, error)
type NodeResource ¶
func (NodeResource) Values ¶
func (nr NodeResource) Values() []string
type PodHandler ¶
type PodHandler struct {
// contains filtered or unexported fields
}
func (PodHandler) Columns ¶
func (_ PodHandler) Columns() []table.Column
func (PodHandler) List ¶
func (ph PodHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type PodResource ¶
func (PodResource) ResourceName ¶
func (pr PodResource) ResourceName() string
func (PodResource) ResourceNamespace ¶
func (pr PodResource) ResourceNamespace() string
func (PodResource) Values ¶
func (pr PodResource) Values() []string
type ReplicaSetHandler ¶
type ReplicaSetHandler struct {
// contains filtered or unexported fields
}
func (ReplicaSetHandler) Columns ¶
func (_ ReplicaSetHandler) Columns() []table.Column
func (ReplicaSetHandler) List ¶
func (ph ReplicaSetHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type ReplicaSetResource ¶
type ReplicaSetResource v1.ReplicaSet
func (ReplicaSetResource) ResourceName ¶
func (pr ReplicaSetResource) ResourceName() string
func (ReplicaSetResource) ResourceNamespace ¶
func (pr ReplicaSetResource) ResourceNamespace() string
func (ReplicaSetResource) Values ¶
func (pr ReplicaSetResource) Values() []string
type ResourceHandler ¶
type ResourceHandler interface { List(*kubernetes.Clientset, string) ([]ResourceInstance, error) // TODO refactor, we shouldn't depend on bubbles here Columns() []table.Column }
type ResourceInstance ¶
func GetResource ¶
func GetResource( clientset *kubernetes.Clientset, rh ResourceHandler, name, namespace string, ) ResourceInstance
type ResourceSelector ¶
type ResourceType ¶
type ResourceType string
const ( Pod ResourceType = "Pod" Deployment ResourceType = "Deployment" ReplicaSet ResourceType = "ReplicaSet" StatefulSet ResourceType = "StatefulSet" DaemonSet ResourceType = "DaemonSet" Job ResourceType = "Job" CronJob ResourceType = "CronJob" Ingress ResourceType = "Ingress" )
type StatefulSetHandler ¶
type StatefulSetHandler struct {
// contains filtered or unexported fields
}
func (StatefulSetHandler) Columns ¶
func (_ StatefulSetHandler) Columns() []table.Column
func (StatefulSetHandler) List ¶
func (ph StatefulSetHandler) List( clientset *kubernetes.Clientset, namespace string, ) ([]ResourceInstance, error)
type StatefulSetResource ¶
type StatefulSetResource v1.StatefulSet
func (StatefulSetResource) ResourceName ¶
func (pr StatefulSetResource) ResourceName() string
func (StatefulSetResource) ResourceNamespace ¶
func (pr StatefulSetResource) ResourceNamespace() string
func (StatefulSetResource) Values ¶
func (pr StatefulSetResource) Values() []string
Click to show internal directories.
Click to hide internal directories.