- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 579 for fmt (0.01 sec)
-
istioctl/pkg/kubeinject/google.go
// See the License for the specific language governing permissions and // limitations under the License. package kubeinject import ( "context" "fmt" "net/http" "strings" "golang.org/x/oauth2" "golang.org/x/oauth2/google" ) func isMCPAddr(addr string) bool { // A bit inexact but should be good enough.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 1.2K bytes - Viewed (0) -
tests/create_test.go
} if _, ok := records[0]["@id"]; ok && fmt.Sprint(res2["id"]) != fmt.Sprint(records[0]["@id"]) { t.Errorf("failed to create data from map with table, @id != id, got %v, expect %v", res2["id"], records[0]["@id"]) } if _, ok := records[1]["id"]; ok && fmt.Sprint(res3["id"]) != fmt.Sprint(records[1]["@id"]) { t.Errorf("failed to create data from map with table, @id != id") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "context" "encoding/json" "fmt" "net" "net/netip" "strings" "testing" "github.com/stretchr/testify/mock" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types"
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
clause/limit_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestLimit(t *testing.T) { limit0 := 0 limit10 := 10 limit50 := 50 limitNeg10 := -10 results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{ Limit: &limit10, Offset: 20, }},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Feb 06 02:54:40 UTC 2024 - 2.3K bytes - Viewed (0) -
internal/config/lambda/event/targetid.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "encoding/json" "fmt" "strings" ) // TargetID - holds identification and name strings of notification target. type TargetID struct { ID string Name string } // String - returns string representation.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 1.8K bytes - Viewed (0) -
istioctl/cmd/istioctl/main.go
// limitations under the License. package main import ( "fmt" "os" // import all known client auth plugins _ "k8s.io/client-go/plugin/pkg/client/auth" "istio.io/istio/istioctl/cmd" "istio.io/istio/pkg/log" ) func main() { if err := cmd.ConfigAndEnvProcessing(); err != nil { fmt.Fprintf(os.Stderr, "Could not initialize: %v\n", err) exitCode := cmd.GetExitCode(err)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.1K bytes - Viewed (0) -
internal/http/listener.go
l, e := listenCfg.Listen(ctx, "tcp", serverAddr) if e != nil { if opts.Trace != nil { opts.Trace(fmt.Sprint("listenCfg.Listen: ", e)) } listenErrs[i] = e continue } if opts.Trace != nil { opts.Trace(fmt.Sprint("adding listener to ", l.Addr())) } listeners = append(listeners, l) } if len(listeners) == 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 23 10:53:03 UTC 2024 - 5.6K bytes - Viewed (0) -
internal/logger/logger.go
consoleTgt.Send(ctx, errToEntry(ctx, "logging", fmt.Errorf("unable to send log event to Logger target (%s): %v", t.String(), err), entry.Level)) } } } } // Event sends a event log to log targets func Event(ctx context.Context, subsystem, msg string, args ...interface{}) { if DisableLog { return } entry := logToEntry(ctx, subsystem, fmt.Sprintf(msg, args...), EventKind) sendLog(ctx, entry) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 22 09:43:48 UTC 2024 - 12.4K bytes - Viewed (0) -
docs/site-replication/gen-oidc-sts-cred.go
// credentials. It is for MinIO testing purposes only. // // Run like: // // $ MINIO_ENDPOINT=http://localhost:9000 go run gen-oidc-sts-cred.go import ( "context" "fmt" "log" "net/http" "os" cr "github.com/minio/minio-go/v7/pkg/credentials" cmd "github.com/minio/minio/cmd" ) func main() { ctx := context.Background() endpoint := os.Getenv("MINIO_ENDPOINT")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 29 01:27:09 UTC 2022 - 2.3K bytes - Viewed (0) -
internal/grid/README.md
Sample handler: ```go handler := func(ctx context.Context, payload []byte, in <-chan []byte, out chan<- []byte) *RemoteErr { fmt.Println("Got request with initial payload", p, "from", GetCaller(ctx context.Context)) fmt.Println("Subroute:", GetSubroute(ctx)) for { select { case <-ctx.Done(): return nil case req, ok := <-in:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0)