kubernetes: k8s.io/kubernetes/pkg/kubectl/describe/versioned Index | Files

package versioned

import "k8s.io/kubernetes/pkg/kubectl/describe/versioned"

Index

Package Files

describe.go

Constants

const (
    LEVEL_0 = iota
    LEVEL_1
    LEVEL_2
    LEVEL_3
)

Each level has 2 spaces for PrefixWriter

Variables

var DefaultObjectDescriber describe.ObjectDescriber

DefaultObjectDescriber can describe the default Kubernetes objects.

var DescriberFn describe.DescriberFunc = Describer

DescriberFn gives a way to easily override the function for unit testing if needed

func CombineResourceGroup Uses

func CombineResourceGroup(resource, group []string) string

func DescribeEvents Uses

func DescribeEvents(el *corev1.EventList, w PrefixWriter)

func DescribeLimitRanges Uses

func DescribeLimitRanges(limitRanges *corev1.LimitRangeList, w PrefixWriter)

DescribeLimitRanges merges a set of limit range items into a single tabular description

func DescribePodTemplate Uses

func DescribePodTemplate(template *corev1.PodTemplateSpec, w PrefixWriter)

func DescribeProbe Uses

func DescribeProbe(probe *corev1.Probe) string

DescribeProbe is exported for consumers in other API groups that have probes

func DescribeResourceQuotas Uses

func DescribeResourceQuotas(quotas *corev1.ResourceQuotaList, w PrefixWriter)

DescribeResourceQuotas merges a set of quota items into a single tabular description of all quotas

func Describer Uses

func Describer(restClientGetter genericclioptions.RESTClientGetter, mapping *meta.RESTMapping) (describe.Describer, error)

Describer returns a Describer for displaying the specified RESTMapping type or an error.

func DescriberFor Uses

func DescriberFor(kind schema.GroupKind, clientConfig *rest.Config) (describe.Describer, bool)

DescriberFor returns the default describe functions for each of the standard Kubernetes types.

func GenericDescriberFor Uses

func GenericDescriberFor(mapping *meta.RESTMapping, clientConfig *rest.Config) (describe.Describer, bool)

GenericDescriberFor returns a generic describer for the specified mapping that uses only information available from runtime.Unstructured

func SortedResourceNames Uses

func SortedResourceNames(list corev1.ResourceList) []corev1.ResourceName

SortedResourceNames returns the sorted resource names of a resource list.

type CertificateSigningRequestDescriber Uses

type CertificateSigningRequestDescriber struct {
    // contains filtered or unexported fields
}

func (*CertificateSigningRequestDescriber) Describe Uses

