Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,633 for Sort (0.12 sec)

  1. operator/cmd/mesh/profile-list.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 mesh
    
    import (
    	"sort"
    
    	"github.com/spf13/cobra"
    
    	"istio.io/istio/operator/pkg/helm"
    )
    
    type profileListArgs struct {
    	// manifestsPath is a path to a charts and profiles directory in the local filesystem with a release tgz.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. pkg/ctrlz/topics/env.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package topics
    
    import (
    	"net/http"
    	"os"
    	"sort"
    	"strings"
    
    	"istio.io/istio/pkg/ctrlz/fw"
    	"istio.io/istio/pkg/ctrlz/topics/assets"
    )
    
    type envTopic struct{}
    
    // EnvTopic returns a ControlZ topic that allows visualization of process environment variables.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. pkg/credentialprovider/plugins.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package credentialprovider
    
    import (
    	"reflect"
    	"sort"
    	"sync"
    
    	"k8s.io/klog/v2"
    )
    
    // All registered credential providers.
    var providersMutex sync.Mutex
    var providers = make(map[string]DockerConfigProvider)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 22:01:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/example_test.go

    	}
    	var items []string
    	for obj, uses := range usesByObj {
    		sort.Strings(uses)
    		item := fmt.Sprintf("%s:\n  defined at %s\n  used at %s",
    			types2.ObjectString(obj, types2.RelativeTo(pkg)),
    			obj.Pos(),
    			strings.Join(uses, ", "))
    		items = append(items, item)
    	}
    	sort.Strings(items) // sort by line:col, in effect
    	fmt.Println(strings.Join(items, "\n"))
    	fmt.Println()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/inittask.go

    				continue // already found
    			}
    			q = append(q, s)
    			m[s] = 0 // mark as found
    		}
    		m[x] = ndeps
    		if ndeps == 0 {
    			h.push(ldr, x)
    		}
    	}
    
    	// Sort edges so we can look them up by edge destination.
    	sort.Slice(edges, func(i, j int) bool {
    		return edges[i].to < edges[j].to
    	})
    
    	// Figure out the schedule.
    	sched := ldr.MakeSymbolBuilder(symName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/net/dnsclient.go

    				if i > 0 {
    					addrs[0], addrs[i] = addrs[i], addrs[0]
    				}
    				break
    			}
    		}
    		sum -= int(addrs[0].Weight)
    		addrs = addrs[1:]
    	}
    }
    
    // sort reorders SRV records as specified in RFC 2782.
    func (addrs byPriorityWeight) sort() {
    	slices.SortFunc(addrs, func(a, b *SRV) int {
    		if r := cmp.Compare(a.Priority, b.Priority); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Weight, b.Weight)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. cmd/os-readdir_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"fmt"
    	"os"
    	"path"
    	"path/filepath"
    	"runtime"
    	"sort"
    	"testing"
    )
    
    // Test to check for different input arguments.
    func TestReadDirFail(t *testing.T) {
    	// Check non existent directory.
    	if _, err := readDir("/tmp/non-existent-directory"); err != errFileNotFound {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  8. pkg/util/smallset/smallset.go

    	if len(items) == 1 {
    		return Set[T]{items: items}
    	}
    	slices.Sort(items)
    	items = slices.FilterDuplicatesPresorted(items)
    	return Set[T]{items: items}
    }
    
    // CopyAndInsert builds a *new* with all the current items plus new items
    func (s Set[T]) CopyAndInsert(items ...T) Set[T] {
    	slices.Sort(items)
    	// This is basically the 'merge' part of merge sort.
    	a := s.items
    	b := items
    	nl := make([]T, 0, len(a)+len(b))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/schedule.go

    		for i, v := range order {
    			if v.Op == OpNilCheck {
    				if start == -1 {
    					start = i
    				}
    			} else {
    				if start != -1 {
    					sort.Sort(bySourcePos(order[start:i]))
    					start = -1
    				}
    			}
    		}
    		if start != -1 {
    			sort.Sort(bySourcePos(order[start:]))
    		}
    	}
    
    	return order
    }
    
    // isFlagOp reports if v is an OP with the flag type.
    func (v *Value) isFlagOp() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_parallel.txt

    module fuzz_parallel
    
    go 1.17
    -- fuzz_parallel_test.go --
    package fuzz_parallel
    
    import (
    	"sort"
    	"sync"
    	"testing"
    )
    
    func FuzzSeed(f *testing.F) {
    	for _, v := range [][]byte{{'a'}, {'b'}, {'c'}} {
    		f.Add(v)
    	}
    
    	var mu sync.Mutex
    	var before, after []byte
    	f.Cleanup(func() {
    		sort.Slice(after, func(i, j int) bool { return after[i] < after[j] })
    		got := string(before) + string(after)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top