text
stringlengths
5.51k
28.1k
package errors // ErrorCode ... type ErrorCode int64 const ( JET_wrnNyi ErrorCode = -1 JET_errRfsFailure ErrorCode = -100 JET_errRfsNotArmed ErrorCode = -101 JET_errFileClose ErrorCod...
package kubernetesapply import ( "context" "fmt" "sync" "github.com/docker/distribution/reference" "github.com/pkg/errors" v1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" c...
package main import ( "context" "encoding/json" "flag" "fmt" "net/http" "os" "os/signal" "path/filepath" "strings" "syscall" "time" "cloud.google.com/go/storage" "github.com/cortexproject/cortex/pkg/storage/tsdb/bucketindex" "github.com/cortexproject/cortex/pkg/util/concurrency" "github.com/cortexproje...
package deliveryservicedata // TODO rename? /* * 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 ...
/* 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 2015, <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE.md file. // Package prefix implements bit readers and writers that use prefix encoding. package prefix import ( "fmt" "sort" "github.com/dsnet/compress/inter...
package sql_util import ( "database/sql" "errors" "fmt" "strings" "vitess.io/vitess/go/mysql" "vitess.io/vitess/go/vt/sqlparser" "github.com/pingcap/parser" "github.com/pingcap/parser/ast" "github.com/pingcap/parser/format" _ "github.com/pingcap/tidb/types/parser_driver" "github.com/qingfeng777/owls/serv...
package dep import ( "github.com/chewxy/lingo" "github.com/chewxy/lingo/corpus" "github.com/pkg/errors" G "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) // may is a simple monad for handling errors type may struct { error n *G.Node } func (m *may) doUnary(fn func(*G.Node) (*G.Node, error)) { if m.error != n...
package docker import ( "testing" "time" "github.com/influxdata/telegraf/testutil" "github.com/docker/docker/api/types" "github.com/stretchr/testify/require" ) func TestDockerGatherContainerStats(t *testing.T) { var acc testutil.Accumulator stats := testStats() tags := map[string]string{ "container_name"...
// 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...
// Copyright 2015 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 main import ( "bytes" "crypto" "crypto/rand" "crypto/sha1" "crypto/x509" "encoding/base64" "encoding/json" "encoding/pem" "flag" "fmt" "html/template" "io" "io/ioutil" "log" mrand "math/rand" "net/http" "net/http/cgi" "os" "os/user" "reflect" "sort" "strconv" "strings" "time" "github....
/* Copyright 2019 The Knative 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...
// Copyright 2017 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 ...
/* * Copyright (c) 2019 SUSE 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 t...
// Copyright Microsoft <<EMAIL>> // // 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, di...
package common // DevfileComponentType describes the type of component. // Only one of the following component type may be specified // To support some print actions type DevfileComponentType string const ( ContainerComponentType DevfileComponentType = "Container" KubernetesComponentType DevfileComponentType = "Ku...
// Copyright 2019 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...
package beacon import ( "context" "errors" "fmt" "io/ioutil" "os" "path" "sync" "testing" "time" //"github.com/benbjohnson/clock" "github.com/drand/drand/key" "github.com/drand/drand/log" "github.com/drand/drand/net" "github.com/drand/drand/protobuf/drand" "github.com/drand/drand/test" "github.com/dra...
package runtime import ( "encoding/base64" "fmt" "os" "reflect" "strings" "get.porter.sh/porter/pkg/cnab" "get.porter.sh/porter/pkg/cnab/extensions" "get.porter.sh/porter/pkg/config" "get.porter.sh/porter/pkg/context" "get.porter.sh/porter/pkg/manifest" "get.porter.sh/porter/pkg/yaml" "github.com/cbroglie...
package types import ( sdk "github.com/cosmos/cosmos-sdk/types" ) // type definitions for recipe and cookbook live here type Cookbook struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"` N...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.15.8 // source: common/query.proto package common import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sy...
package logs import ( "io" "log" "fmt" "time" "errors" "crypto/tls" "github.com/mitchellh/colorstring" "github.com/docker/go-connections/tlsconfig" ) // Log formats as int const ( TEXT_FORMAT = int(0) JSON_FORMAT = int(1) FMT_FORMAT = int(2) GELF_FORMAT = int(3) SYS_FORMAT = int(4)...
// Package main is complete tool for the go command line package main import "github.com/posener/complete" var ( ellipsis = complete.PredictSet("./...") anyPackage = complete.PredictFunc(predictPackages) goFiles = complete.PredictFiles("*.go") anyFile = complete.PredictFiles("*") anyGo = complete.Pr...
/* Copyright 2019 Adevinta */ package main import ( "context" "encoding/json" "errors" "fmt" "math/rand" "os" "strconv" "strings" "time" "github.com/jpillora/backoff" log "github.com/sirupsen/logrus" "github.com/adevinta/restuss" "github.com/adevinta/vulcan-check-sdk/helpers" checkstate "github.com/ad...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/enums/promotion_placeholder_field.proto package enums import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if...
package mem import ( "fmt" "math/rand" "strconv" "strings" "sync" "time" ) // Schedule Types const ( FREQUENTLY = iota DAILY WEEKLY MONTHLY ) // Frequently interval options, avoid 0 as it is the default const ( EVERY_SECOND = iota + 1 EVERY_MINUTE EVERY_HOUR ) // Day name options, avoid 0 as it is the ...
package blockatlas import ( "github.com/trustwallet/golibs/tokentype" "sort" "strconv" "strings" mapset "github.com/deckarep/golang-set" "github.com/trustwallet/blockatlas/db/models" "github.com/trustwallet/golibs/asset" "github.com/trustwallet/golibs/coin" "github.com/trustwallet/golibs/numbers" ) const ( ...
package ingress import ( "fmt" "sort" "strings" "time" "github.com/pkg/errors" "github.com/solo-io/gloo/pkg/api/types/v1" kubeplugin "github.com/solo-io/gloo/pkg/plugins/kubernetes" "k8s.io/api/extensions/v1beta1" "k8s.io/apimachinery/pkg/labels" kubeinformers "k8s.io/client-go/informers" "k8s.io/client-go...
/* Copyright 2021 The KCP 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, softwar...
// Copyright 2017-2018 DERO Project. All rights reserved. // Use of this source code in any form is governed by RESEARCH license. // license can be found in the LICENSE file. // GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8 // // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A...
package go_codenames import "math/rand" func generateWords(amount int, random *rand.Rand) []string { result := make([]string, 0) for i := 0; i < amount; i++ { word := words[random.Intn(len(words))] for contains(result, word) { word = words[random.Intn(len(words))] } result = append(result, word) } retu...
package dca import ( "bufio" "bytes" "encoding/base64" "encoding/binary" "encoding/json" "errors" "fmt" "image/jpeg" "image/png" "io" "os" "os/exec" "strconv" "strings" "sync" "time" "github.com/jonas747/ogg" ) // AudioApplication is an application profile for opus encoding type AudioApplication str...
package pokemon import ( "math" "strings" "github.com/asukakenji/pokemon-go/generic" "github.com/asukakenji/pokemon-go/lang" "github.com/asukakenji/pokemon-go/lv" "github.com/asukakenji/pokemon-go/move" "github.com/asukakenji/pokemon-go/pokemon/internal/de" "github.com/asukakenji/pokemon-go/pokemon/internal/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.10.0 // source: proto/action.proto package skysign_proto import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.g...
package nr import ( "bytes" "compress/gzip" "context" "crypto/tls" "flag" "fmt" "io/ioutil" "net" "net/http" "os" "strings" "time" go_metrics "github.com/kentik/go-metrics" "github.com/kentik/ktranslate/pkg/eggs/logger" "github.com/kentik/ktranslate/pkg/formats" "github.com/kentik/ktranslate/pkg/forma...
package goodkey import ( "context" "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rsa" "errors" "fmt" "math/big" "sync" "github.com/letsencrypt/boulder/core" berrors "github.com/letsencrypt/boulder/errors" "github.com/letsencrypt/boulder/features" sapb "github.com/letsencrypt/boulder/sa/proto" "googl...
package processor import ( "context" "encoding/hex" "fmt" "strings" "time" bridge_common "github.com/certusone/wormhole/bridge/pkg/common" "github.com/certusone/wormhole/bridge/pkg/qtum" "github.com/prometheus/client_golang/prometheus" "github.com/certusone/wormhole/bridge/pkg/terra" "github.com/ethereum/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: io/common/links.proto package io 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 com...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/k8s/v1/version.proto package k8s import ( _ "github.com/yandex-cloud/go-genproto/yandex/cloud" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.go...
package kubernetes import ( "crypto/sha512" "encoding/hex" "encoding/json" "fmt" "log" "os" "sort" "strconv" "strings" "github.com/lzecca78/one/internal/config" "github.com/lzecca78/one/internal/jenkins" "github.com/lzecca78/one/internal/utils" "github.com/pkg/errors" "github.com/spf13/viper" batchV1 "...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/feed_placeholder_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"...
// Copyright 2018 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) 2018-2019 WING All Rights Reserved. // // Author : yangping // Email : <EMAIL> // // Prismy.No | Date | Modified by. | Description // ------------------------------------------------------------------- // 00001 2019/05/22 yangping New version // 00002 2019/06/30 zhaixing ...
// Copyright 2016 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package allwinner import ( "errors" "fmt" "os" "path" "strconv" "strings" "time" "github.com/kindevil/periph" "github.com/kindevil...
// Copyright (c) 2021 Terminus, 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 agree...
// Copyright 2020 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-gogo. DO NOT EDIT. // source: get.proto package storageclass import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" container "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/...
package main import ( "fmt" "os" "os/signal" "os/user" "path/filepath" "strconv" "strings" "syscall" "unicode/utf8" "github.com/dustin/go-humanize" "github.com/fatih/color" "github.com/olekukonko/tablewriter" "github.com/oz/osdb" "github.com/sirupsen/logrus" "gopkg.in/AlecAivazis/survey.v1" "github.c...
//Package service contains the logic to build a HTTP/Rest Service for the MiSSy runtime environment package service import ( "bytes" "context" "encoding/json" "flag" "fmt" "net/http" "os" "os/signal" "runtime" "strings" "sync" "syscall" "time" "bufio" "net" "github.com/gorilla/mux" "github.com/micro...
// Copyright 2009 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 reflectlite implements lightweight version of reflect, not using // any package except for "runtime" and "unsafe". package reflectlite import ( "un...
package naturaldate import ( "log" "testing" "time" "github.com/tj/assert" ) // TODO: CI tests // TODO: noon / midnight // TODO: last week / next week // base time. var base = time.Unix(1574687238, 0).UTC() // pastCases are test cases for the past direction. var pastCases = []struct { Input string Output st...
// Package timeutil provides methods for working with time and date package timeutil // ////////////////////////////////////////////////////////////////////////////////// // // // // Copyright (c) 2021 ESSENTIAL ...
// Copyright (c) <NAME> and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. package tile import ( "fmt" ) const invalid = int16(-1 << 15) var interleaveLookup = [256]int32{ 0x0000, 0x0001, 0x0004, 0x0005, 0x0010, 0x0011, 0x0014, 0x0015, 0x00...
// Copyright 2016 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. //go:build ignore // +build ignore package main import ( "bytes" "io/ioutil" "log" "strings" "text/template" ) const ( copyright = "" + "// Copyright...
// Copyright (C) 2014 Space Monkey, 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...
package runcontainer import ( "bytes" "context" "fmt" "github.com/blang/semver" "github.com/coveooss/gotemplate/v3/utils" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/client" "os" "os/exec" "os/user" "path" "path/filepath" "regexp" "runtime"...
package dto import ( "errors" "github.com/gin-gonic/gin" "github.com/go-admin-team/go-admin-core/sdk/api" "go-admin/app/admin/models" "go-admin/common/dto" common "go-admin/common/models" ) type ErpFinanceSummarySearch struct { dto.Pagination `search:"-"` } func (m *ErpFinanceSummarySearch) GetNeedSea...
package resources import ( "fmt" "strings" billing "github.com/googleinterns/terraform-cost-estimation/billing" "github.com/googleinterns/terraform-cost-estimation/io/js" "github.com/googleinterns/terraform-cost-estimation/io/web" conv "github.com/googleinterns/terraform-cost-estimation/memconverter" cd "githu...
package bitstr import ( "fmt" "strings" "testing" "github.com/stretchr/testify/require" ) func TestNew(t *testing.T) { ta := require.New(t) cases := []struct { srcStr string fromBit, toBit int32 want string }{ {"abc", 0, 16 + 8, "01100001 01100010 01100011 11111111"}, {"abc", 0, ...
package kasumi import ( "fmt" "math/bits" ) /*----------------------------------------------------------------------- * kasumi.c *----------------------------------------------------------------------- * * A sample implementation of KASUMI, the core algorithm for the * 3GPP Confidentiality and Integrity a...
/* Package sched provides additional schedule capabilities to github.com/robconfig/cron: - Randomised offsets from another schedule - A schedule of Sunrises at a specific lat/long - A schedule of Sunsets at a specific lat/long - Subtract a specific offset from another schedule - Add a specific offset to anoth...
package main import ( "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/x509/pkix" "encoding/asn1" "errors" "strconv" ) type SignatureAlgorithm int const ( UnknownSignatureAlgorithm SignatureAlgorithm = iota MD2WithRSA MD5WithRSA SHA1WithRSA SHA256WithRSA SHA384WithRSA SHA512WithRSA DSAWithSHA1 DSAWi...
package modules import ( "context" "fmt" "math/rand" "strings" "github.com/spy16/snowman" ) // emojiList is a slice of strings representing emoji names for Slack. type emojiList []string // rand returns a random emoji from the emojiList. func (e emojiList) rand(count int) []string { var out []string for i :=...
package service import ( "context" "runtime" "strconv" "strings" "sync" "time" "github.com/ahmetb/go-linq/v3" "github.com/pkg/errors" "gopkg.in/guregu/null.v3" "github.com/penguin-statistics/backend-next/internal/constant" "github.com/penguin-statistics/backend-next/internal/model" "github.com/penguin-st...
// Copyright 2009 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 base64 implements base64 encoding as specified by RFC 4648. package base64 import ( "bytes" "io" "strconv" "strings" ) /* * Encodings */ // ...
// Copyright 2021 gorse Project 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 util /** Copyright 2022 DataStax, 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
package pkg import ( "encoding/json" "fmt" "github.com/fourhu/go-annotation/pkg/middleware" "io" "path" "path/filepath" "reflect" "strings" "github.com/fourhu/go-annotation/pkg/plugin" "k8s.io/gengo/args" "k8s.io/gengo/examples/set-gen/sets" "k8s.io/gengo/generator" "k8s.io/gengo/namer" "k8s.io/gengo/ty...
// Copyright 2020-2021 <NAME> / Quobix // SPDX-License-Identifier: MIT package openapi import ( "fmt" "github.com/daveshanley/vacuum/model" "github.com/daveshanley/vacuum/parser" "github.com/daveshanley/vacuum/utils" "github.com/xeipuuv/gojsonschema" "gopkg.in/yaml.v3" ) // Examples is a rule that checks that ...
// Notes: package steward import ( "context" "fmt" "log" "net" "net/http" "os" "path/filepath" "time" "github.com/nats-io/nats.go" "github.com/prometheus/client_golang/prometheus" ) type processName string // Will return a process name made up of subjectName+processKind func processNameGet(sn subjectName,...
// Copyright (c) 2019, The Emergent Authors. All rights reserved. // Use of this source is governed by a BSD-style // license that can be found in the LICENSE file. /*************************************************************************** * Copyright 1991, 1992, 1993, 1994, 1995, 1996, 2001, 2002 *...
// document.go -- document-oriented Database methods package db import ( "crypto/rand" "encoding/json" "fmt" "log" "net/http" "github.com/couchbaselabs/go-couchbase" "github.com/couchbaselabs/sync_gateway/auth" "github.com/couchbaselabs/sync_gateway/base" ) type ChannelRemoval struct { Seq uint64 `json:"s...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.12.4 // source: echo.proto package pbapi import ( context "context" reflect "reflect" sync "sync" streaming "github.com/cloudwego/kitex/pkg/streaming" protoreflect "google.golang.org/protobuf/reflect/pro...
// Copyright 2010 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 sqlite provides access to the SQLite library, version 3. package store /* #include <sqlite3.h> #include <stdlib.h> static int my_bind_text(sqlite3_...
package deliveryservice /* * 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/enums/advertising_channel_sub_type.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v1/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golan...
package tuf import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "net/http" "net/http/httptest" "os" "path" "path/filepath" "regexp" "strconv" "strings" "testing" "time" "github.com/WatchBeam/clock" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/te...
package provider import ( "errors" "fmt" "koding/db/models" "koding/db/mongodb/modelhelper" "koding/kites/kloud/contexthelper/request" "koding/kites/kloud/contexthelper/session" "koding/kites/kloud/credential" "koding/kites/kloud/stack" "koding/kites/kloud/utils/object" "github.com/koding/logging" "golang...
package tests import ( "context" "testing" "time" "github.com/estuary/connectors/sqlcapture" ) // Run executes the generic SQL capture test suite func Run(ctx context.Context, t *testing.T, tb TestBackend) { t.Helper() t.Run("SimpleDiscovery", func(t *testing.T) { testSimpleDiscovery(ctx, t, tb) }) t.Run("Sim...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: cipherinfo.proto package config 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 comp...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: protos/output/globalFiles/procfile.proto package globalFiles import ( helpers "code-analyser/protos/pb/helpers" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "googl...
package mysql import ( "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/sha256" "crypto/x509" "encoding/pem" "errors" "log" "bytes" "fmt" ) /* get auth password */ func (mc *mysqlConn) getAuthPasswordScrambleBuff() (result []byte,addPasswordIsNull bool,e error) { switch mc.cfg.authPluginName { case AUTH_...
package game import ( "bufio" "fmt" "io" "math/rand" "os" "strconv" ) type Move int const ( HEAVY Move = iota QUICK STANDARD BLOCK PARRY EVADE ) // Class is the base player struct storing stats and data type Class struct { PlayerName string ClassName string Health int // capped 100 Armor ...
// Code generated by protoc-gen-go. // source: protocol.proto // DO NOT EDIT! /* Package golang is a generated protocol buffer package. It is generated from these files: protocol.proto It has these top-level messages: System CpuSocket NetworkInterface BlockDevice */ package golang import proto "github.com/gola...
// This file has been generated by hack/generate-client.sh // Do not edit manually! package client import ( "fmt" ) const ( MaxIssuesPerQuery = 100 ) type numberedIssueQuery struct { RateLimit rateLimit Repository struct { Issue0 *graphqlIssue `graphql:"issue0: issue(number: $number0) @include(if: $has0)"` ...
package katyusha import ( "bytes" "context" "encoding/json" "fmt" "hash/crc32" "net" "os" "os/user" "path/filepath" "reflect" "regexp" "strconv" "strings" "time" "github.com/sirupsen/logrus" "github.com/spf13/cast" "golang.org/x/crypto/ssh" "github.com/seveas/katyusha/sshagent" ) var localUser str...
// Copyright 2020 Acnodal 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 2015 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 dwarf import ( "errors" "fmt" "io" "path" ) // A LineReader reads a sequence of LineEntry structures from a DWARF // "line" section for a single ...
package main import ( "bufio" "encoding/hex" "errors" "fmt" "io" "os" "os/signal" "strings" "syscall" "github.com/spf13/cobra" "github.com/tendermint/tendermint/libs/log" abciclient "github.com/tendermint/tendermint/abci/client" "github.com/tendermint/tendermint/abci/example/code" "github.com/tendermi...
package wallet import ( "errors" "runtime" "sync" "github.com/pachisi456/sia-hostdb-profiles/crypto" "github.com/pachisi456/sia-hostdb-profiles/encoding" "github.com/pachisi456/sia-hostdb-profiles/modules" "github.com/pachisi456/sia-hostdb-profiles/types" "github.com/NebulousLabs/fastrand" "github.com/coreos...
// Copyright 2015 Google Inc. All Rights Reserved. // This file is available under the Apache license. package vm // mtail programs may be updated while mtail is running, and they will be // reloaded without having to restart the mtail process. Programs can be // created and deleted as well, and some configuration sy...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2020 Authors of Cilium package option import ( "time" "github.com/cilium/cilium/pkg/logging" "github.com/cilium/cilium/pkg/logging/logfields" "github.com/spf13/viper" ) var log = logging.DefaultLogger.WithField(logfields.LogSubsys, "option") const ( // Endp...
// Copyright 2017-2020 Authors of Cilium // // 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 browser import ( "context" "errors" "github.com/chromedp/cdproto/browser" "github.com/chromedp/cdproto/debugger" "github.com/chromedp/cdproto/fetch" "github.com/chromedp/cdproto/network" "github.com/chromedp/cdproto/page" "github.com/chromedp/cdproto/target" "github.com/teamnsrg/chromedp" b "github.c...
// Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
// Copyright (c) 2018, The GoKi 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 giv import ( "fmt" "reflect" "github.com/goki/gi/gi" "github.com/goki/gi/gist" "github.com/goki/gi/units" "github.com/goki/ki/ki" "githu...
// Code generated by go-swagger; DO NOT EDIT. package support // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/...
//go:generate go run ./gen package sealing import ( "bytes" "context" "encoding/json" "fmt" "reflect" "time" "golang.org/x/xerrors" "github.com/filecoin-project/go-state-types/abi" statemachine "github.com/filecoin-project/go-statemachine" ) func (m *Sealing) Plan(events []statemachine.Event, user interfa...