- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for UserFacingComponentName (0.24 sec)
-
operator/pkg/util/progress/progress_test.go
t.Fatalf("expected '%v', \ngot '%v'", newExpected, buf.String()) } expected = newExpected } p := NewLog() cnp := name.PilotComponentName cnpo := name.UserFacingComponentName(cnp) cnb := name.IstioBaseComponentName cnbo := name.UserFacingComponentName(cnb) foo := p.NewComponent(string(cnp)) foo.ReportProgress() expect(`- Processing resources for ` + cnpo + `.`) bar := p.NewComponent(string(cnb))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 2.1K bytes - Viewed (0) -
operator/pkg/name/name.go
func TitleCase(n ComponentName) ComponentName { s := string(n) return ComponentName(strings.ToUpper(s[0:1]) + s[1:]) } // UserFacingComponentName returns the name of the given component that should be displayed to the user in high // level CLIs (like progress log). func UserFacingComponentName(name ComponentName) string { ret, ok := userFacingComponentNames[name] if !ok { return "Unknown" } return ret
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 7.9K bytes - Viewed (0) -
operator/pkg/name/name_test.go
n: IstioBaseComponentName, want: "Istio core", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := UserFacingComponentName(tt.n); got != tt.want { t.Errorf("UserFacingComponentName() = %v, want %v", got, tt.want) } }) } } func TestNamespace(t *testing.T) { type args struct { componentName ComponentName
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 05 14:08:11 UTC 2023 - 7.7K bytes - Viewed (0) -
operator/pkg/util/progress/progress.go
func (p *Log) createStatus(maxWidth int) string { comps := make([]string, 0, len(p.components)) wait := make([]string, 0, len(p.components)) for c, l := range p.components { comps = append(comps, name.UserFacingComponentName(name.ComponentName(c))) wait = append(wait, l.waitingResources()...) } sort.Strings(comps) sort.Strings(wait) msg := fmt.Sprintf(`Processing resources for %s.`, strings.Join(comps, ", ")) if len(wait) > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 6.2K bytes - Viewed (0)