Documentation
¶
Index ¶
- Constants
- Variables
- func AddDefaultHandlers(h printers.PrintHandler)
- func AddHandlers(h printers.PrintHandler)
- func DescribableResources() []string
- func DescribeEvents(el *api.EventList, w PrefixWriter)
- func DescribeLimitRanges(limitRanges *api.LimitRangeList, w PrefixWriter)
- func DescribePodTemplate(template *api.PodTemplateSpec, w PrefixWriter)
- func DescribeProbe(probe *api.Probe) string
- func DescribeResourceQuotas(quotas *api.ResourceQuotaList, w PrefixWriter)
- func DescriberFor(kind schema.GroupKind, c clientset.Interface) (printers.Describer, bool)
- func GenericDescriberFor(mapping *meta.RESTMapping, dynamic dynamic.Interface, ...) printers.Describer
- func SortedResourceNames(list api.ResourceList) []api.ResourceName
- type CertificateSigningRequestDescriber
- type ClusterRoleBindingDescriber
- type ClusterRoleDescriber
- type ConfigMapDescriber
- type CronJobDescriber
- type DaemonSetDescriber
- type DeploymentDescriber
- type Describers
- type EndpointsDescriber
- type EnvVarResolverFunc
- type HorizontalPodAutoscalerDescriber
- type IngressDescriber
- type JobDescriber
- type LimitRangeDescriber
- type NamespaceDescriber
- type NetworkPolicyDescriber
- type NodeDescriber
- type PersistentVolumeClaimDescriber
- type PersistentVolumeDescriber
- type PodDescriber
- type PodDisruptionBudgetDescriber
- type PodSecurityPolicyDescriber
- type PrefixWriter
- type PriorityClassDescriber
- type ReplicaSetDescriber
- type ReplicationControllerDescriber
- type ResourceQuotaDescriber
- type RoleBindingDescriber
- type RoleDescriber
- type SecretDescriber
- type ServiceAccountDescriber
- type ServiceDescriber
- type SortableResourceNames
- type SortableResourceQuotas
- type SortableVolumeDevices
- type SortableVolumeMounts
- type StatefulSetDescriber
- type StorageClassDescriber
Constants ¶
const (
LEVEL_0 = iota
LEVEL_1
LEVEL_2
LEVEL_3
)
Each level has 2 spaces for PrefixWriter
Variables ¶
var DefaultObjectDescriber printers.ObjectDescriber
DefaultObjectDescriber can describe the default Kubernetes objects.
Functions ¶
func AddDefaultHandlers ¶ added in v1.8.0
func AddDefaultHandlers(h printers.PrintHandler)
AddDefaultHandlers adds handlers that can work with most Kubernetes objects.
func AddHandlers ¶
func AddHandlers(h printers.PrintHandler)
AddHandlers adds print handlers for default Kubernetes types dealing with internal versions. TODO: handle errors from Handler
func DescribableResources ¶
func DescribableResources() []string
DescribableResources lists all resource types we can describe.
func DescribeEvents ¶
func DescribeEvents(el *api.EventList, w PrefixWriter)
func DescribeLimitRanges ¶
func DescribeLimitRanges(limitRanges *api.LimitRangeList, w PrefixWriter)
DescribeLimitRanges merges a set of limit range items into a single tabular description
func DescribePodTemplate ¶
func DescribePodTemplate(template *api.PodTemplateSpec, w PrefixWriter)
func DescribeProbe ¶
func DescribeProbe(probe *api.Probe) string
DescribeProbe is exported for consumers in other API groups that have probes
func DescribeResourceQuotas ¶
func DescribeResourceQuotas(quotas *api.ResourceQuotaList, w PrefixWriter)
DescribeResourceQuotas merges a set of quota items into a single tabular description of all quotas
func DescriberFor ¶
func DescriberFor(kind schema.GroupKind, c clientset.Interface) (printers.Describer, bool)
DescriberFor returns the default describe functions for each of the standard Kubernetes types.
func GenericDescriberFor ¶
func GenericDescriberFor(mapping *meta.RESTMapping, dynamic dynamic.Interface, events coreclient.EventsGetter) printers.Describer
GenericDescriberFor returns a generic describer for the specified mapping that uses only information available from runtime.Unstructured
func SortedResourceNames ¶
func SortedResourceNames(list api.ResourceList) []api.ResourceName
SortedResourceNames returns the sorted resource names of a resource list.
Types ¶
type CertificateSigningRequestDescriber ¶
type CertificateSigningRequestDescriber struct {
// contains filtered or unexported fields
}
type ClusterRoleBindingDescriber ¶ added in v1.7.0
type ClusterRoleBindingDescriber struct {
clientset.Interface
}
ClusterRoleBindingDescriber generates information about a node.
type ClusterRoleDescriber ¶ added in v1.7.0
type ClusterRoleDescriber struct {
clientset.Interface
}
ClusterRoleDescriber generates information about a node.
type ConfigMapDescriber ¶
type ConfigMapDescriber struct {
clientset.Interface
}
ConfigMapDescriber generates information about a ConfigMap
type CronJobDescriber ¶
type CronJobDescriber struct {
clientset.Interface
}
CronJobDescriber generates information about a cron job and the jobs it has created.
type DaemonSetDescriber ¶
type DaemonSetDescriber struct {
clientset.Interface
}
DaemonSetDescriber generates information about a daemon set and the pods it has created.
type DeploymentDescriber ¶
type DeploymentDescriber struct {
clientset.Interface
// contains filtered or unexported fields
}
DeploymentDescriber generates information about a deployment.
type Describers ¶
type Describers struct {
// contains filtered or unexported fields
}
Describers implements ObjectDescriber against functions registered via Add. Those functions can be strongly typed. Types are exactly matched (no conversion or assignable checks).
func (*Describers) Add ¶
func (d *Describers) Add(fns ...interface{}) error
Add adds one or more describer functions to the printers.Describer. The passed function must match the signature:
func(...) (string, error)
Any number of arguments may be provided.
func (*Describers) DescribeObject ¶
func (d *Describers) DescribeObject(exact interface{}, extra ...interface{}) (string, error)
DescribeObject implements ObjectDescriber and will attempt to print the provided object to a string, if at least one describer function has been registered with the exact types passed, or if any describer can print the exact object in its first argument (the remainder will be provided empty values). If no function registered with Add can satisfy the passed objects, an ErrNoDescriber will be returned TODO: reorder and partial match extra.
type EndpointsDescriber ¶
type EndpointsDescriber struct {
clientset.Interface
}
EndpointsDescriber generates information about an Endpoint.
type EnvVarResolverFunc ¶
type EnvVarResolverFunc func(e api.EnvVar) string
func EnvValueRetriever ¶
func EnvValueRetriever(pod *api.Pod) EnvVarResolverFunc
EnvValueFrom is exported for use by describers in other packages
type HorizontalPodAutoscalerDescriber ¶
type HorizontalPodAutoscalerDescriber struct {
// contains filtered or unexported fields
}
HorizontalPodAutoscalerDescriber generates information about a horizontal pod autoscaler.
type IngressDescriber ¶
type IngressDescriber struct {
clientset.Interface
}
type JobDescriber ¶
type JobDescriber struct {
clientset.Interface
}
JobDescriber generates information about a job and the pods it has created.
type LimitRangeDescriber ¶
type LimitRangeDescriber struct {
clientset.Interface
}
LimitRangeDescriber generates information about a limit range
type NamespaceDescriber ¶
type NamespaceDescriber struct {
clientset.Interface
}
NamespaceDescriber generates information about a namespace
type NetworkPolicyDescriber ¶
type NetworkPolicyDescriber struct {
clientset.Interface
}
NetworkPolicyDescriber generates information about a networking.NetworkPolicy
type NodeDescriber ¶
type NodeDescriber struct {
clientset.Interface
}
NodeDescriber generates information about a node.
type PersistentVolumeClaimDescriber ¶
type PersistentVolumeClaimDescriber struct {
clientset.Interface
}
type PersistentVolumeDescriber ¶
type PersistentVolumeDescriber struct {
clientset.Interface
}
type PodDescriber ¶
type PodDescriber struct {
clientset.Interface
}
PodDescriber generates information about a pod and the replication controllers that create it.
type PodDisruptionBudgetDescriber ¶
type PodDisruptionBudgetDescriber struct {
clientset.Interface
}
type PodSecurityPolicyDescriber ¶ added in v1.8.0
type PodSecurityPolicyDescriber struct {
clientset.Interface
}
PodSecurityPolicyDescriber generates information about a PodSecurityPolicy.
type PrefixWriter ¶
type PrefixWriter interface {
// Write writes text with the specified indentation level.
Write(level int, format string, a ...interface{})
// WriteLine writes an entire line with no indentation level.
WriteLine(a ...interface{})
// Flush forces indendation to be reset.
Flush()
}
PrefixWriter can write text at various indentation levels.
func NewPrefixWriter ¶ added in v1.7.0
func NewPrefixWriter(out io.Writer) PrefixWriter
NewPrefixWriter creates a new PrefixWriter.
type PriorityClassDescriber ¶ added in v1.8.0
type PriorityClassDescriber struct {
clientset.Interface
}
PriorityClassDescriber generates information about a PriorityClass.
type ReplicaSetDescriber ¶
type ReplicaSetDescriber struct {
clientset.Interface
}
ReplicaSetDescriber generates information about a ReplicaSet and the pods it has created.
type ReplicationControllerDescriber ¶
type ReplicationControllerDescriber struct {
clientset.Interface
}
ReplicationControllerDescriber generates information about a replication controller and the pods it has created.
type ResourceQuotaDescriber ¶
type ResourceQuotaDescriber struct {
clientset.Interface
}
ResourceQuotaDescriber generates information about a resource quota
type RoleBindingDescriber ¶ added in v1.7.0
type RoleBindingDescriber struct {
clientset.Interface
}
RoleBindingDescriber generates information about a node.
type RoleDescriber ¶ added in v1.7.0
type RoleDescriber struct {
clientset.Interface
}
RoleDescriber generates information about a node.
type SecretDescriber ¶
type SecretDescriber struct {
clientset.Interface
}
SecretDescriber generates information about a secret
type ServiceAccountDescriber ¶
type ServiceAccountDescriber struct {
clientset.Interface
}
ServiceAccountDescriber generates information about a service.
type ServiceDescriber ¶
type ServiceDescriber struct {
clientset.Interface
}
ServiceDescriber generates information about a service.
type SortableResourceNames ¶
type SortableResourceNames []api.ResourceName
type SortableResourceQuotas ¶
type SortableResourceQuotas []api.ResourceQuota
type SortableVolumeDevices ¶ added in v1.9.0
type SortableVolumeDevices []api.VolumeDevice
type SortableVolumeMounts ¶
type SortableVolumeMounts []api.VolumeMount
type StatefulSetDescriber ¶
type StatefulSetDescriber struct {
// contains filtered or unexported fields
}
type StorageClassDescriber ¶
type StorageClassDescriber struct {
clientset.Interface
}