text
stringlengths
5.51k
28.1k
/* Copyright 2018 Gravitational, 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 writing, soft...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.3 // source: ci/codebuild.proto package ci import ( proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflect/protore...
package cpu import ( "sort" "github.com/tbtommyb/goboy/pkg/constants" c "github.com/tbtommyb/goboy/pkg/constants" ) const SpriteDataStartAddress = 0x8000 type GPU struct { cpu *CPU display DisplayInterface cyclesCounter uint vBlankCounter uint oams []*oamEnt...
// Copyright 2020 Google LLC. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// +build e2e /* Copyright 2019 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 ...
// Copyright (c) 2012 - Cloud Instruments Co., Ltd. // // All rights reserved. // // 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 the above copyright notice, th...
package gossip import ( "errors" "fmt" "math/big" "sync" "time" mapset "github.com/deckarep/golang-set" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/rlp" "github.com/Fantom-foundation/go-lachesi...
// Copyright 2021 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 a...
package discovery import ( "crypto/tls" "context" cert "crypto/x509" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "os" "strings" "strconv" "gopkg.in/yaml.v2" apiextensionsclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1" apiextensionsv1bet...
package denny import ( "context" "encoding/json" "errors" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" "net" "net/http" "os" "os/signal" "reflect" "regexp" "strings" "sync" "syscall" "time" "github.com/gin-gonic/gin" "github.com/gin-gonic/gin/binding" "github.co...
package main import ( "encoding/json" "fmt" "log" "net/http" "strconv" geometry "github.com/andrewlunde/thetaoffchaingo" "github.com/spf13/viper" "github.com/andrewlunde/greetings" "github.com/thetatoken/theta/query" "github.com/thetatoken/theta/tx" ) func helloHandler(w http.ResponseWriter, r *http.Requ...
package relayer // DONTCOVER import ( "bytes" "context" "crypto/ecdsa" "encoding/hex" "errors" "fmt" "github.com/Sifchain/sifnode/cmd/ebrelayer/internal/symbol_translator" "log" "math/big" "os" "os/signal" "strconv" "sync" "syscall" "time" "github.com/Sifchain/sifnode/cmd/ebrelayer/contract" cosmosb...
/* * 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 types import ( "context" "fmt" "sync" "sync/atomic" "time" dcSDK "githu...
// Package cluster holds the cluster CRD logic and definitions // A cluster is comprised of a primary service, replica service, // primary deployment, and replica deployment package cluster /* Copyright 2017 Crunchy Data Solutions, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: session/configuration.proto package session import ( fmt "fmt" proto "github.com/golang/protobuf/proto" behavior "github.com/havoc-io/mutagen/pkg/filesystem/behavior" sync "github.com/havoc-io/mutagen/pkg/sync" math "math" ) // Reference imports to sup...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/custom_interest.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github...
package gateway import ( "context" "fmt" "strconv" "strings" "sync" "time" "github.com/gorilla/websocket" pb "github.com/holdno/firetower/grpc/manager" "github.com/holdno/firetower/socket" "github.com/holdno/snowFlakeByGo" json "github.com/json-iterator/go" ) var ( topicManage *socket.TcpClient // topic...
package main import ( "context" "encoding/json" "fmt" "sort" "strings" "time" buildahcli "github.com/containers/buildah/pkg/cli" "github.com/containers/buildah/pkg/formats" "github.com/containers/buildah/pkg/parse" is "github.com/containers/image/v5/storage" "github.com/containers/image/v5/types" "github....
// Copyright (c) 2020-2021 Blockwatch Data Inc. // Author: <EMAIL> package tezos var ( ProtoGenesis = ParseProtocolHashSafe("PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i") ProtoBootstrap = ParseProtocolHashSafe("PtYuensgYBb3G3x1hLLbCmcav8ue8Kyd2khADcL5LsT5R1hcXex") ProtoV000 = ParseProtocolHashSafe("...
package main import ( "fmt" "github.com/gomarkdown/markdown" ) type TableIn []struct { Chance int `json:"Chance,omitempty"` Description string `json:"Description,omitempty"` } type TableOutItem struct { Match []int `json:"match,omitempty"` Data string `json:"data,omitempty"` } type TableOut struct ...
package sprite import ( "math" "github.com/losinggeneration/hge" "github.com/losinggeneration/hge/gfx" "github.com/losinggeneration/hge/helpers/rect" ) type Sprite struct { gfx.Quad TX, TY, W, H float64 TexW, TexH float64 HotX, HotY float64 XFlip, YFlip, HSFlip bool } func New(t...
package centrify import ( "errors" "github.com/centrify/terraform-provider/cloud-golang-sdk/restapi" ) // VaultSystem - Encapsulates a single Generic System type VaultSystem struct { // System -> Settings menu related settings vaultObject apiGetChallenge string apiAddToSets string setTable string ...
package keys // #include <stdlib.h> // #include "SDL.h" import "C" import ( "unsafe" ) // Scancode represents a keyboard key. type Scancode int32 // ScancodeFromName returns the scancode for a human-readable name // or ScancodeUnknown if name isn't recognized. func ScancodeFromName(name string) Scancode { cname :...
package sharder import ( "context" "fmt" "runtime" "time" "0chain.net/chaincore/block" "0chain.net/chaincore/node" "0chain.net/chaincore/round" . "0chain.net/core/logging" "github.com/rcrowley/go-metrics" "go.uber.org/zap" ) // HealthCheckDateTimeFormat - var HealthCheckDateTimeFormat = "2006-01-02T15:04:0...
package phpipam import ( "context" "fmt" "net" "time" "net/http" // "net/url" "os" "io/ioutil" "strings" //"github.com/dougbtv/whereabouts/pkg/allocate" "github.com/dougbtv/whereabouts/pkg/logging" "github.com/dougbtv/whereabouts/pkg/types" "github.com/dougbtv/whereabouts/pkg/podData" "encoding/jso...
// Copyright 2021 Antrea 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 ...
// Copyright 2022 The Ebiten 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...
package webhook import ( "context" "crypto/tls" "crypto/x509" "encoding/json" "fmt" "net/http" "reflect" "sort" "strings" "time" "github.com/go-openapi/inflect" "github.com/pkg/errors" "go.uber.org/zap" admissionv1 "k8s.io/api/admission/v1" admissionregistrationv1 "k8s.io/api/admissionregistration/v1" ...
package swagvalidator import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "reflect" "runtime" "strconv" "strings" "github.com/gin-gonic/gin" "github.com/labstack/echo/v4" "github.com/miketonks/swag" "github.com/miketonks/swag/swagger" "github.com/xeipuuv/gojsonschema" ) // MaxMemory ... const...
// Copyright 2019-2021 The Liqo 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: types.proto package api_pb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-t...
// +build go_run_only package main import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "os" "path" "sort" "strconv" "strings" "time" "arp242.net/uni/unidata" "zgo.at/zli" ) func main() { var err error if len(os.Args) > 1 { err = run(os.Args[1]) zli.F(err) return } err = run("...
// Copyright 2021 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 nex import ( "fmt" goLog "log" "net/http" "os" "os/signal" "syscall" "time" "github.com/cruisechang/nex/builtinEvent" "github.com/cruisechang/nex/entity" "github.com/cruisechang/nex/event" nxhttp "github.com/cruisechang/nex/http" nxlog "github.com/cruisechang/nex/log" nxRPC "github.com/cruisechan...
package driver import ( "fmt" "net" "net/url" "github.com/docker/machine/libmachine/mcnutils" "github.com/Spirals-Team/docker-machine-driver-g5k/api" "github.com/docker/machine/libmachine/drivers" "github.com/docker/machine/libmachine/log" "github.com/docker/machine/libmachine/mcnflag" "github.com/docker/m...
package webhook import ( "errors" "fmt" "regexp" "strings" "sync" "time" "github.com/yahoo/athenz/clients/go/zms" v1 "github.com/yahoo/k8s-athenz-syncer/pkg/apis/athenz/v1" corev1 "k8s.io/api/core/v1" "k8s.io/client-go/tools/cache" ) const ( lastUpdateKeyField = "latest_contact" CacheActive = true...
package executor import ( "encoding/json" "fmt" "io/ioutil" "math/rand" "path/filepath" "sync" "testing" "time" "github.com/gogo/protobuf/proto" "github.com/golang/mock/gomock" "github.com/meshplus/bitxhub-kit/crypto" "github.com/meshplus/bitxhub-kit/crypto/asym" "github.com/meshplus/bitxhub-kit/log" "g...
package table import ( "fmt" "github.com/spacemeshos/go-spacemesh/log" "github.com/spacemeshos/go-spacemesh/p2p/dht" "github.com/spacemeshos/go-spacemesh/p2p/node" "sort" ) // RoutingTable manages routing to peers. // All uppercase methods visible to externals packages are thread-safe. // Don't call package-leve...
// Copyright 2021 The CDK Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use 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...
// Copyright(c) 2017-2018 Zededa, Inc. // All rights reserved. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1-devel // protoc v3.12.2 // source: register/register.proto package register import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimp...
// Copyright 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" file ...
// Code generated by protoc-gen-go. // source: ospfv3_edm_flood_list.proto // DO NOT EDIT! /* Package cisco_ios_xr_ipv6_ospfv3_oper_ospfv3_processes_process_vrfs_vrf_flood_list_process_table_flood is a generated protocol buffer package. It is generated from these files: ospfv3_edm_flood_list.proto It has these top-...
// KATO, Application Management Platform // Copyright (C) 2021 Gridworkz Co., Ltd. // 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 r...
// Copyright 2017 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package main import ( "fmt" "io/ioutil" "os" "path/filepath" "time" "github.com/google/syzkaller/dashboard/dashapi" "github.com/google/syzkaller/p...
package mocktesting import ( "fmt" "io/ioutil" "os" "reflect" "runtime" "strings" "sync" "testing" "time" ) // TestingT is an interface covering *mocktesting.T's internal use of // *testing.T. See WithTestingT() for more details. type TestingT interface { Fatal(args ...interface{}) } // T is a fake/mock im...
package api import ( "encoding/json" "github.com/imroc/req" ) func (api *WeiboAPI) GetUserPagesIndex(uid string, page int) (*WeiboUserListPageIndex, error) { containerId, err := api.GetContainerId(uid) if err != nil { return nil, err } res, err := req.Get( "https://m.weibo.cn/api/container/getIndex", req...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.20.1 // protoc v3.11.4 // source: example.proto package demo_protobuf import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.go...
// Copyright 2019 The Scriggo 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 compiler import ( "errors" "fmt" "reflect" "strings" "unicode" "github.com/open2b/scriggo/ast" "github.com/open2b/scriggo/internal/compile...
// Copyright 2020 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 repos import ( "bytes" "testing" ) func TestNextSlice(t *testing.T) { data := []struct { s1 []byte cs1 []byte st versionT ns1 []byte }{ {[]byte{'!'}, []byte{'!'}, vT_MSC, []byte{}}, {[]byte("1.1"), []byte{'1'}, vT_NUM, []byte(".1")}, {[]byte("10.3"), []byte("10"), vT_NUM, []byte(".3")}, ...
// Copyright (c) 2018 The MATRIX Authors // Distributed under the MIT software license, see the accompanying // file COPYING or or http://www.opensource.org/licenses/mit-license.php package core import ( "math/big" "runtime" "sync" "github.com/MatrixAINetwork/go-matrix/reward/util" "github.com/MatrixAINetwork/...
package api import ( "github.com/revel/revel" // "encoding/json" "github.com/leanote/leanote/app/info" . "github.com/leanote/leanote/app/lea" "gopkg.in/mgo.v2/bson" "os" "os/exec" // "strings" "time" "regexp" // "github.com/leanote/leanote/app/types" // "io/ioutil" // "fmt" // "bytes" // "os" ) // 笔记AP...
// Copyright 2019 <NAME> // // 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 writin...
package main import ( "flag" "fmt" "io/ioutil" "log" "math" "os" "os/exec" "path" "regexp" "sort" "strings" "text/template" "time" yaml "gopkg.in/yaml.v2" "github.com/boltdb/bolt" "github.com/fatih/color" "github.com/jbrukh/bayesian" "github.com/manishrjain/keys" ) const defaultTxnTemplateString =...
/* Copyright 2019 Cisco Systems 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 d...
// Copyright 2020 The Monogon Project Authors. // // SPDX-License-Identifier: Apache-2.0 // // 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...
package tbk import ( "net/url" "github.com/bububa/opentaobao/model" ) /* 淘宝客-推广者-物料搜索 APIRequest taobao.tbk.dg.material.optional 通用物料搜索API(导购) */ type TaobaoTbkDgMaterialOptionalRequest struct { model.Params // 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 startDsr int64 // 页大小,默...
package netsuite import ( "encoding/xml" "strings" "github.com/cydev/zero" "github.com/omniboost/go-netsuite-soap/omitempty" ) type RecordRef struct { InternalID string `xml:"internalId,attr,omitempty"` ExternalID string `xml:"externalId,attr,omitempty"` Name string `xml:"name,omitempty"` } func (r Rec...
package main import ( "database/sql" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "os" "strings" "sync" "time" _ "github.com/mattn/go-sqlite3" ) var ( manifestUrls = flag.String("manifest_urls", "manifest_urls", "A file containing a list of manifest URLs on each line.") ou...
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "net/url" "os" "os/signal" "path/filepath" "syscall" "time" //"./picbed" //"github.com/atotto/clipboard" "github.com/urfave/cli/v2" "gitlab.com/jinfagang/colorgo" "gopkg.in/yaml.v2" "blackpearl/src/components" "blackpearl/src/...
// Copyright (C) 2017 Librato, Inc. All rights reserved. package metrics import ( "bytes" "math" "net" "os" "runtime" "strconv" "testing" "time" "github.com/appoptics/appoptics-apm-go/v1/ao/internal/bson" "github.com/appoptics/appoptics-apm-go/v1/ao/internal/hdrhist" "github.com/appoptics/appoptics-apm-go...
// NOTE: this is statically generated file was put here manually. package v1 import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not...
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The MIT License (MIT) // Copyright (c) 2016 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and ass...
package backend import ( "context" "encoding/json" "fmt" "io" "io/ioutil" "log" "os" "os/exec" "path/filepath" "regexp" "runtime" "strings" "text/template" "time" "github.com/gofrs/flock" "github.com/google/uuid" "github.com/pelletier/go-toml" "github.com/pkg/errors" ) type formatType int const ( ...
/* * Copyright (C) 2016 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 ofthe License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package host import ( "encoding/hex" "encoding/json" "errors" "io/ioutil" "os" "path/filepath" "sync" "github.com/NebulousLabs/bolt" "github.com/NebulousLabs/Sia/build" "github.com/NebulousLabs/Sia/crypto" "github.com/NebulousLabs/Sia/modules" "github.com/NebulousLabs/Sia/persist" "github.com/NebulousLa...
package generator import ( "bytes" "fmt" "log" "os" "path" "strings" "text/template" "github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" "github.com/gogo/protobuf/protoc-gen-gogo/generator" plugin_go "github.com/gogo/protobuf/protoc-gen-gogo/plugin" ) const apiTemplate =...
// 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 2015 <NAME> and The Caddy 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...
package testutils import ( "errors" "fmt" "io/ioutil" "net" "os" "reflect" "testing" "time" "golang.org/x/net/context" "google.golang.org/grpc" etcdraft "github.com/coreos/etcd/raft" "github.com/docker/swarmkit/api" "github.com/docker/swarmkit/ca" cautils "github.com/docker/swarmkit/ca/testutils" "gi...
// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT. // $ bundle -pkg godo -prefix ./dev/dist/godo package godo import ( "time" ) // App An application's configuration and status. type App struct { ID string `json:"id,omitempty"` OwnerUUID string `json:"...
package endless import ( "crypto/tls" "errors" "fmt" "log" "net" "net/http" "os" "os/exec" "os/signal" "runtime" "strings" "sync" "syscall" "time" // "github.com/fvbock/uds-go/introspect" ) const ( PRE_SIGNAL = iota POST_SIGNAL STATE_INIT STATE_RUNNING STATE_SHUTTING_DOWN STATE_TERMINATE ) var ...
/* Copyright IBM Corp. 2016 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. 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...
package grpc import ( "context" "crypto/x509" "fmt" "io" "log" "net" "os" "os/signal" "strconv" "syscall" "time" "sshare/pkg/logger" "sshare/pkg/ssh" "sshare/pkg/version" pb "sshare/protobuf" "github.com/briandowns/spinner" "github.com/fatih/color" "github.com/google/uuid" grpc_retry "github.com/g...
// Code generated by goyacc -p cond cond.y. DO NOT EDIT. //line cond.y:21 package parser import __yyfmt__ "fmt" //line cond.y:22 import ( "fmt" "go/token" ) //line cond.y:31 type condSymType struct { yys int Node Node str string } const IDENT = 57346 const LAND = 57347 const LOR = 57348 const LPAREN = 573...
package geek import ( "bufio" "bytes" "reflect" "testing" "time" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "google.golang.org/protobuf/types/known/timestamppb" ) var readWriteCases = []struct { k interface{} name string ipcFormat []byte }{ {true, "boolean: 1b", []...
package cli import ( "crypto/tls" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "os" "path" "path/filepath" "runtime" "runtime/debug" "strings" "time" "github.com/logrusorgru/aurora" "github.com/mattn/go-colorable" "github.com/mattn/go-isatty" "github.com/spf13/cobra" "github.com/spf13/pflag" "...
package wildflyserver import ( "context" "fmt" "regexp" "strconv" "strings" "sync" "github.com/go-logr/logr" "github.com/tevino/abool" wildflyv1alpha1 "github.com/wildfly/wildfly-operator/pkg/apis/wildfly/v1alpha1" wildflyutil "github.com/wildfly/wildfly-operator/pkg/controller/util" "github.com/wildfly/wi...
package origin import ( "bytes" "encoding/json" "errors" "fmt" "net/http" "regexp" "sort" restful "github.com/emicklei/go-restful" "github.com/golang/glog" kapi "k8s.io/kubernetes/pkg/api" kapierrors "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/apiser...
/* Copyright 2014 The Kubernetes Authors 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. 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 2014 Google Inc. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/group_placement_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources" ...
// Copyright (c) 2020 10X Genomics, Inc. All rights reserved. package core // Data structures for managing stage performance information. // Functions: // - Reduce jobinfo to important metrics // - Compute aggregational stats multiple jobinfos // - Get arguments and compute file sizes (if they exist) import ( "fmt"...
/* Copyright 2021 The Vitess 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, soft...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1p1beta1/notification_config.proto package securitycenter import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress ...
package ls import ( "context" "fmt" "reflect" "sort" "strconv" "github.com/aws/aws-sdk-go/service/elbv2" "github.com/kubernetes-sigs/aws-alb-ingress-controller/internal/alb/tg" "github.com/kubernetes-sigs/aws-alb-ingress-controller/internal/albctx" "github.com/kubernetes-sigs/aws-alb-ingress-controller/inter...
// // Copyright 2020-2022 <NAME> // // 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 tsl import ( "bytes" "fmt" "strconv" "strings" "time" ) var toPromQl = [...]string{ MEAN: "avg", ADDSERIES: "+", ANDL: "and", ORL: "or", SUBSERIES: "-", MULSERIES: "*", DIVSERIES: "/", EQUAL: "==", NOTEQUAL: "!=", PERCENTILE: "quantile", GREAT...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this fi...
package parser import ( "fmt" "strings" "github.com/fract-lang/fract/oop" "github.com/fract-lang/fract/pkg/fract" "github.com/fract-lang/fract/pkg/obj" ) // funcCall is instance for function calls. type funcCall struct { fn *oop.Function errTk obj.Token args []oop.VarDef } func (c *funcCall) Func() *oop...
package db import ( "context" "database/sql" "errors" "flag" "fmt" "os" "strings" "time" golog "log" "github.com/buildbuddy-io/buildbuddy/server/interfaces" "github.com/prometheus/client_golang/prometheus" "gorm.io/gorm" "gorm.io/gorm/logger" // We support MySQL (preferred), Postgresql, and Sqlite3. ...
// Copyright 2018 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...
/* * Copyright 2017 XLAB d.o.o. * * 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 deployfabric import ( "fmt" "encoding/json" "github.com/wingbaas/platformsrv/logger" "github.com/wingbaas/platformsrv/k8s" "github.com/wingbaas/platformsrv/utils" "github.com/wingbaas/platformsrv/certgenerate/fabric" ) const ( KUBERNETES_DEPLOY_FAILED string = "Failure" ) //service struct define typ...
// Copyright 2015 Google Inc. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright (c) 2016 Tigera, Inc. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
package plugins import ( "fmt" "log" "strconv" hProtocol "github.com/stellar/go/protocols/horizon" "github.com/stellar/go/txnbuild" "github.com/stellar/kelp/support/utils" ) // SubmitFilter allows you to filter out operations before submitting to the network type SubmitFilter interface { Apply( ops []txnbui...
// Copyright 2021 The CDK Authors // Copyright 2016 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use 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 ...
package service import ( "context" "fmt" "hash/fnv" "log" "os" "strconv" "time" "github.com/coreos/etcd/etcdserver/stats" "github.com/coreos/etcd/pkg/fileutil" "github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/wal/walpb" "github.com/coreos/etcd/raft" "github.com/coreos/etcd/raft/raftpb" "githu...
// // Copyright (c) 2021 <NAME> // // All rights reserved. // package main import ( "flag" "fmt" "io" "log" "os" "strings" ) func main() { log.SetFlags(0) flag.Parse() for _, arg := range flag.Args() { err := processFile(arg) if err != nil { log.Fatalf("%s: %s", arg, err) } } } type Region struc...