text stringlengths 5.51k 28.1k |
|---|
package snapshot_test
import (
"bytes"
"crypto/ed25519"
"fmt"
"math/rand"
"os"
"sort"
"testing"
"time"
"github.com/blang/vfs/memfs"
"github.com/dustin/go-humanize"
"github.com/stretchr/testify/require"
"github.com/gohornet/hornet/pkg/model/hornet"
"github.com/gohornet/hornet/pkg/model/milestone"
"githu... |
package remoteingress
import (
"bytes"
"context"
"crypto/md5"
"fmt"
"reflect"
"sort"
"time"
log "github.com/sirupsen/logrus"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"... |
package chainvalidate
import (
"errors"
"strings"
"sync"
"time"
belogs "github.com/astaxie/beego/logs"
certutil "github.com/cpusoft/goutil/certutil"
conf "github.com/cpusoft/goutil/conf"
jsonutil "github.com/cpusoft/goutil/jsonutil"
osutil "github.com/cpusoft/goutil/osutil"
"chainvalidate/db"
chainmodel "... |
/*
Copyright 2021 <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 writing,... |
package ipam_test
import (
"os"
"strconv"
"testing"
danmtypes "github.com/nokia/danm/crd/apis/danm/v1"
"github.com/nokia/danm/pkg/ipam"
stubs "github.com/nokia/danm/test/stubs/danm"
"github.com/nokia/danm/test/utils"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
var testNets = []danmtypes.DanmNet {... |
package workflow
import (
"context"
kerrors "errors"
"fmt"
"os"
"github.com/Azure/Orkestra/api/v1alpha1"
"github.com/Azure/Orkestra/pkg"
v1alpha12 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
helmopv1 "github.com/fluxcd/helm-operator/pkg/apis/helm.fluxcd.io/v1"
"github.com/go-logr/logr"
corev1 "k8s... |
// Copyright 2019 PingCAP, 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... |
// Copyright (C) 2020 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 t... |
// Copyright 2020 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 ast declares the types used to represent syntax trees for Zed
// queries.
package ast
import (
astzed "github.com/brimdata/zed/compiler/ast/zed"
"github.com/brimdata/zed/field"
"github.com/brimdata/zed/order"
)
// This module is derived from the GO AST design pattern in
// https://golang.org/pkg/go/ast/... |
// Copyright 2016 <NAME>, <NAME>. All rights reserved.
// Use of this source code is governed by The MIT License
// found in the accompanying LICENSE file.
package ora_test
import (
"fmt"
"runtime"
"strconv"
"sync"
"testing"
"time"
"gopkg.in/rana/ora.v3"
)
const (
geoTableName = "test_geoloc"
geoTableR... |
package webserver
/*
* Copyright 2020-2021 Aldelo, LP
*
* 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... |
// Package main implements a simple utility to visualise build actions.
package main
import (
"context"
"fmt"
"sort"
"strings"
"time"
"github.com/bazelbuild/remote-apis-sdks/go/pkg/client"
"github.com/bazelbuild/remote-apis-sdks/go/pkg/digest"
pb "github.com/bazelbuild/remote-apis/build/bazel/remote/execution... |
package main
import (
"encoding/csv"
"encoding/json"
"fmt"
"io"
"os"
"regexp"
"sort"
"strings"
"github.com/jprobinson/gtfs"
)
func main() {
stops := writeRoutes()
writeSynonyms(stops)
writeStopLookup(stops)
}
func writeRoutes() map[string]gtfs.Route {
// trip ID => route ID
routesByTrip := getRoutesBy... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proxy/dokodemo/config.proto
package dokodemo
import (
net "github.com/v2fly/v2ray-core/v4/common/net"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/tokenserver/api/machine_token.proto
package tokenserver
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 _ = f... |
// Copyright 2018 The Kubeflow 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 entc, DO NOT EDIT.
package ent
import (
"fmt"
"hope/apps/param/internal/data/ent/task"
"strings"
"time"
"entgo.io/ent/dialect/sql"
)
// Task is the model entity for the Task schema.
type Task struct {
config `json:"-"`
// ID of the ent.
ID int64 `json:"id,omitempty"`
// TaskName holds ... |
/*
* MinIO Cloud Storage, (C) 2019 MinIO, 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 la... |
package main
import (
"archive/zip"
"bytes"
"context"
"crypto/rand"
"crypto/sha256"
"database/sql"
"encoding/base64"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math/big"
"net/http"
"regexp"
"strconv"
"strings"
"time"
"github.com/bwmarrin/discordgo"
"github.com/docopt/docopt-go"
"g... |
// Copyright 2019 spaGO 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 deltarnn
import (
"testing"
"github.com/nlpodyssey/spago/ag"
"github.com/nlpodyssey/spago/losses"
"github.com/nlpodyssey/spago/mat"
"github.com/nl... |
package aliyuncms
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"sync"
"time"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/providers"
"github.com/aliyun/alibaba-cloud-sdk-go/services/cms"
"github.com/influxdata/telegraf"
"github.com/influxda... |
/*
Copyright The casbind Authors.
@Date: 2021/03/12 19:47
*/
package store
import (
"errors"
"expvar"
"fmt"
"log"
"os"
"path/filepath"
"sort"
"strconv"
"sync"
"time"
"github.com/golang/protobuf/proto"
"github.com/WenyXu/casbind/proto/command"
rlog "github.com/WenyXu/casbind/pkg/log"
"github.com/hashi... |
// Copyright 2016 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, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: pb/node.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
co... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 <NAME>
// Package pipelines defines the pipeline API.
package pipelines
import (
"fmt"
"strings"
)
// Pipeline defines a deployment and test pipeline. Its scope is
// everything beyond the build step and unit/integration tests.
type Pipeline struct {
// Stack... |
// Copyright 2018 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 gproxy
import (
"context"
"crypto/tls"
"fmt"
"github.com/autom8ter/machine"
"github.com/graphikDB/gproxy/codec"
"github.com/graphikDB/gproxy/logger"
"github.com/graphikDB/trigger"
"github.com/mwitkow/grpc-proxy/proxy"
"github.com/pkg/errors"
"github.com/soheilhy/cmux"
"go.uber.org/zap"
"golang.org/... |
/*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obta... |
// Copyright 2021 The Chromium 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 state
import (
"context"
"encoding/hex"
"fmt"
"math"
"math/big"
"strings"
"time"
"infra/appengine/weetbix/internal/clustering"
cpb "inf... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/http/transcoder/v2/transcoder.proto
package envoy_config_filter_http_transcoder_v2
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobu... |
package plugins
import (
"fmt"
"time"
"github.com/carrotsong/ion/pkg/log"
"github.com/carrotsong/rtcp"
"github.com/carrotsong/rtp"
"github.com/carrotsong/rtp/codecs"
"github.com/carrotsong/webrtc/v2"
)
const (
maxSN = 65536
maxPktSize = 1000
// kProcessIntervalMs=20 ms
//https://chromium.googlesourc... |
package main
import (
"bytes"
"compress/zlib"
"crypto/sha1"
"encoding/hex"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"math/rand"
"net/http"
"os"
"os/signal"
"path/filepath"
"strings"
"sync"
"syscall"
"time"
)
var httpClient = &http.Client{}
var chunkCache = make(map[string][]byte)
var chunkParentCount = m... |
package api
import (
"context"
"errors"
"fmt"
"strconv"
"strings"
"time"
"github.com/figment-networks/indexing-engine/structs"
"github.com/figment-networks/terra-worker/api/mapper"
codec_types "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/typ... |
/*
* Copyright (c) 2019 InterDigital Communications, 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 ap... |
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"os/user"
"path/filepath"
"regexp"
"runtime"
"strings"
"time"
"github.com/alecthomas/kingpin"
foundation "github.com/estafette/estafette-foundation"
"github.com/rs/zerolog/log"
"gopkg.in/yaml.v2"
)
var (
appgroup stri... |
//Copyright (c) 2016 <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,... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/vision/v1/product_search.proto
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptyp... |
// Code generated by protoc-gen-go.
// source: dnstap.proto
// DO NOT EDIT!
/*
Package dnstap is a generated protocol buffer package.
It is generated from these files:
dnstap.proto
It has these top-level messages:
Dnstap
Message
*/
package dtstats
import "github.com/golang/protobuf/proto"
import json "e... |
package main
import (
"errors"
"flag"
"fmt"
"io/ioutil"
"net/url"
"os"
"path"
"path/filepath"
"strings"
"time"
"github.com/Depado/ginprom"
"github.com/gin-contrib/requestid"
"github.com/gin-gonic/gin"
"github.com/rs/zerolog"
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-sw... |
/*
Copyright (C) 2019 Synopsys, Inc.
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
"... |
/*
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... |
// This file was generated for SObject DandBCompany, API Version v43.0 at 2018-07-30 03:48:09.024857496 -0400 EDT m=+55.369541544
package sobjects
import (
"fmt"
"strings"
)
type DandBCompany struct {
BaseSObject
Address *Address `force:",omitempty"`
City string `f... |
package main
/**** this is the main entrypoint of mauth service
mauth is a webservice used for authorization, authentication, user registration
it uses either a file or an sql as permanent storage
it will use a local cache on a per user basis to store authorization
mauth regroups users, actions, roles (described bel... |
/*
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 2018 The Hugo 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 ... |
// Note: Vuln to SSRF, so internal use only
package main
import (
"bufio"
"crypto/md5"
"fmt"
"html/template"
"io/ioutil"
"log"
"net/http"
"sort"
"strconv"
"strings"
"github.com/003random/difflib"
"github.com/gorilla/mux"
"github.com/yosssi/gohtml"
jsbeautifier "github.com/003random/jsbeautifier-go/jsb... |
// **********************************************************************
// Copyright (c) 2018-2019 <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
// rest... |
package medtronic
import (
"bytes"
"fmt"
"log"
"github.com/ecc1/medtronic/packet"
)
// Command represents a pump command.
type Command byte
//go:generate stringer -type Command
const (
ack Command = 0x06
nak Command = 0x15
cgmWriteTimestamp Command = 0x28
setBasalPatter... |
package pddl
import (
"bufio"
"fmt"
"log"
"os"
"strings"
)
type TokenList []string
var (
requirements = []string{
":strips", ":adl", ":typing", ":negation",
":equality", ":negative-preconditions", ":disjunctive-preconditions",
":existential-preconditions", ":universal-preconditions",
":quantified-preco... |
/*
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 to in writing, ... |
// Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
//
// For more information, please visit: https://github.com/tengge1/ShadowEditor
// You can also visit: https://gitee.com/tengge1/ShadowEditor
//... |
package main
import (
"crypto/md5"
"database/sql"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"os/user"
"path/filepath"
"runtime"
"syscall"
// "time"
"github.com/cznic/ql"
"github.com/dchest/uniuri"
"github.com/fsnotify/fsnotify"
"github.com/op/go-logging" // more complete package to log to different out... |
package util
import (
"fmt"
"regexp"
"strconv"
"strings"
"time"
o "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/util/wait"
e2e "k8s.io/kubernetes/test/e2e/framework"
)
//This will check if operator deployment/daemonset is created sucessfully
//will update sro test case to use this common utils later.
//e... |
package config
import (
"bytes"
"fmt"
frputil "github.com/fatedier/frp/pkg/util/util"
"github.com/koho/frpmgr/pkg/consts"
"github.com/koho/frpmgr/pkg/util"
"github.com/thoas/go-funk"
"gopkg.in/ini.v1"
"strings"
)
type ClientAuth struct {
AuthMethod string `ini:"authentication_method,omitempty"`... |
/*
* Warp (C) 2019- MinIO, 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 ... |
// ========================= eCAL LICENSE =================================
//
// Copyright (C) 2016 - 2019 Continental 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
//
// ... |
package kdb
import (
"bytes"
"errors"
"fmt"
"github.com/nu7hatch/gouuid"
"math"
"reflect"
"time"
"unicode"
)
// Request type
const (
ASYNC = iota
SYNC
RESPONSE
)
// Vector attributes
type Attr int8
const (
NONE Attr = iota
SORTED
UNIQUE
PARTED
GROUPED
)
// Q type constants
const (
K0 int8 = 0 // g... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: im_if_summary_info.proto
package cisco_ios_xr_pfi_im_cmd_oper_interfaces_interface_summary
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = pr... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.15.6
// source: interservice/infra_proxy/response/common.proto
package response
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "go... |
package machine
import (
"encoding/base64"
"fmt"
"strings"
"time"
"k8s.io/apimachinery/pkg/util/validation/field"
"k8s.io/klog/v2"
nutanixClientV3 "github.com/nutanix-cloud-native/prism-go-client/pkg/nutanix/v3"
"github.com/nutanix-cloud-native/prism-go-client/pkg/utils"
machinev1 "github.com/openshift/api/... |
package sftp
// sftp server counterpart
import (
"encoding"
"fmt"
"io"
"io/ioutil"
"os"
"strconv"
"sync"
"syscall"
"time"
"github.com/pkg/errors"
)
const (
sftpServerWorkerCount = 1
)
type ServerDriver interface {
Stat(path string) (os.FileInfo, error)
ListDir(path string) ([]os.FileInfo, error)
Dele... |
package domain
import (
"context"
"encoding/json"
"encoding/xml"
"errors"
"fmt"
"io/ioutil"
"net/http"
"sync"
"github.com/gorilla/mux"
eh "github.com/looplab/eventhorizon"
"github.com/looplab/eventhorizon/commandhandler/aggregate"
eventpublisher "github.com/looplab/eventhorizon/publisher/local"
"github.c... |
/*
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... |
package leet
import (
"fmt"
"io"
"math/rand"
"strconv"
"strings"
"time"
"github.com/go-chat-bot/bot"
"github.com/oddlid/dvdgbot/util"
"github.com/robfig/cron/v3"
"github.com/rs/zerolog/log"
)
// Constants used for module settings, unless corresponding env vars are given
const (
DEF_HOUR = 13 ... |
package storage
import (
"context"
"sort"
"github.com/znbasedb/znbase/pkg/config"
"github.com/znbasedb/znbase/pkg/roachpb"
"github.com/znbasedb/znbase/pkg/util/log"
)
type allocatorLocation struct {
ctx context.Context
}
type contextLocationSpaceKey struct{}
func setLocateSpace(ctx context.Context, value *ro... |
package pkg
import (
"context"
"github.com/micro/go-log"
pb "github.com/opensds/go-panda/datamover/proto"
osdss3 "github.com/opensds/go-panda/s3/proto"
"github.com/micro/go-micro/client"
"os"
"github.com/opensds/go-panda/datamover/pkg/db"
flowtype "github.com/opensds/go-panda/dataflow/pkg/type"
"github.com/... |
/*
Copyright 2020 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 writing, software
distribu... |
/*
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... |
package co
import (
"encoding/hex"
"fmt"
"math/big"
"regexp"
"strconv"
"strings"
ugi "github.com/deelawn/urbit-gob/internal"
"github.com/deelawn/urbit-gob/ob"
)
const (
namePartitionPattern string = ".{1,3}"
pre string = "dozmarbinwansamlitsighidfidlissogdirwacsabwissib" +
"rigsoldopmodf... |
package main
import (
"context"
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"math/rand"
"net/http"
"os"
"path"
"sort"
"strconv"
"strings"
"time"
"gopkg.in/yaml.v2"
"potentials-utils/prefixtree"
"github.com/apex/log"
"github.com/cheggaaa/pb/v3"
"github.com/zmb3/spotify"
)
var (
clientCh ... |
package app_indicator
import (
"errors"
"fmt"
"github.com/liqotech/liqo-agent/internal/tray-agent/agent/client"
"strings"
"sync"
)
//StatRun defines the running status of Liqo.
type StatRun bool
const (
//StatRunOff defines the 'OFF' running status of Liqo.
StatRunOff StatRun = false
//StatRunOn defines the ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/errors/customer_manager_link_error.proto
package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v0/errors"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference import... |
package main
import (
"bytes"
"log"
"strconv"
"time"
"fmt"
"strings"
"os"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/r3labs/diff"
"gopkg.in/ldap.v2"
)
const delim = ";"
var objectSchema = map[string]*schema.Schema{
"dn": {
Type: schema.TypeString,
Description: "... |
// Copyright © 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 in writ... |
// Copyright (c) 2021 <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, distri... |
/*
Copyright 2013 <NAME> (<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 to i... |
//
//
// File generated from our OpenAPI spec
//
//
// Package client provides a Stripe client for invoking APIs across all resources
package client
import (
stripe "github.com/stripe/stripe-go/v72"
"github.com/stripe/stripe-go/v72/account"
"github.com/stripe/stripe-go/v72/accountlink"
"github.com/stripe/stripe-g... |
// Copyright 2019 Istio 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 i... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
package websocket
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.Enforc... |
package aws
import (
"context"
"errors"
"fmt"
"sort"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"
"github.com/aws/aws-sdk-go/service/e... |
/*
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 f... |
/*
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 to in writing, ... |
package cmd
import (
"bufio"
"context"
"encoding/json"
"fmt"
"io"
"os"
"strings"
"github.com/golang/protobuf/ptypes/duration"
netPb "github.com/linkerd/linkerd2/controller/gen/common/net"
"github.com/linkerd/linkerd2/pkg/addr"
pkgcmd "github.com/linkerd/linkerd2/pkg/cmd"
"github.com/linkerd/linkerd2/pkg/h... |
// Package inf (type inf.Dec) implements "infinite-precision" decimal
// arithmetic.
// "Infinite precision" describes two characteristics: practically unlimited
// precision for decimal number representation and no support for calculating
// with any specific fixed precision.
// (Although there is no practical limit o... |
package store
import (
"github.com/shopspring/decimal"
"time"
)
//type ToEmbed struct {
// Fuck int64
// Second string
//}
//type Demo struct {
// ID int64 `gorm:"primaryKey;autoIncrement:false"`
// Embed ToEmbed `gorm:"embedded"`
// Other ToEmbed `gorm:"embedded"`
//}
//type Order struct {
// ID int6... |
// Copyright 2020 The PipeCD 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 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 linux
import (
"bytes"
"runtime"
"github.com/google/syzkaller/prog"
"github.com/google/syzkaller/sys/targets"
)
func InitTarget(target *prog... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: rbac/v1alpha1/rbac.proto
/*
Package v1alpha1 is a generated protocol buffer package.
Istio RBAC (Role Based Access Control) defines ServiceRole and ServiceRoleBinding
objects.
A ServiceRole specification includes a list of rules (permissions). Each rule has... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.10.1
// source: envoy/extensions/transport_sockets/alts/v3/alts.proto
package envoy_extensions_transport_sockets_alts_v3
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-... |
// SPDX-License-Identifier: MIT
package blobstore
import (
"context"
"encoding/json"
"fmt"
"io"
"sync"
"github.com/cryptix/go/logging"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/kit/metrics"
"github.com/pkg/errors"
"go.cryptoscope.co/luigi"
"go.cryptoscope.co/muxrpc"... |
/*
Copyright 2018 The KubeSphere 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... |
package utils
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net"
"net/url"
"path/filepath"
"strconv"
"strings"
// "log"
"os"
"reflect"
"time"
"github.com/xtaci/kc... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.16.0
// source: envoy/type/matcher/v4alpha/number.proto
package envoy_type_matcher_v4alpha
import (
_ "github.com/cncf/xds/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
_ "g... |
package hdinsight
import (
"context"
"fmt"
"log"
"time"
"github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v4.0.0
// source: proto/GetBySolidityID.proto
package proto
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobu... |
package sarama
import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"log"
"net"
"os"
"regexp"
"time"
"github.com/Shopify/sarama"
"github.com/ghodss/yaml"
"github.com/rcrowley/go-metrics"
"golang.org/x/net/proxy"
corev1 "k8s.io/api/core/v1"
commonconfig "knative.dev/eventing-kafka/pkg/co... |
// Copyright (C) 2015 Nippon Telegraph and Telephone 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... |
// © 2013 the PlanIt Authors under the MIT license. See AUTHORS for the list of authors.
package pddl
import (
"fmt"
"strings"
)
const (
// objectTypeName is the name of the default
// object type.
objectTypeName = "object"
// totalCostName is the name of the total-cost
// function.
totalCostName = "total-c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.