func (p *CertificateSigningRequestDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ClusterRoleBindingDescriber Uses

type ClusterRoleBindingDescriber struct {
    clientset.Interface
}

ClusterRoleBindingDescriber generates information about a node.

func (*ClusterRoleBindingDescriber) Describe Uses

func (d *ClusterRoleBindingDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ClusterRoleDescriber Uses

type ClusterRoleDescriber struct {
    clientset.Interface
}

ClusterRoleDescriber generates information about a node.

func (*ClusterRoleDescriber) Describe Uses

func (d *ClusterRoleDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ConfigMapDescriber Uses

type ConfigMapDescriber struct {
    clientset.Interface
}

ConfigMapDescriber generates information about a ConfigMap

func (*ConfigMapDescriber) Describe Uses

func (d *ConfigMapDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type CronJobDescriber Uses

type CronJobDescriber struct {
    // contains filtered or unexported fields
}

CronJobDescriber generates information about a cron job and the jobs it has created.

func (*CronJobDescriber) Describe Uses

func (d *CronJobDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type DaemonSetDescriber Uses

type DaemonSetDescriber struct {
    clientset.Interface
}

DaemonSetDescriber generates information about a daemon set and the pods it has created.

func (*DaemonSetDescriber) Describe Uses

func (d *DaemonSetDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type DeploymentDescriber Uses

type DeploymentDescriber struct {
    // contains filtered or unexported fields
}

DeploymentDescriber generates information about a deployment.

func (*DeploymentDescriber) Describe Uses

func (dd *DeploymentDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type Describers Uses

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 Uses

func (d *Describers) Add(fns ...interface{}) error

Add adds one or more describer functions to the describe.Describer. The passed function must match the signature:

func(...) (string, error)

Any number of arguments may be provided.

func (*Describers) DescribeObject Uses

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 Uses

type EndpointsDescriber struct {
    clientset.Interface
}

EndpointsDescriber generates information about an Endpoint.

func (*EndpointsDescriber) Describe Uses

func (d *EndpointsDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type EnvVarResolverFunc Uses

type EnvVarResolverFunc func(e corev1.EnvVar) string

func EnvValueRetriever Uses

func EnvValueRetriever(pod *corev1.Pod) EnvVarResolverFunc

EnvValueFrom is exported for use by describers in other packages

type HorizontalPodAutoscalerDescriber Uses

type HorizontalPodAutoscalerDescriber struct {
    // contains filtered or unexported fields
}

HorizontalPodAutoscalerDescriber generates information about a horizontal pod autoscaler.

func (*HorizontalPodAutoscalerDescriber) Describe Uses

func (d *HorizontalPodAutoscalerDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type IngressDescriber Uses

type IngressDescriber struct {
    clientset.Interface
}

func (*IngressDescriber) Describe Uses

func (i *IngressDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type JobDescriber Uses

type JobDescriber struct {
    clientset.Interface
}

JobDescriber generates information about a job and the pods it has created.

func (*JobDescriber) Describe Uses

func (d *JobDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type LimitRangeDescriber Uses

type LimitRangeDescriber struct {
    clientset.Interface
}

LimitRangeDescriber generates information about a limit range

func (*LimitRangeDescriber) Describe Uses

func (d *LimitRangeDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type NamespaceDescriber Uses

type NamespaceDescriber struct {
    clientset.Interface
}

NamespaceDescriber generates information about a namespace

func (*NamespaceDescriber) Describe Uses

func (d *NamespaceDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type NetworkPolicyDescriber Uses

type NetworkPolicyDescriber struct {
    clientset.Interface
}

NetworkPolicyDescriber generates information about a networkingv1.NetworkPolicy

func (*NetworkPolicyDescriber) Describe Uses

func (d *NetworkPolicyDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type NodeDescriber Uses

type NodeDescriber struct {
    clientset.Interface
}

NodeDescriber generates information about a node.

func (*NodeDescriber) Describe Uses

func (d *NodeDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type PersistentVolumeClaimDescriber Uses

type PersistentVolumeClaimDescriber struct {
    clientset.Interface
}

func (*PersistentVolumeClaimDescriber) Describe Uses

func (d *PersistentVolumeClaimDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type PersistentVolumeDescriber Uses

type PersistentVolumeDescriber struct {
    clientset.Interface
}

func (*PersistentVolumeDescriber) Describe Uses

func (d *PersistentVolumeDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type PodDescriber Uses

type PodDescriber struct {
    clientset.Interface
}

PodDescriber generates information about a pod and the replication controllers that create it.

func (*PodDescriber) Describe Uses

func (d *PodDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type PodDisruptionBudgetDescriber Uses

type PodDisruptionBudgetDescriber struct {
    clientset.Interface
}

func (*PodDisruptionBudgetDescriber) Describe Uses

func (p *PodDisruptionBudgetDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type PodSecurityPolicyDescriber Uses

type PodSecurityPolicyDescriber struct {
    clientset.Interface
}

PodSecurityPolicyDescriber generates information about a PodSecuritypolicyv1beta1.

func (*PodSecurityPolicyDescriber) Describe Uses

func (d *PodSecurityPolicyDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type PrefixWriter Uses

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 indentation to be reset.
    Flush()
}

PrefixWriter can write text at various indentation levels.

func NewPrefixWriter Uses

func NewPrefixWriter(out io.Writer) PrefixWriter

NewPrefixWriter creates a new PrefixWriter.

type PriorityClassDescriber Uses

type PriorityClassDescriber struct {
    clientset.Interface
}

PriorityClassDescriber generates information about a PriorityClass.

func (*PriorityClassDescriber) Describe Uses

func (s *PriorityClassDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ReplicaSetDescriber Uses

type ReplicaSetDescriber struct {
    clientset.Interface
}

ReplicaSetDescriber generates information about a ReplicaSet and the pods it has created.

func (*ReplicaSetDescriber) Describe Uses

func (d *ReplicaSetDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ReplicationControllerDescriber Uses

type ReplicationControllerDescriber struct {
    clientset.Interface
}

ReplicationControllerDescriber generates information about a replication controller and the pods it has created.

func (*ReplicationControllerDescriber) Describe Uses

func (d *ReplicationControllerDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ResourceQuotaDescriber Uses

type ResourceQuotaDescriber struct {
    clientset.Interface
}

ResourceQuotaDescriber generates information about a resource quota

func (*ResourceQuotaDescriber) Describe Uses

func (d *ResourceQuotaDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type RoleBindingDescriber Uses

type RoleBindingDescriber struct {
    clientset.Interface
}

RoleBindingDescriber generates information about a node.

func (*RoleBindingDescriber) Describe Uses

func (d *RoleBindingDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type RoleDescriber Uses

type RoleDescriber struct {
    clientset.Interface
}

RoleDescriber generates information about a node.

func (*RoleDescriber) Describe Uses

func (d *RoleDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type SecretDescriber Uses

type SecretDescriber struct {
    clientset.Interface
}

SecretDescriber generates information about a secret

func (*SecretDescriber) Describe Uses

func (d *SecretDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ServiceAccountDescriber Uses

type ServiceAccountDescriber struct {
    clientset.Interface
}

ServiceAccountDescriber generates information about a service.

func (*ServiceAccountDescriber) Describe Uses

func (d *ServiceAccountDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type ServiceDescriber Uses

type ServiceDescriber struct {
    clientset.Interface
}

ServiceDescriber generates information about a service.

func (*ServiceDescriber) Describe Uses

func (d *ServiceDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type SortableResourceNames Uses

type SortableResourceNames []corev1.ResourceName

func (SortableResourceNames) Len Uses

func (list SortableResourceNames) Len() int

func (SortableResourceNames) Less Uses

func (list SortableResourceNames) Less(i, j int) bool

func (SortableResourceNames) Swap Uses

func (list SortableResourceNames) Swap(i, j int)

type SortableResourceQuotas Uses

type SortableResourceQuotas []corev1.ResourceQuota

func (SortableResourceQuotas) Len Uses

func (list SortableResourceQuotas) Len() int

func (SortableResourceQuotas) Less Uses

func (list SortableResourceQuotas) Less(i, j int) bool

func (SortableResourceQuotas) Swap Uses

func (list SortableResourceQuotas) Swap(i, j int)

type SortableVolumeDevices Uses

type SortableVolumeDevices []corev1.VolumeDevice

func (SortableVolumeDevices) Len Uses

func (list SortableVolumeDevices) Len() int

func (SortableVolumeDevices) Less Uses

func (list SortableVolumeDevices) Less(i, j int) bool

func (SortableVolumeDevices) Swap Uses

func (list SortableVolumeDevices) Swap(i, j int)

type SortableVolumeMounts Uses

type SortableVolumeMounts []corev1.VolumeMount

func (SortableVolumeMounts) Len Uses

func (list SortableVolumeMounts) Len() int

func (SortableVolumeMounts) Less Uses

func (list SortableVolumeMounts) Less(i, j int) bool

func (SortableVolumeMounts) Swap Uses

func (list SortableVolumeMounts) Swap(i, j int)

type StatefulSetDescriber Uses

type StatefulSetDescriber struct {
    // contains filtered or unexported fields
}

func (*StatefulSetDescriber) Describe Uses

func (p *StatefulSetDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

type StorageClassDescriber Uses

type StorageClassDescriber struct {
    clientset.Interface
}

func (*StorageClassDescriber) Describe Uses

func (s *StorageClassDescriber) Describe(namespace, name string, describerSettings describe.DescriberSettings) (string, error)

Package versioned imports 57 packages (graph) and is imported by 24 packages. Updated 2019-07-19. Refresh now. Tools for package owners.