- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,360 for AsObject (0.15 sec)
-
staging/src/k8s.io/apimachinery/pkg/watch/streamwatcher.go
// reporting on a watch stream since this package may not import a higher level report. type Reporter interface { // AsObject must convert err into a valid runtime.Object for the watch stream. AsObject(err error) runtime.Object } // StreamWatcher turns any stream for which you can write a Decoder interface // into a watch.Interface. type StreamWatcher struct { sync.Mutex
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 06 13:42:59 UTC 2021 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/streamwatcher_test.go
} return item.Type, item.Object, nil } func (f fakeDecoder) Close() { if f.items != nil { close(f.items) } } type fakeReporter struct { err error } func (f *fakeReporter) AsObject(err error) runtime.Object { f.err = err return runtime.Unstructured(nil) } func TestStreamWatcher(t *testing.T) { table := []Event{ {Type: Added, Object: testType("foo")}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 06 13:42:59 UTC 2021 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
return &ErrorReporter{ code: code, verb: verb, reason: reason, } } // AsObject returns a valid error runtime.Object (a v1.Status) for the given // error, using the code and verb of the reporter type. The error is set to // indicate that this was an unexpected server response. func (r *ErrorReporter) AsObject(err error) runtime.Object {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblemsSummaryTest.kt
val subject = ConfigurationCacheProblemsSummary(maxCollectedProblems = 2) assertTrue( "1st problem", subject.onProblem(buildLogicProblem("build.gradle", "failure"), ProblemSeverity.Failure) ) assertTrue( "2nd problem (same message as 1st but different location)",
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 2.9K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeleteIntegrationTest.groovy
keep = orig.createFile('keep') subject = testDirectory.createDir('test/subject') remove = subject.createFile("remove") link = subject.file('link') createSymbolicLink(link, orig) assert orig.isDirectory() assert orig.exists() assert subject.isDirectory() assert subject.exists() assert keep.exists() assert remove.exists()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 20 17:44:25 UTC 2019 - 3.3K bytes - Viewed (0) -
pkg/apis/rbac/validation/validation.go
func ValidateRoleBindingSubject(subject rbac.Subject, isNamespaced bool, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(subject.Name) == 0 { allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) } switch subject.Kind { case rbac.ServiceAccountKind: if len(subject.Name) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:48:21 UTC 2022 - 10.4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/MutationGuardsTest.groovy
import spock.lang.Specification import spock.lang.Subject @Subject(MutationGuards) class MutationGuardsTest extends Specification { def "can get mutation guard of guard aware instance"() { given: def subject = Mock(WithMutationGuard) when: MutationGuards.of(subject) then: 1 * subject.getMutationGuard() 0 * subject._ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Aug 31 12:53:33 UTC 2018 - 1.4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/plan/OrdinalGroupFactoryTest.groovy
given: def subject = new OrdinalGroupFactory() when: def g2 = subject.group(2) def g0 = subject.group(0) def g1 = subject.group(1) then: subject.allGroups == [g0, g1, g2] } def 'returns the same group for the same ordinal'() { given: def subject = new OrdinalGroupFactory() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 02 17:42:59 UTC 2022 - 1.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/UnboundRulesProcessorTest.groovy
) } def "creates unbound rules for multiple binders"() { binder { descriptor("firstRule") subjectReference("path.subject.first", String) } binder { descriptor("secondRule") subjectReference("path.subject.second", Number) } expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/RuleSourceBackedRuleActionTest.groovy
@Mutate void theRule(List subject, String input1, Integer input2, Set input3) { subject.add(input1) subject.add(input2) subject.addAll(input3) } } static class ArrayListRuleSource { @Mutate void theRule(ArrayList subject, String input1, Integer input2, Set input3) { subject.add(input1) subject.add(input2)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6.4K bytes - Viewed (0)