text
stringlengths
8.57k
38.1k
/* Copyright 2016 The Kubernetes Authors. Copyright 2019 The Kruise Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
// Copyright 2014 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
/* Copyright 2022. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed un...
// Copyright (c) 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/data/dns/v3/dns_table.proto package envoy_data_dns_v3 import ( fmt "fmt" v3 "github.com/cilium/proxy/go/envoy/type/matcher/v3" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/go...
package main import ( "encoding/hex" "fmt" "html/template" "io/ioutil" "log" "net/http" "os" "path/filepath" "strconv" "strings" "sync" "time" macaroon "gopkg.in/macaroon.v2" "github.com/davecgh/go-spew/spew" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/macaroons" "github...
package gocore import ( "debug/dwarf" "fmt" "strings" "github.com/randall77/corelib/core" ) // Core takes a loaded core file and extracts Go information from it. // flags is a bitmask of data that should be extracted from the core. func Core(proc *core.Process, flags Flags) (p *Process, err error) { // Make sur...
// Copyright 2018 <NAME>. // Use of this source code is governed by the MIT // license that can be found in the LICENSE.txt file. package collector import ( "encoding/json" p "github.com/prometheus/client_golang/prometheus" log "github.com/sirupsen/logrus" ) // BucketStatsData (/pools/default/buckets/<bucket_nam...
// // ecs-service-logs is a simple program to print ECS Service logs to stdout. // ecs-service-logs is built using cobra and supports subcommands. // Use ecs-service-logs with no arguments to bring up help. // // package main import ( "fmt" "io/ioutil" "log" "os" "regexp" "strings" "github.com/99designs/aws-va...
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may not // use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" fil...
/** * Copyright (C) 2018 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
// Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.4 // source: ligato/annotations.proto package ligato import ( proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/pro...
// Copyright (c) 2016 <NAME>, Inc. // Use of this source code is governed by the Apache License 2.0 // that can be found in the COPYING file. package daemon // Test the various Api calls import ( "bytes" "encoding/json" "fmt" "io" "os" "strings" "sync/atomic" "syscall" "testing" "github.com/aristanetworks...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/config/proto/config.proto package proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" proto5 "github.com/google/cloudprober/common/tlsconfig/proto" proto1 "github.com/google/cloudprober/probes/proto" proto4 "g...
package goobj import ( "bufio" "errors" "fmt" "os" "reflect" ) const supportedGoObjVersion = 1 var magicHeader = []byte("\x00\x00go19ld") var magicFooter = []byte("\xffgo19ld") // File represents a go object file. type File struct { Symbols []Symbol SymbolReferences []SymbolReference DataBlock ...
/* Copyright 2020 The OpenEBS Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
/* Copyright (c) 2010 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublice...
package naturaldate import ( "log" "testing" "time" "github.com/tj/assert" ) // base time. var base = time.Unix(1574687238, 0).UTC() // pastCases are test cases for the past direction. var pastCases = []struct { Input string Output string }{ // now {`now`, `2019-11-25 13:07:18 +0000 UTC`}, {`right now`, `...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package resource import ( "context" "fmt" "net/http" "strconv" "strings" "sync" ...
/* * Copyright (c) 2018 UPLEX Nils Goroll Systemoptimierung * All rights reserved * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/identity/accesscontextmanager/v1/service_perimeter.proto package accesscontextmanager import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/g...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
package cache import ( "context" "errors" "fmt" "math" "net" "net/url" "os/exec" "reflect" "strings" "sync" "syscall" "time" clustercache "github.com/argoproj/gitops-engine/pkg/cache" "github.com/argoproj/gitops-engine/pkg/health" "github.com/argoproj/gitops-engine/pkg/utils/kube" log "github.com/siru...
// Code generated by go-swagger; DO NOT EDIT. package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "net/http" "strings" errors "github.com/go-openapi/errors" loads "github.com/go-openapi/loads" ru...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.10.1 // source: envoy/config/trace/v3/lightstep.proto package envoy_config_trace_v3 import ( _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: tensorflow_serving/apis/session_service.proto package session_service_go_proto import ( model_go_proto "github.com/tensorflow/serving/tensorflow_serving/apis/model_go_proto" for_core_protos_g...
// Copyright 2017 Factom Foundation // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. // Defines the state for factoid. By using the proper // interfaces, the functionality of factoid can be imported // into any framework. package state import ( "bytes" "encoding/b...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: opencensus/proto/agent/common/v1/common.proto package v1 import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not otherwise ...
package core import ( "encoding/json" "fmt" "io/ioutil" "net" "net/http" "os" "path" "strings" "time" "github.com/jhunt/go-log" "github.com/pborman/uuid" "github.com/starkandwayne/shield/crypter" "github.com/starkandwayne/shield/db" "github.com/starkandwayne/shield/timespec" ) var Version = "(developm...
package api import ( "archive/tar" "archive/zip" "compress/gzip" "encoding/hex" "encoding/json" "fmt" "io" "mime" "net/http" "net/url" "os" "sort" "strconv" "strings" "time" "github.com/julienschmidt/httprouter" "gitlab.com/NebulousLabs/errors" "gitlab.com/SkynetLabs/skyd/build" "gitlab.com/SkynetL...
// Copyright (c) 2016 Rackspace // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
/* (c) Copyright [2021-2022] Micro Focus or one of its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/config/proto/config.proto package proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" proto1 "github.com/google/cloudprober/probes/proto" proto4 "github.com/google/cloudprober/rds/server/proto" proto3 "github....
package win32 import ( "fmt" "github.com/Mengdch/goUtil/TypeTools" "github.com/Mengdch/win" "golang.org/x/sys/windows" "syscall" "unsafe" ) type Thublink struct { _dll *windows.LazyDLL _wkeInitialize *windows.LazyProc _wkeUnInitialize *windows.LazyProc _wkeCreateWebVie...
package irconv import ( "fmt" "go/ast" "go/constant" "go/token" "go/types" "path" "strconv" "strings" "github.com/go-toolsmith/astcopy" "github.com/quasilyte/go-ruleguard/ruleguard/goutil" "github.com/quasilyte/go-ruleguard/ruleguard/ir" "golang.org/x/tools/go/ast/astutil" ) type Context struct { Pkg ...
// Copyright 2019 Yunion // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
// Copyright 2015 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package traceparser parses the trace files produced by runtime.StartTrace package traceparser import ( "fmt" "internal/traceparser/filebuf" "io" "string...
//line sensors.y:2 package main import __yyfmt__ "fmt" //line sensors.y:3 import ( "github.com/timtadh/lexmachine" ) //line sensors.y:11 type yySymType struct { yys int token *lexmachine.Token ast *Node } const AT = 57346 const PLUS = 57347 const STAR = 57348 const DASH = 57349 const SLASH = 57350 const BAC...
package proxy import ( "context" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/x509" "encoding/json" "encoding/pem" "errors" "fmt" "io/ioutil" mrand "math/rand" "net/http" "net/url" "reflect" "strconv" "strings" "time" "github.com/gorilla/websocket" "golang.org/x/crypto/ssh" corev1 "k8s.i...
package k256 import ( "github.com/coinbase/kryptology/internal" "github.com/coinbase/kryptology/pkg/core/curves/native" "github.com/coinbase/kryptology/pkg/core/curves/native/k256/fp" "sync" ) var ( k256PointInitonce sync.Once k256PointParams native.EllipticPointParams k256PointSswuInitOnce ...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // phantomjs.go contains checks through PhantomJS (phantomjs.org) package ht import ( "bytes" "fmt" "image" "image/color" "image/png" "io" "io/ioutil" "os" ...
package app import ( "encoding/json" "fmt" "net/http" "sort" "strconv" "strings" "time" "github.com/gocql/gocql" "github.com/imdevlab/g" "github.com/bsed/trace/pkg/constant" "github.com/bsed/trace/web/internal/misc" "github.com/labstack/echo" "go.uber.org/zap" ) type Trace struct { ID string `j...
package checkly import ( "context" "encoding/json" "fmt" "io" "log" "net/http" "time" ) // Client is an interface that implements Checkly's API type Client interface { // Create creates a new check with the specified details. // It returns the newly-created check, or an error. // // Deprecated: method type...
// Copyright © 2016 Zenly <<EMAIL>>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
package rigger import ( "fmt" "github.com/AsynkronIT/protoactor-go/actor" "github.com/AsynkronIT/protoactor-go/cluster" log "github.com/sirupsen/logrus" "github.com/spf13/viper" "os" "os/signal" "strings" "sync" "time" ) // 所有rigger应用的根 var root *actor.ActorSystem var clusterInstance *cluster.Cluster func i...
/* * Copyright © 2019 Splunk, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"): you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
package main import ( "fmt" "image" "os" "os/signal" "strings" "github.com/dnjp/9fans/draw" "github.com/dnjp/sam/kb" "github.com/dnjp/sam/mesg" ) var ( cmd Text cursor *draw.Cursor which *Flayer work *Flayer snarflen int typestart int = -1 typeend int = -1 ...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️ // 🤖 Github Repository: https://github.com/gofiber/fiber // 📌 API Documentation: https://docs.gofiber.io package fiber import ( "bytes" "crypto/tls" "fmt" "hash/crc32" "io" "net" "os" "path/filepath" "reflect" "strings" "time" "unsaf...
package chainntnfs import ( "bytes" "encoding/hex" "errors" "fmt" "strings" "sync" "github.com/ltcsuite/ltcd/btcjson" "github.com/ltcsuite/ltcd/chaincfg/chainhash" "github.com/ltcsuite/ltcd/wire" ) var ( // ErrChainNotifierShuttingDown is used when we are trying to // measure a spend notification when not...
// Copyright 2015 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package constants const ( SCZero = 0 SCReturnValue = 1 SCScriptDLLTerminate = 2 SCExecEventProc = 3 SCPauseResumeScript = 4 SCLangVersion = 5 SCErrorReport = 6 SCClearEvent...
// Core Raft implementation - Consensus Module. // // <NAME> [https://eli.thegreenplace.net] // This code is in the public domain. package raft import ( "bytes" "encoding/gob" "fmt" "log" "math/rand" "os" "sync" "sync/atomic" "time" ) const DebugCM = 1 // CommitEntry is the data reported by Raft to the comm...
package eksconfig import ( "errors" "fmt" "path/filepath" "strconv" "strings" "time" "github.com/aws/aws-k8s-tester/ec2config" "github.com/aws/aws-k8s-tester/pkg/timeutil" "github.com/aws/aws-sdk-go/service/eks" ) // AddOnManagedNodeGroups defines parameters for EKS "Managed Node Group" creation. // ref. ht...
package ssproxy // code from https://github.com/pmezard/adblock/blob/master/adblock/rules.go import ( "bufio" "bytes" "fmt" "io" "os" "regexp" "strings" "time" ) const ( Exact = iota // string to match Wildcard = iota // * Separator = iota // ^ StartAnchor = iota // | DomainAnchor = iota /...
// Copyright 2021 BastionZero Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in wr...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: flyteidl/core/execution.proto package core import ( fmt "fmt" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = pr...
/* * Copyright The moby Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
package zenodb import ( "fmt" "hash" "io" "runtime" "sort" "strings" "sync" "sync/atomic" "time" "github.com/dustin/go-humanize" "github.com/getlantern/bytemap" "github.com/getlantern/errors" "github.com/getlantern/goexpr" "github.com/getlantern/wal" "github.com/getlantern/zenodb/common" "github.com/g...
package appkit import ( "io" "net/http" "time" "github.com/Sirupsen/logrus" "github.com/julienschmidt/httprouter" "github.com/theduke/go-apperror" db "github.com/theduke/go-dukedb" ) type Model interface { Collection() string GetId() interface{} SetId(id interface{}) error GetStrId() string SetStrId(id s...
package glmatrix import ( "fmt" "math" ) // Quat2Create creates a new identity dual quat func Quat2Create() []float64 { return []float64{ 0, 0, 0, 1, 0, 0, 0, 0, } } // Quat2Clone creates a new quat initialized with values from an existing quaternion func Quat2Clone(a []float64) []float64 { return []float64...
/* * Sematext Cloud API * * API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`. * * API version: v3 * Generated by: Swagger Codegen (https://github...
package main import ( "io/ioutil" "os" "strconv" "strings" "github.com/cri-o/ocicni/pkg/ocicni" "github.com/docker/docker/daemon/caps" "github.com/docker/docker/pkg/mount" "github.com/docker/docker/profiles/seccomp" "github.com/docker/go-units" "github.com/opencontainers/runc/libcontainer/configs" "github....
// Copyright (c) 2017 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package server import ( "bufio" "bytes" "net/http" "strings" "time" "github.com/buildkite/terminal-to-html" "github.com/gorilla/mux" "github.com/seatgeek/nomad-helper/command/node" "github.com/seatgeek/nomad-helper/helpers" log "github.com/sirupsen/logrus" cli "github.com/urfave/cli" ) func Run(a *cli.App...
package sources // -----> IMPORTANT / DISCLAIMER <----- // The source of this file was extracted from https://github.com/google/go-github package // // Copyright 2016 The go-github AUTHORS. All rights reserved. import ( "encoding/json" "time" ) // Source from https://github.com/google/go-github // I extract only t...
package server import ( "encoding/json" "errors" "fmt" "io" "os" "path/filepath" "strconv" "strings" "syscall" "github.com/Sirupsen/logrus" "github.com/docker/docker/pkg/stringid" "github.com/docker/docker/pkg/symlink" "github.com/kubernetes-incubator/cri-o/oci" "github.com/kubernetes-incubator/cri-o/se...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
package virtualmachine import ( "encoding/xml" "github.com/Azure/azure-sdk-for-go/management" vmdisk "github.com/Azure/azure-sdk-for-go/management/virtualmachinedisk" ) // VirtualMachineClient is used to perform operations on Azure Virtual Machines type VirtualMachineClient struct { client management.Client } /...
package exif import ( "bytes" "fmt" "os" "reflect" "sort" "testing" "encoding/binary" "io/ioutil" "github.com/dsoprea/go-logging" "github.com/dsoprea/go-exif/v2/common" ) func TestVisit(t *testing.T) { defer func() { if state := recover(); state != nil { err := log.Wrap(state.(error)) log.PrintE...
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package protopack enables manual encoding and decoding of protobuf wire data. // // This package is intended for use in debugging and/or creation of test dat...
package mapping import ( "fmt" "github.com/jteutenberg/downpore/seeds" "github.com/jteutenberg/downpore/sequence" "github.com/jteutenberg/downpore/util" "sort" ) type Mapping struct { Query sequence.Sequence Start int End int QueryOffset int QueryInset int RC bool match ...
/* Copyright 2021 RadonDB. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distri...
// Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package discovery import ( "errors" "sync" "sync/atomic" "time" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/lightningnetwork/lnd/lnpeer" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/routing/route" "github.com/lightningnetwork/lnd/ticker" ) const ( // DefaultSyncer...
package rollbar import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "net/http" "os" "regexp" "runtime" "reflect" ) // A Client can be used to interact with Rollbar via the configured Transport. // The functions at the root of the `rollbar` package are the recommend way of using a Client. One // ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.18.0 // source: envoy/config/filter/http/modsec/v2/modsecurity_filter.proto // package modsecurity.filter; package envoy_extensions_filters_http_modsecurity_v1 import ( _ "github.com/cncf/xds/go/udpa/annotat...
// Copyright 2019 dfuse Platform Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
// Code generated by protoc-gen-go. // source: peer/transaction.proto // DO NOT EDIT! package peer import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/golang/protobuf/ptypes/timestamp" import common "github.com/hyperledger/fabric/protos/common" // Reference import...
/* Copyright 2021 The GoPlus Authors (goplus.org) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
package clusterresource import ( "context" "encoding/json" "fmt" "io/ioutil" "os" "path" "path/filepath" "runtime/debug" "strings" "time" "github.com/flyteorg/flyteadmin/pkg/executioncluster" "github.com/flyteorg/flyteadmin/pkg/runtime" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime/schema...
// // Treasure Data API client for Go // // Copyright (C) 2014 Treasure Data, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // /...
// Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
package node import ( "fmt" "reflect" "sort" "sync" "time" "github.com/andrecronje/babble/src/common" hg "github.com/andrecronje/babble/src/hashgraph" "github.com/andrecronje/babble/src/peers" "github.com/andrecronje/babble/src/proxy" "github.com/sirupsen/logrus" ) //Core is the core Node object type Core ...
package cmd import ( "context" "fmt" "net/url" "os" "path/filepath" "strings" "sync/atomic" "time" "github.com/Azure/azure-pipeline-go/pipeline" "github.com/Azure/azure-storage-azcopy/common" "github.com/Azure/azure-storage-azcopy/ste" "github.com/Azure/azure-storage-blob-go/azblob" ) type syncUploadEnum...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.2 // source: proxy/vless/outbound/config.proto package outbound import ( net "github.com/v2fly/v2ray-core/v5/common/net" packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr" protocol "github...
// Copyright 2021 Saferwall. All rights reserved. // Use of this source code is governed by Apache v2 license // license that can be found in the LICENSE file. package pe import ( "encoding/binary" ) // ImageNtHeader represents the PE header and is the general term for a structure // named IMAGE_NT_HEADERS. type Im...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api/config/cereal/config_request.proto package cereal import ( fmt "fmt" shared "github.com/chef/automate/api/config/shared" _ "github.com/chef/automate/components/automate-grpc/protoc-gen-a2-config/api/a2conf" proto "github.com/golang/protobuf/proto" w...
// Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Package chromecrash contains functionality shared by tests that // exercise Chrome crash-dumping. package chromecrash import ( "bufio" "context" ...
package v0 import ( "fmt" "os" "sort" "github.com/orientwalt/htdf/x/evm" "github.com/orientwalt/htdf/app/protocol" "github.com/orientwalt/htdf/codec" sdk "github.com/orientwalt/htdf/types" "github.com/orientwalt/htdf/x/auth" "github.com/orientwalt/htdf/x/bank" "github.com/orientwalt/htdf/x/crisis" distr "...
// Copyright (c) 2016-2019 <NAME>. All rights reserved. // Copyright (c) 2016-2019 <NAME>. All rights reserved. // Copyright (c) 2020-2021 Oasis Labs Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions a...
package cmd import ( "fmt" "log" "math" "os" "runtime" "sort" "time" "github.com/phil-mansfield/shellfish/io" "github.com/phil-mansfield/shellfish/los/analyze" "github.com/phil-mansfield/shellfish/los/geom" "github.com/phil-mansfield/shellfish/cmd/catalog" "github.com/phil-mansfield/shellfish/cmd/env" "...
package nas import ( "context" "fmt" "os" "path/filepath" "strconv" "sync" "time" cdsNas "github.com/capitalonline/cck-sdk-go/pkg/cck" "github.com/capitalonline/cds-csi-driver/pkg/driver/utils" "github.com/container-storage-interface/spec/lib/go/csi" "github.com/kubernetes-csi/drivers/pkg/csi-common" log ...
package main import ( "fmt" . "fmt" "io" "os" "reflect" "sort" "strings" ) func main() { var testcase string var want, got int var A []int testcase = "1" A = []int{1, 3, 1, 4, 2, 4, 5, 4} want = 6 got = frogRiverOne(5, A) fmt.Printf("Test case:%v g:%d w:%d %v \n", testcase, got, want, got == want) t...
package matcher import ( "context" "flag" "io/ioutil" "os" "path" "path/filepath" "runtime" "strings" "testing" // "github.com/bmatcuk/doublestar" // "github.com/saracen/walker" ) var ErrBadPattern = path.ErrBadPattern type MatchTest struct { pattern, s string result Result err error } var ...
/* Copyright 2021. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed un...