Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for cjson (0.14 sec)

  1. operator/cmd/mesh/profile-dump.go

    	if err != nil {
    		return "", err
    	}
    	return out2, nil
    }
    
    // Convert the generated YAML to pretty JSON.
    func yamlToPrettyJSON(yml string) (string, error) {
    	// YAML objects are not completely compatible with JSON
    	// objects. Let yaml.YAMLToJSON handle the edge cases and
    	// we'll re-encode the result to pretty JSON.
    	uglyJSON, err := yaml.YAMLToJSON([]byte(yml))
    	if err != nil {
    		return "", err
    	}
    	var decoded any
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/sds/writer.go

    package sdscompare
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"strings"
    	"text/tabwriter"
    )
    
    // SDSWriter takes lists of SecretItem or SecretItemDiff and prints them through supplied output writer
    type SDSWriter interface {
    	PrintSecretItems([]SecretItem) error
    	PrintDiffs([]SecretItemDiff) error
    }
    
    type Format int
    
    const (
    	JSON Format = iota
    	TABULAR
    )
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/comparator.go

    	for _, resp := range istiodResponses {
    		istiodDump := &configdump.Wrapper{}
    		err := json.Unmarshal(resp, istiodDump)
    		if err != nil {
    			continue
    		}
    		c.istiod = istiodDump
    		break
    	}
    	if c.istiod == nil {
    		return nil, fmt.Errorf("unable to find config dump in Istiod responses")
    	}
    	envoyDump := &configdump.Wrapper{}
    	err := json.Unmarshal(envoyResponse, envoyDump)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  4. istioctl/pkg/util/formatting/formatter.go

    // limitations under the License.
    
    package formatting
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"os"
    	"strings"
    
    	"github.com/mattn/go-isatty"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/config/analysis/diag"
    	"istio.io/istio/pkg/env"
    )
    
    // Formatting options for Messages
    const (
    	LogFormat  = "log"
    	JSONFormat = "json"
    	YAMLFormat = "yaml"
    )
    
    var (
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/clusters/clusters.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 clusters
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"sort"
    	"strconv"
    	"strings"
    	"text/tabwriter"
    
    	admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3"
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/configdump.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 configdump
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"text/tabwriter"
    
    	"sigs.k8s.io/yaml"
    )
    
    // ConfigWriter is a writer for processing responses from the Ztunnel Admin config_dump endpoint
    type ConfigWriter struct {
    	Stdout      io.Writer
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/certificates.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 configdump
    
    import (
    	"encoding/json"
    	"fmt"
    	"math/big"
    	"strings"
    	"text/tabwriter"
    	"time"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/log"
    )
    
    // PrintSecretDump prints just the secret config dump to the ConfigWriter stdout
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 16:38:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/ztunnel/configdump/workload.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 configdump
    
    import (
    	"encoding/json"
    	"fmt"
    	"sort"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    )
    
    // WorkloadFilter is used to pass filter information into workload based config writer print functions
    type WorkloadFilter struct {
    	Address   string
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. istioctl/pkg/internaldebug/internal-debug.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package internaldebug
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"strings"
    
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    	"github.com/spf13/cobra"
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  10. istioctl/pkg/multixds/gather.go

    // limitations under the License.
    
    package multixds
    
    // multixds knows how to target either central Istiod or all the Istiod pods on a cluster.
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net"
    	"net/url"
    	"os"
    	"strings"
    
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top