Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 647 for dumpTo (0.11 sec)

  1. istioctl/pkg/writer/envoy/configdump/endpoint.go

    	if c.configDump == nil {
    		return nil, fmt.Errorf("config writer has not been primed")
    	}
    	dump, err := c.configDump.GetEndpointsConfigDump()
    	if err != nil {
    		return nil, err
    	}
    	if dump == nil {
    		return nil, nil
    	}
    	endpoints := make([]*endpoint.ClusterLoadAssignment, 0, len(dump.DynamicEndpointConfigs))
    	for _, e := range dump.GetDynamicEndpointConfigs() {
    		cla, epCount := retrieveEndpoint(e.EndpointConfig, filter)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/encoder.md

        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    在这个例子中,它将Pydantic模型转换为`dict`,并将`datetime`转换为`str`。
    
    调用它的结果后就可以使用Python标准编码中的<a href="https://docs.python.org/3/library/json.html#json.dumps" class="external-link" target="_blank">`json.dumps()`</a>。
    
    这个操作不会返回一个包含JSON格式(作为字符串)数据的庞大的`str`。它将返回一个Python标准数据结构(例如`dict`),其值和子值都与JSON兼容。
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. pkg/kube/krt/testing.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package krt
    
    // Dump is a *testing* helper to dump the state of a collection, if possible, into logs.
    func Dump[O any](c Collection[O]) {
    	c.(internalCollection[O]).dump()
    }
    
    type TestingDummyContext struct{}
    
    func (t TestingDummyContext) _internalHandler() {
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. docs_src/custom_response/tutorial009c.py

    
    class CustomORJSONResponse(Response):
        media_type = "application/json"
    
        def render(self, content: Any) -> bytes:
            assert orjson is not None, "orjson must be installed"
            return orjson.dumps(content, option=orjson.OPT_INDENT_2)
    
    
    @app.get("/", response_class=CustomORJSONResponse)
    async def main():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 01 09:32:30 UTC 2022
    - 451 bytes
    - Viewed (0)
  5. hack/verify-licenses.sh

    echo -e 'PACKAGE_NAME  LICENSE_NAME  LICENSE_URL\n' >> "${ARTIFACTS}"/approved_licenses.dump
    while IFS=, read -r GO_PACKAGE LICENSE_URL LICENSE_NAME; do
        if ! grep -q "^${LICENSE_NAME}$" "${ARTIFACTS}"/licenses.txt; then
            echo "${GO_PACKAGE}  ${LICENSE_NAME}  ${LICENSE_URL}" >> "${ARTIFACTS}"/notapproved_licenses.dump
            packages_flagged+=("${GO_PACKAGE}")
            continue
        fi
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. pkg/util/iptables/testing/parse.go

    	return buffer.String()
    }
    
    func (dump *IPTablesDump) GetTable(table iptables.Table) (*Table, error) {
    	for i := range dump.Tables {
    		if dump.Tables[i].Name == table {
    			return &dump.Tables[i], nil
    		}
    	}
    	return nil, fmt.Errorf("no such table %q", table)
    }
    
    func (dump *IPTablesDump) GetChain(table iptables.Table, chain iptables.Chain) (*Chain, error) {
    	t, err := dump.GetTable(table)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/configdump.go

    }
    
    // Prime loads the config dump into the writer ready for printing
    func (c *ConfigWriter) Prime(b []byte) error {
    	w := &configdump.Wrapper{}
    	err := w.UnmarshalJSON(b)
    	if err != nil {
    		return fmt.Errorf("error unmarshalling config dump response from Envoy: %v", err)
    	}
    	c.configDump = w
    	return nil
    }
    
    // PrintBootstrapDump prints just the bootstrap config dump to the ConfigWriter stdout
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/regexp/syntax/parse_test.go

    		if err != nil {
    			t.Errorf("Parse(%#q): %v", tt.Regexp, err)
    			continue
    		}
    		if tt.Dump == "" {
    			// It parsed. That's all we care about.
    			continue
    		}
    		d := dump(re)
    		if d != tt.Dump {
    			t.Errorf("Parse(%#q).Dump() = %#q want %#q", tt.Regexp, d, tt.Dump)
    			continue
    		}
    
    		s := re.String()
    		if s != tt.Regexp {
    			// If ToString didn't return the original regexp,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  9. pkg/test/framework/components/namespace/kube.go

    	kube2.DumpDeployments(n.ctx, d, n.name)
    }
    
    var (
    	_ Instance          = &kubeNamespace{}
    	_ io.Closer         = &kubeNamespace{}
    	_ resource.Resource = &kubeNamespace{}
    	_ resource.Dumper   = &kubeNamespace{}
    )
    
    func (n *kubeNamespace) Name() string {
    	return n.name
    }
    
    func (n *kubeNamespace) Prefix() string {
    	return n.prefix
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. docs_src/generate_clients/tutorial004.py

            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 04 22:02:18 UTC 2022
    - 493 bytes
    - Viewed (0)
Back to top