package main import ( "fmt" "io" "net/http" "github.com/zc2638/swag" "github.com/zc2638/swag/endpoint" "github.com/zc2638/swag/option" ) // Category example from the swagger pet store type Category struct { ID
For this we need to create a ImageContext object, using the imager.NewContext() method. We also need to use the imager.RenderWithContext() method so that we can provide the ImageContext. This example also uses the styles that are defined in the config/default.json files: // Create a ...
参数initializer是名为create-<initializer>的npm包 ( 例如create-vite),执行npm init <initializer>将会被转换为相应的npm exec操作,即会使用npm exec命令来运行create-<initializer>包中对应命令create-<initializer>(package.json 的 bin 字段指定),例如: # 使用 create-vite 包的 create-vite 命令创建一个名为 ...
The return type is an ExternalMetricValue struct which has the following fields: MetricName: this is the name of the metric that we are returning. The name should be unique, to allow setting multiple (even the same type) Triggers in one ScaledObject, but each function call should return ...
// +kubebuilder:object:root=true // RootShardList contains a list of RootShard 3 changes: 3 additions & 0 deletions 3 api/v1alpha1/shard_types.go Original file line numberDiff line numberDiff line change @@ -35,6 +35,9 @@ type CommonShardSpec struct { Etcd EtcdConfig `json:"etcd...
2436 2438 - [johnkerl/miller](https://github.com/johnkerl/miller) - Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON 2437 2439 - [buger/goreplay](https://github.com/buger/goreplay) - GoReplay is an open-source tool for captu...
type KpodImage struct { Name string ID string fqname string hasImageLocal bool Runtime Registry string ImageName string Tag string HasRegistry bool Transport string beenDecomposed bool PullName string } // NewImage creates a new image object based on its name func (r *Runtime) NewImage(name...
ObjectStoreSpec) (*cephobject.AdminOpsContext, error) { 307 + mockClient := &cephobject.MockClient{ 308 + MockDo: func(req *http.Request) (*http.Response, error) { 309 + if req.URL.RawQuery == "display-name=my-user&format=json&uid=my-user" && req.Method == http.MethodGet ...
defaults.json override.json db/schema/migrations/oss/postgres/85 01_citext_extension.up.sql 02_alias_domain.up.sql 03_alias_base_table.up.sql 04_alias_target.up.sql perms acl_test.go grants_test.go proto/controller/storage/alias/target/store/v1 alias.proto types/resource resource...
"encoding/json" "fmt" "google.golang.org/grpc" appmodulev2 "cosmossdk.io/core/appmodule/v2" "cosmossdk.io/core/registry" "cosmossdk.io/x/bank/v2/keeper" "cosmossdk.io/x/bank/v2/types" "github.com/cosmos/cosmos-sdk/codec" ) // ConsensusVersion defines the current x/bank/v2 module ...