Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Embed0 (0.25 sec)

  1. src/go/build/read.go

    			// and we can pretend they are not there to help go list succeed with what it knows.
    			embs, err := parseGoEmbed(string(line), pos)
    			if err == nil {
    				info.embeds = append(info.embeds, embs...)
    			}
    		}
    	}
    
    	return nil
    }
    
    // isValidImport checks if the import is a valid import using the more strict
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package driver
    
    import (
    	"embed"
    	"fmt"
    	"html/template"
    	"os"
    	"sync"
    
    	"github.com/google/pprof/internal/report"
    )
    
    var (
    	htmlTemplates    *template.Template // Lazily loaded templates
    	htmlTemplateInit sync.Once
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-multiple-params.md

    ## Embed a single body parameter
    
    Let's say you only have a single `item` body parameter from a Pydantic model `Item`.
    
    By default, **FastAPI** will then expect its body directly.
    
    But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`:
    
    ```Python
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 09 02:01:51 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. pkg/test/framework/components/cluster/topology.go

    		Index:                   len(allClusters),
    		ConfigMetadata:          config.Meta,
    	}
    }
    
    // Topology gives information about the relationship between clusters.
    // Cluster implementations can embed this struct to include common functionality.
    type Topology struct {
    	ClusterName             string
    	Network                 string
    	ClusterHTTPProxy        string
    	PrimaryClusterName      string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package stringintconv
    
    import (
    	_ "embed"
    	"fmt"
    	"go/ast"
    	"go/types"
    	"strings"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/go/analysis/passes/inspect"
    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    	"golang.org/x/tools/go/ast/inspector"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    	if err := pkiutil.WriteCertAndKey(
    		dirPKI,
    		caName,
    		testCACert,
    		testCAKey); err != nil {
    		t.Fatalf("couldn't write out certificate %s to %s", caName, dirPKI)
    	}
    
    	// creates a certificate and then embeds it into a kubeconfig file
    	cert := writeTestKubeconfig(t, dirKubernetes, "test", testCACert, testCAKey, time.Time{}, time.Time{})
    
    	// Creates a KubeconfigReadWriter
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    package etcd3
    
    import (
    	"context"
    	"crypto/rand"
    	"fmt"
    	"io/ioutil"
    	"os"
    	"reflect"
    	"strings"
    	"sync/atomic"
    	"testing"
    
    	clientv3 "go.etcd.io/etcd/client/v3"
    	"go.etcd.io/etcd/server/v3/embed"
    	"google.golang.org/grpc/grpclog"
    
    	"k8s.io/apimachinery/pkg/api/apitesting"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/fields"
    	"k8s.io/apimachinery/pkg/labels"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. schema/schema.go

    	PrimaryFields             []*Field
    	PrimaryFieldDBNames       []string
    	Fields                    []*Field
    	FieldsByName              map[string]*Field
    	FieldsByBindName          map[string]*Field // embedded fields is 'Embed.Field'
    	FieldsByDBName            map[string]*Field
    	FieldsWithDefaultDBValue  []*Field // fields with default value assigned by database
    	Relationships             Relationships
    	CreateClauses             []clause.Interface
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/config.go

    		ShutdownDelayDuration:          time.Duration(0),
    		// 1.5MB is the default client request size in bytes
    		// the etcd server should accept. See
    		// https://github.com/etcd-io/etcd/blob/release-3.4/embed/config.go#L56.
    		// A request body might be encoded in json, and is converted to
    		// proto when persisted in etcd, so we allow 2x as the largest size
    		// increase the "copy" operations in a json patch may cause.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  10. src/go/build/build.go

    			allTags["cgo"] = true
    			if ctxt.CgoEnabled {
    				fileList = &p.CgoFiles
    				importMap = importPos
    				embedMap = embedPos
    				directives = &p.Directives
    			} else {
    				// Ignore imports and embeds from cgo files if cgo is disabled.
    				fileList = &p.IgnoredGoFiles
    			}
    		case isXTest:
    			fileList = &p.XTestGoFiles
    			importMap = xTestImportPos
    			embedMap = xTestEmbedPos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
Back to top