Documentation ¶
Overview ¶
Copyright The Pharmer 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.
Copyright The Pharmer 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 ¶
- func GetNewTabWriter(output io.Writer) *tabwriter.Writer
- func NewEditPrinter(format string) (*editPrinterOptions, error)
- func NewPrinter(format string) (printers.ResourcePrinter, error)
- func PrintNewline(w io.Writer) error
- func ShortHumanDuration(d time.Duration) string
- func TranslateTimestamp(timestamp metav1.Time) string
- type HumanReadablePrinter
- func (h *HumanReadablePrinter) AfterPrint(io.Writer, string) error
- func (h *HumanReadablePrinter) HandledResources() []string
- func (h *HumanReadablePrinter) Handler(printFunc interface{}) error
- func (h *HumanReadablePrinter) IsGeneric() bool
- func (h *HumanReadablePrinter) PrintHeader(enable bool)
- func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error
- type PrintOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEditPrinter ¶
func NewPrinter ¶
func NewPrinter(format string) (printers.ResourcePrinter, error)
func PrintNewline ¶
func ShortHumanDuration ¶
func TranslateTimestamp ¶
Types ¶
type HumanReadablePrinter ¶
type HumanReadablePrinter struct {
// contains filtered or unexported fields
}
func NewHumanReadablePrinter ¶
func NewHumanReadablePrinter(options PrintOptions) *HumanReadablePrinter
func (*HumanReadablePrinter) AfterPrint ¶
func (h *HumanReadablePrinter) AfterPrint(io.Writer, string) error
func (*HumanReadablePrinter) HandledResources ¶
func (h *HumanReadablePrinter) HandledResources() []string
func (*HumanReadablePrinter) Handler ¶
func (h *HumanReadablePrinter) Handler(printFunc interface{}) error
func (*HumanReadablePrinter) IsGeneric ¶
func (h *HumanReadablePrinter) IsGeneric() bool
func (*HumanReadablePrinter) PrintHeader ¶
func (h *HumanReadablePrinter) PrintHeader(enable bool)
type PrintOptions ¶
type PrintOptions struct {
Wide bool
}