Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for schemaFor (0.7 sec)

  1. pilot/pkg/config/aggregate/config_test.go

    	store1 := memory.Make(collection.SchemasFor(schemaFor("SomeConfig", "broken message name")))
    
    	stores := []model.ConfigStore{store1}
    
    	store, err := makeStore(stores, nil)
    	g.Expect(err).To(MatchError(ContainSubstring("not found: broken message name")))
    	g.Expect(store).To(BeNil())
    }
    
    func TestAggregateStoreGet(t *testing.T) {
    	g := NewWithT(t)
    
    	store1 := memory.Make(collection.SchemasFor(collections.GatewayClass))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessors.kt

        private
        val schema = Cached.of { schemaOf(project) }
    
        @Suppress("unused")
        @TaskAction
        internal
        fun printExtensions() {
            printAccessorsFor(schema.get()!!)
        }
    
        private
        fun schemaOf(project: Project) =
            projectSchemaProvider.schemaFor(project)
    }
    
    
    internal
    fun printAccessorsFor(schema: TypedProjectSchema) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaProvider.kt

    import org.gradle.internal.service.scopes.ServiceScope
    import org.gradle.kotlin.dsl.*
    import java.io.Serializable
    
    
    @ServiceScope(Scope.UserHome::class)
    interface ProjectSchemaProvider {
    
        fun schemaFor(scriptTarget: Any): TypedProjectSchema?
    }
    
    
    data class SchemaType(val value: TypeOf<*>) {
    
        companion object {
            inline fun <reified T> of() = SchemaType(typeOf<T>())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/DefaultProjectSchemaProvider.kt

    import org.gradle.kotlin.dsl.accessors.TypedProjectSchema
    import java.lang.reflect.Modifier
    import kotlin.reflect.KVisibility
    
    
    class DefaultProjectSchemaProvider : ProjectSchemaProvider {
    
        override fun schemaFor(scriptTarget: Any): TypedProjectSchema? =
            targetTypeOf(scriptTarget)
                ?.let { scriptTargetType ->
                    targetSchemaFor(
                        scriptTarget,
                        scriptTargetType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorsClassPath.kt

            require(classLoaderScope.isLocked) {
                "project.classLoaderScope must be locked before querying the project schema"
            }
            return projectSchemaProvider.schemaFor(scriptTarget)?.takeIf { it.isNotEmpty() }
        }
    }
    
    
    internal
    class GenerateProjectAccessors(
        private val scriptTarget: Any,
        private val scriptTargetSchema: TypedProjectSchema,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 22K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

                        rootProject.run {
                            applyPlugins(plugins)
                            serviceOf<ProjectSchemaProvider>().schemaFor(this)!!
                        }
                    }
                }
            }
        }
    
        private
        fun projectSchemaBuildStartParameterFor(projectDir: File): ProjectSchemaBuildStartParameter =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/ArtifactHandler.java

     *   schema
     * }
     *
     * task schemaJar(type: Jar) {
     *   //some imaginary task that creates a jar artifact with some schema
     * }
     *
     * //associating the task that produces the artifact with the configuration
     * artifacts {
     *   //configuration name and the task:
     *   schema schemaJar
     * }
     * </pre>
     */
    @ServiceScope(Scope.Project.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/ingress.go

    	var (
    		addr string
    		port int
    	)
    	opts = opts.DeepCopy()
    	var addrs []string
    	var ports []int
    	if opts.Port.ServicePort == 0 {
    		s, err := c.schemeFor(opts)
    		if err != nil {
    			return echo.CallResult{}, err
    		}
    		opts.Scheme = s
    
    		// Default port based on protocol
    		switch s {
    		case scheme.HTTP:
    			addrs, ports = c.HTTPAddresses()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 17:13:34 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. docs/pl/docs/tutorial/first-steps.md

    #### OpenAPI i JSON Schema
    
    OpenAPI definiuje API Schema dla Twojego API, który zawiera definicje (lub "schematy") danych wysyłanych i odbieranych przez Twój interfejs API przy użyciu **JSON Schema**, standardu dla schematów danych w formacie JSON.
    
    #### Sprawdź `openapi.json`
    
    Jeśli jesteś ciekawy, jak wygląda surowy schemat OpenAPI, FastAPI automatycznie generuje JSON Schema z opisami wszystkich Twoich API.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. pilot/pkg/model/authorization_test.go

    		ns  string
    		cfg config.Config
    	}{
    		typ: cfg.GroupVersionKind,
    		ns:  cfg.Namespace,
    		cfg: cfg,
    	})
    }
    
    func (fs *authzFakeStore) Schemas() collection.Schemas {
    	return collection.SchemasFor()
    }
    
    func (fs *authzFakeStore) Get(_ config.GroupVersionKind, _, _ string) *config.Config {
    	return nil
    }
    
    func (fs *authzFakeStore) List(typ config.GroupVersionKind, namespace string) []config.Config {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top