- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for printJob (0.22 sec)
-
pkg/printers/internalversion/printers.go
rows := make([]metav1.TableRow, 0, len(podList.Items)) for i := range podList.Items { r, err := printPod(&podList.Items[i], options) if err != nil { return nil, err } rows = append(rows, r...) } return rows, nil } func printPod(pod *api.Pod, options printers.GenerateOptions) ([]metav1.TableRow, error) { restarts := 0 restartableInitContainerRestarts := 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 128.3K bytes - Viewed (0) -
pkg/printers/internalversion/printers_test.go
// Columns: Name, Status, Completions, Duration, Age expected: []metav1.TableRow{{Cells: []interface{}{"job9", "Terminating", "0/1", "", "0s"}}}, }, } for i, test := range tests { rows, err := printJob(&test.job, test.options) if err != nil { t.Fatal(err) } for i := range rows { rows[i].Object.Object = nil } if !reflect.DeepEqual(test.expected, rows) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 218.6K bytes - Viewed (0) -
pkg/scheduler/internal/cache/debugger/dumper.go
for _, p := range n.Pods { nodeData.WriteString(printPod(p.Pod)) } // Dumping nominated pods info on the node nominatedPodInfos := d.podQueue.NominatedPodsForNode(name) if len(nominatedPodInfos) != 0 { nodeData.WriteString(fmt.Sprintf("Nominated Pods(number: %v):\n", len(nominatedPodInfos))) for _, pi := range nominatedPodInfos { nodeData.WriteString(printPod(pi.Pod)) } } return nodeData.String() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 05:26:32 UTC 2023 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/interface.go
// PrintObj implements ResourcePrinter func (fn ResourcePrinterFunc) PrintObj(obj runtime.Object, w io.Writer) error { return fn(obj, w) } // ResourcePrinter is an interface that knows how to print runtime objects. type ResourcePrinter interface { // PrintObj receives a runtime object, formats it and prints it to a writer. PrintObj(runtime.Object, io.Writer) error }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:36:07 UTC 2022 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/typesetter.go
} // PrintObj is an implementation of ResourcePrinter.PrintObj which sets type information on the obj for the duration // of printing. It is NOT threadsafe. func (p *TypeSetterPrinter) PrintObj(obj runtime.Object, w io.Writer) error { if obj == nil { return p.Delegate.PrintObj(obj, w) } if !obj.GetObjectKind().GroupVersionKind().Empty() { return p.Delegate.PrintObj(obj, w) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 23:00:24 UTC 2019 - 2.6K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-printers.h
inline void PrintTo(const signed char* s, ::std::ostream* os) { PrintTo(ImplicitCast_<const void*>(s), os); } inline void PrintTo(signed char* s, ::std::ostream* os) { PrintTo(ImplicitCast_<const void*>(s), os); } inline void PrintTo(const unsigned char* s, ::std::ostream* os) { PrintTo(ImplicitCast_<const void*>(s), os); } inline void PrintTo(unsigned char* s, ::std::ostream* os) { PrintTo(ImplicitCast_<const void*>(s), os); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 30.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/json.go
"k8s.io/apimachinery/pkg/runtime" ) // JSONPrinter is an implementation of ResourcePrinter which outputs an object as JSON. type JSONPrinter struct{} // PrintObj is an implementation of ResourcePrinter.PrintObj which simply writes the object to the Writer. func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error { // we use reflect.Indirect here in order to obtain the actual value from a pointer.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 11:23:25 UTC 2021 - 2.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/output/output.go
if err != nil { return nil, err } return &ResourcePrinterWrapper{Printer: resourcePrinter}, nil } // PrintObj is an implementation of ResourcePrinter.PrintObj that calls underlying printer API func (rpw *ResourcePrinterWrapper) PrintObj(obj runtime.Object, writer io.Writer) error { return rpw.Printer.PrintObj(obj, writer) } // Fprintf is an empty method to satisfy Printer interface
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 08:22:45 UTC 2024 - 8K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/text/StyledTable.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 22 21:03:24 UTC 2022 - 4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/managedfields.go
return o } a.SetManagedFields(nil) return o } // PrintObj copies the object and omits the managed fields from the copied object before printing it. func (p *OmitManagedFieldsPrinter) PrintObj(obj runtime.Object, w io.Writer) error { if obj == nil { return p.Delegate.PrintObj(obj, w) } if meta.IsListType(obj) { obj = obj.DeepCopyObject()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 16 14:52:03 UTC 2021 - 1.6K bytes - Viewed (0)