Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for JSONPath (0.2 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/jsonpath.go

    type JSONPathPrinter struct {
    	rawTemplate string
    	*jsonpath.JSONPath
    }
    
    func NewJSONPathPrinter(tmpl string) (*JSONPathPrinter, error) {
    	j := jsonpath.New("out")
    	if err := j.Parse(tmpl); err != nil {
    		return nil, err
    	}
    	return &JSONPathPrinter{
    		rawTemplate: tmpl,
    		JSONPath:    j,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  2. internal/s3select/sql/jsonpath.go

    Harshavardhana <******@****.***> 1708583166 -0800
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

            String response = checkMethodBase(requestBody).put("/api/admin/webconfig/setting").asString();
            JsonPath jsonPath = JsonPath.from(response);
            assertTrue(jsonPath.getBoolean("response.created"));
            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.getString("response.id");
        }
    
        protected static List<String> getWebConfigIds(final String namePrefix) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags_test.go

    			expectedError: "template format specified but no template given",
    		},
    		{
    			name:           "valid jsonpath-as-json output format and --template argument succeeds",
    			outputFormat:   "jsonpath-as-json",
    			templateArg:    "{ .metadata.name }",
    			expectedOutput: "foo",
    		},
    		{
    			name:           "jsonpath template file should match, and successfully return correct value",
    			outputFormat:   "jsonpath-file",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            Response response = checkMethodBase(labelBody).put("/api/admin/labeltype/setting");
            JsonPath jsonPath = JsonPath.from(response.asString());
            assertTrue(jsonPath.getBoolean("response.created"));
            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.get("response.id");
        }
    
        private static String createCrawlLabel() {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags.go

    )
    
    // templates are logically optional for specifying a format.
    // this allows a user to specify a template format value
    // as --output=jsonpath=
    var jsonFormats = map[string]bool{
    	"jsonpath":         true,
    	"jsonpath-file":    true,
    	"jsonpath-as-json": true,
    }
    
    // JSONPathPrintFlags provides default flags necessary for template printing.
    // Given the following flag values, a printer can be requested that knows
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/selectablefield.go

    // with apply.
    type SelectableFieldApplyConfiguration struct {
    	JSONPath *string `json:"jsonPath,omitempty"`
    }
    
    // SelectableFieldApplyConfiguration constructs an declarative configuration of the SelectableField type for use with
    // apply.
    func SelectableField() *SelectableFieldApplyConfiguration {
    	return &SelectableFieldApplyConfiguration{}
    }
    
    // WithJSONPath sets the JSONPath field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java

            String response = checkGetMethod(searchBody, getListEndpointSuffix()).asString();
            final int total = JsonPath.from(response).getInt("response.total");
            final List<Map<String, String>> items = JsonPath.from(response).getList("response.settings");
            final int status = JsonPath.from(response).getInt("response.status");
            assertEquals(total, items.size());
            assertEquals(0, status);
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/selectablefield.go

    // with apply.
    type SelectableFieldApplyConfiguration struct {
    	JSONPath *string `json:"jsonPath,omitempty"`
    }
    
    // SelectableFieldApplyConfiguration constructs an declarative configuration of the SelectableField type for use with
    // apply.
    func SelectableField() *SelectableFieldApplyConfiguration {
    	return &SelectableFieldApplyConfiguration{}
    }
    
    // WithJSONPath sets the JSONPath field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/jsonpath_test.go

    		index *int
    		field string
    	}
    	JSONPath []jsonPathNode
    )
    
    func (p JSONPath) String() string {
    	var buf bytes.Buffer
    	for _, n := range p {
    		if n.index == nil {
    			buf.WriteString("." + n.field)
    		} else {
    			buf.WriteString(fmt.Sprintf("[%d]", *n.index))
    		}
    	}
    	return buf.String()
    }
    
    func jsonPaths(base JSONPath, j map[string]interface{}) []JSONPath {
    	res := make([]JSONPath, 0, len(j))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 09:22:21 UTC 2019
    - 6.9K bytes
    - Viewed (0)
Back to top