Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for type (0.16 sec)

  1. cni/pkg/ipset/nldeps_linux.go

    	"fmt"
    	"net"
    	"net/netip"
    
    	"github.com/vishvananda/netlink"
    	"github.com/vishvananda/netlink/nl"
    	"golang.org/x/sys/unix"
    )
    
    func RealNlDeps() NetlinkIpsetDeps {
    	return &realDeps{}
    }
    
    type realDeps struct{}
    
    func (m *realDeps) ipsetIPHashCreate(name string, v6 bool) error {
    	var family uint8
    
    	if v6 {
    		family = unix.AF_INET6
    	} else {
    		family = unix.AF_INET
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. cni/pkg/ipset/ipset.go

    // TODO this should actually create v6 and v6 subsets of type `hash:ip`, add them both to a
    // superset of type `list:set` - we can then query the superset directly in iptables (with the same rule),
    // and iptables will be smart enough to pick the correct underlying set (v4 or v6, based on context),
    // reducing the # of rules we need.
    //
    // BUT netlink lib doesn't support adding things to `list:set` types yet, and current tagged release
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    	}
    	fi.DataDir = mustGetUUID()
    
    	// Initialize erasure metadata.
    	for index := range partsMetadata {
    		partsMetadata[index] = fi
    	}
    
    	// Guess content-type from the extension if possible.
    	if userDefined["content-type"] == "" {
    		userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object))
    	}
    
    	// if storageClass is standard no need to save it as part of metadata.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint.go

    					Protocol: gateway.ProtocolType(protocol.HBONE),
    				}},
    			},
    		}
    		// Determine which traffic address type to apply the waypoint to, if none is provided it will default to "service"
    		// as the waypoint-for traffic type.
    		if !validTrafficTypes.Contains(trafficType) {
    			return nil, fmt.Errorf("invalid traffic type: %s. Valid options are: %s", trafficType, validTrafficTypes.String())
    		}
    
    		if gw.Labels == nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. 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 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. cni/pkg/util/podutil_test.go

    			ObjectMeta: metav1.ObjectMeta{
    				Name:        "test",
    				Namespace:   "test",
    				Labels:      ambientEnabledLabel,
    				Annotations: sidecarStatusAnnotation,
    			},
    		}
    	)
    
    	type args struct {
    		namespace *corev1.Namespace
    		pod       *corev1.Pod
    	}
    	tests := []struct {
    		name string
    		args args
    		want bool
    	}{
    		{
    			name: "ambient mode enabled for namespace",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    		return nil
    	}
    	*d = doc
    	return nil
    }
    
    // key options
    type options struct {
    	ttl int64 // expiry in seconds
    }
    
    type iamWatchEvent struct {
    	isCreated bool // !isCreated implies a delete event.
    	keyPath   string
    }
    
    // iamCache contains in-memory cache of IAM data.
    type iamCache struct {
    	updatedAt time.Time
    
    	// map of policy names to policy definitions
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  8. cni/pkg/ipset/nldeps_mock.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ipset
    
    import (
    	"net/netip"
    
    	"github.com/stretchr/testify/mock"
    )
    
    type MockedIpsetDeps struct {
    	mock.Mock
    }
    
    func FakeNLDeps() *MockedIpsetDeps {
    	return &MockedIpsetDeps{}
    }
    
    func (m *MockedIpsetDeps) ipsetIPHashCreate(name string, v6 bool) error {
    	args := m.Called(name, v6)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	xnet "github.com/minio/pkg/v2/net"
    )
    
    var errDiskStale = errors.New("drive stale")
    
    // To abstract a disk over network.
    type storageRESTServer struct {
    	endpoint Endpoint
    }
    
    var (
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. cni/pkg/ipset/nldeps_unspecified.go

    // limitations under the License.
    
    package ipset
    
    import (
    	"errors"
    	"net/netip"
    )
    
    func RealNlDeps() NetlinkIpsetDeps {
    	return &realDeps{}
    }
    
    type realDeps struct{}
    
    func (m *realDeps) ipsetIPHashCreate(name string, v6 bool) error {
    	return errors.New("not implemented on this platform")
    }
    
    func (m *realDeps) destroySet(name string) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top