- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for func (0.03 sec)
-
schema/utils.go
} else if k != "" { settings[k] = k } } return settings } func toColumns(val string) (results []string) { if val != "" { for _, v := range strings.Split(val, ",") { results = append(results, strings.TrimSpace(v)) } } return } func removeSettingFromTag(tag reflect.StructTag, names ...string) reflect.StructTag { for _, name := range names {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sat Aug 19 13:35:14 UTC 2023 - 5.5K bytes - Viewed (0) -
utils/tests/utils.go
} got := rv.FieldByName(name).Interface() expect := ev.FieldByName(name).Interface() t.Run(name, func(t *testing.T) { AssertEqual(t, got, expect) }) } } func AssertEqual(t *testing.T, got, expect interface{}) { if !reflect.DeepEqual(got, expect) { isEqual := func() { if curTime, ok := got.(time.Time); ok { format := "2006-01-02T15:04:05Z07:00"
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Mar 10 09:21:56 UTC 2023 - 3.9K bytes - Viewed (0) -
security/pkg/k8s/chiron/utils.go
// GenKeyCertK8sCA : Generates a key pair and gets public certificate signed by K8s_CA // Options are meant to sign DNS certs // 1. Generate a CSR // 2. Call SignCSRK8s to finish rest of the flow func GenKeyCertK8sCA(client clientset.Interface, dnsName, caFilePath string, signerName string, approveCsr bool, requestedLifetime time.Duration, ) ([]byte, []byte, []byte, error) { // 1. Generate a CSR options := util.CertOptions{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 18:11:22 UTC 2024 - 9.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/utils.go
schema "k8s.io/apimachinery/pkg/runtime/schema" ) // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no // apply configuration type exists for the given GroupVersionKind. func ForKind(kind schema.GroupVersionKind) interface{} { switch kind { // Group=cr.example.apiextensions.k8s.io, Version=v1 case v1.SchemeGroupVersion.WithKind("Example"): return &crv1.ExampleApplyConfiguration{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 10 10:01:37 UTC 2023 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/utils.go
schema "k8s.io/apimachinery/pkg/runtime/schema" ) // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no // apply configuration type exists for the given GroupVersionKind. func ForKind(kind schema.GroupVersionKind) interface{} { switch kind { // Group=apiextensions.k8s.io, Version=v1 case v1.SchemeGroupVersion.WithKind("CustomResourceColumnDefinition"):
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 6.2K bytes - Viewed (0)