Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for struct (0.18 sec)

  1. istioctl/pkg/util/configdump/workload.go

    }
    
    type Waypoint struct {
    	Destination string `json:"destination"`
    }
    
    type ZtunnelService struct {
    	Name      string         `json:"name"`
    	Namespace string         `json:"namespace"`
    	Hostname  string         `json:"hostname"`
    	Addresses []string       `json:"addresses"`
    	Ports     map[string]int `json:"ports"`
    }
    
    type ZtunnelDump struct {
    Go
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Fri Mar 22 16:24:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. cni/pkg/config/config.go

    // limitations under the License.
    
    package config
    
    import (
    	"fmt"
    	"strings"
    )
    
    type Config struct {
    	InstallConfig InstallConfig
    	RepairConfig  RepairConfig
    }
    
    // InstallConfig struct defines the Istio CNI installation options
    type InstallConfig struct {
    	// Location of the CNI config files in the host's filesystem
    	CNINetDir string
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/server_test.go

    type WaitGroup struct {
    	count int32
    	done  chan struct{}
    }
    
    func NewWaitGroup() *WaitGroup {
    	return &WaitGroup{
    		done: make(chan struct{}),
    	}
    }
    
    func NewWaitForNCalls(t *testing.T, n int32) (*WaitGroup, func()) {
    	wg := &WaitGroup{
    		done: make(chan struct{}),
    	}
    
    	wg.Add(n)
    	return wg, func() {
    		select {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    package configdump
    
    import (
    	"bytes"
    	"os"
    	"testing"
    
    	"istio.io/istio/pilot/test/util"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestConfigWriter_Prime(t *testing.T) {
    	tests := []struct {
    		name        string
    		wantConfigs int
    		inputFile   string
    		wantErr     bool
    	}{
    		{
    			name:        "errors if unable to unmarshal bytes",
    			inputFile:   "",
    			wantConfigs: 0,
    			wantErr:     true,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 03 23:08:06 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. istioctl/pkg/util/configdump/wrapper.go

    		return msg.ProtoReflect().Type(), nil
    	}
    	return typ, nil
    }
    
    // Wrapper is a wrapper around the Envoy ConfigDump
    // It has extra helper functions for handling any/struct/marshal protobuf pain
    type Wrapper struct {
    	*admin.ConfigDump
    }
    
    // UnmarshalJSON is a custom unmarshaller to handle protobuf pain
    func (w *Wrapper) UnmarshalJSON(b []byte) error {
    	cd := &admin.ConfigDump{}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. cni/pkg/iptables/nldeps.go

    	DelInpodMarkIPRule(cfg *Config) error
    	AddLoopbackRoutes(cfg *Config) error
    	DelLoopbackRoutes(cfg *Config) error
    }
    
    func RealNlDeps() NetlinkDependencies {
    	return &realDeps{}
    }
    
    type realDeps struct{}
    
    func (r *realDeps) AddInpodMarkIPRule(cfg *Config) error {
    	return AddInpodMarkIPRule(cfg)
    }
    
    func (r *realDeps) DelInpodMarkIPRule(cfg *Config) error {
    	return DelInpodMarkIPRule(cfg)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. istioctl/pkg/admin/istiodconfig.go

    		return err
    	}
    	return nil
    }
    
    type getAllLogLevelsState struct {
    	client       *ControlzClient
    	outputFormat string
    }
    
    func (ga *getAllLogLevelsState) run(out io.Writer) error {
    	type scopeLogLevel struct {
    		ScopeName   string `json:"scope_name"`
    		LogLevel    string `json:"log_level"`
    		Description string `json:"description"`
    	}
    	allScopes, err := ga.client.GetScopes()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  8. cni/pkg/repair/repaircontroller.go

    			if state.Reason == "Completed" || state.ExitCode == 0 {
    				continue
    			}
    		}
    
    		// Check the LastTerminationState struct for information about why the container
    		// last exited. If a pod is using the CNI configuration check init container,
    		// it will start crashlooping and populate this struct.
    		if state := container.LastTerminationState.Terminated; state != nil {
    			// Verify the container state matches our filter criteria
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver_test.go

    		string(pod.UID): workload,
    	}
    	ret := connectWithPods(ctx, pods)
    
    	return struct {
    		ztunClient *net.UnixConn
    		ztunServer *ztunnelServer
    		uid        string
    	}{ztunClient: ret.ztunClient, ztunServer: ret.ztunServer, uid: string(pod.UID)}
    }
    
    func connectWithPods(ctx context.Context, pods PodNetnsCache) struct {
    	ztunClient *net.UnixConn
    	ztunServer *ztunnelServer
    } {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  10. cni/pkg/plugin/sidecar_iptables.go

    // limitations under the License.
    
    // This is a sample chained plugin that supports multiple CNI versions. It
    // parses prevResult according to the cniVersion
    package plugin
    
    type iptables struct{}
    
    func newIPTables() InterceptRuleMgr {
    	return &iptables{}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 810 bytes
    - Viewed (0)
Back to top