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

package describe

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

Index

Package Files

interface.go

Constants

const (
    // LoadBalancerWidth is the width how we describe load balancer
    LoadBalancerWidth = 16

    // LabelNodeRolePrefix is a label prefix for node roles
    // It's copied over to here until it's merged in core: https://github.com/kubernetes/kubernetes/pull/39112
    LabelNodeRolePrefix = "node-role.kubernetes.io/"

    // NodeLabelRole specifies the role of a node
    NodeLabelRole = "kubernetes.io/role"
)

type Describer Uses

type Describer interface {
    Describe(namespace, name string, describerSettings DescriberSettings) (output string, err error)
}

Describer generates output for the named resource or an error if the output could not be generated. Implementers typically abstract the retrieval of the named object from a remote server.

type DescriberFunc Uses

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

DescriberFunc gives a way to display the specified RESTMapping type

type DescriberSettings Uses

type DescriberSettings struct {
    ShowEvents bool
}

DescriberSettings holds display configuration for each object describer to control what is printed.

type ErrNoDescriber Uses

type ErrNoDescriber struct {
    Types []string
}

ErrNoDescriber is a structured error indicating the provided object or objects cannot be described.

func (ErrNoDescriber) Error Uses

func (e ErrNoDescriber) Error() string

Error implements the error interface.

type ObjectDescriber Uses

type ObjectDescriber interface {
    DescribeObject(object interface{}, extra ...interface{}) (output string, err error)
}

ObjectDescriber is an interface for displaying arbitrary objects with extra information. Use when an object is in hand (on disk, or already retrieved). Implementers may ignore the additional information passed on extra, or use it by default. ObjectDescribers may return ErrNoDescriber if no suitable describer is found.

Directories

PathSynopsis
versioned

Package describe imports 3 packages (graph) and is imported by 20 packages. Updated 2019-07-19. Refresh now. Tools for package owners.