Documentation
¶
Overview ¶
Copyright 2024 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const (
IndentLevelZero = iota
IndentLevelOne
IndentLevelTwo
IndentLevelThree
)
Each level has 2 spaces for describehelper.PrefixWriter
Variables ¶
This section is empty.
Functions ¶
func NewDescribeCmd ¶
func NewDescribeCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command
Types ¶
type ConfigMapDescriber ¶
type ConfigMapDescriber struct{}
ConfigMapDescriber generates information about a configMap.
type DescribeOptions ¶
type DescribeOptions struct {
AllNamespaces bool
Namespace string
ProfileName string
ModeName string
TaskName string
LabelSelector string
UserSpecifiedTask []string
ResourceGVK schema.GroupVersionKind
ResourceBuilder *resource.Builder
Clientset kubernetes.Interface
genericiooptions.IOStreams
// contains filtered or unexported fields
}
func NewDescribeOptions ¶
func NewDescribeOptions(streams genericiooptions.IOStreams) *DescribeOptions
type JobDescriber ¶
type JobDescriber struct{}
JobDescriber generates information about a job and the pods it has created.
type RayClusterDescriber ¶
type RayClusterDescriber struct{}
RayClusterDescriber generates information about a ray cluster.
type RayJobDescriber ¶
type RayJobDescriber struct{}
RayJobDescriber generates information about a ray job.
type ResourceDescriber ¶
type ResourceDescriber interface {
Describe(object *unstructured.Unstructured) (output string, err error)
}
ResourceDescriber 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.
func DescriberFor ¶
func DescriberFor(kind schema.GroupKind) (ResourceDescriber, bool)
DescriberFor returns the default describe functions for each of the standard Kubernetes types.
func NewResourceDescriber ¶
func NewResourceDescriber(mapping *meta.RESTMapping) (ResourceDescriber, error)
NewResourceDescriber returns a Describer for displaying the specified RESTMapping type or an error.