text
stringlengths
5.51k
28.1k
package app import ( "fmt" "net/http" "net/url" "sort" "strings" "sync" "time" log "github.com/Sirupsen/logrus" "github.com/gorilla/mux" "golang.org/x/net/context" "github.com/weaveworks/scope/probe/docker" "github.com/weaveworks/scope/probe/kubernetes" "github.com/weaveworks/scope/render" "github.com/...
package camo import ( "context" "encoding/json" "errors" "fmt" "io" "net" "net/http" "strings" "sync" "time" "github.com/linfn/camo/internal/util" ) const ( defaultServerIfaceWriteChanLen = 256 defaultServerTunnelWriteChanLen = 256 defaultSessionTTL = time.Hour ) var ( // ErrNoIPConfig...
package gokalman import ( "fmt" "math" "os" "sync" "testing" "time" "github.com/ChristopherRabotin/smd" "github.com/gonum/matrix/mat64" ) func TestHybridBasic(t *testing.T) { prevXHat := mat64.NewVector(6, nil) prevP := mat64.NewSymDense(6, nil) var covarDistance float64 = 50 var covarVelocity float64 = ...
package main import ( "fmt" "os/exec" "strings" "time" "github.com/docker/docker/pkg/integration/checker" "github.com/docker/docker/pkg/stringid" "github.com/go-check/check" ) func (s *DockerSuite) TestRmiWithContainerFails(c *check.C) { errSubstr := "is using it" // create a container out, _ := dockerCmd...
/* Copyright 2020 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, ...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is ...
/* Copyright 2018 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 service import ( "context" "encoding/json" "strconv" "strings" "fmt" item "go-common/app/service/openplatform/ticket-item/api/grpc/v1" "go-common/app/service/openplatform/ticket-item/model" "go-common/library/ecode" "go-common/library/log" "go-common/library/time" ) // Info get item info func (s *I...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.0 // source: examples/internal/proto/examplepb/openapi_merge_b.proto // Merging Services // // This is an example of merging two proto files. package examplepb import ( _ "google.golang.org/genproto/googl...
package metainfo import ( "crypto/sha1" "errors" "hash" "io" "os" "path/filepath" "sort" "time" "github.com/anacrolix/torrent/bencode" ) //---------------------------------------------------------------------------- // Build //---------------------------------------------------------------------------- // ...
// Copyright 2014 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 authproxy import ( "bytes" "context" "io" "log" "net/http" "net/http/httputil" "net/url" "strings" "time" "github.com/golang-jwt/jwt" "github.com/google/go-github/v41/github" "go.uber.org/zap" "go.uber.org/zap/zapcore" "golang.org/x/xerrors" "go.f110.dev/heimdallr/pkg/auth" "go.f110.dev/heimd...
package plist // #import <CoreFoundation/CoreFoundation.h> // #import <ApplicationServices/ApplicationServices.h> // for CoreGraphics (for CGFloat) import "C" import ( "errors" "math" "reflect" "strconv" "time" "unicode/utf8" "unsafe" ) type cfTypeRef C.CFTypeRef func cfRelease(cfObj cfTypeRef) { if cfObj !...
// Copyright 2015 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 ...
// Baxter permutations are those which avoid the patterns 2-41-3 and 3-14-2 // This generating tree based enumeration is based on the following paper: // https://arxiv.org/pdf/1702.04529.pdf // Format for specifying a rectangle: // (x1, x2, y1, y2) where x1 is the min and x2 is the max y coordinate. // Similarly for ...
/* * MinIO Cloud Storage, (C) 2015, 2016, 2017 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 a...
// Copyright 2014 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 runtime import ( "unsafe" ) // For gccgo, use go:linkname to rename compiler-called functions to // themselves, so that the compiler will export them...
package manager import ( "compress/gzip" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "os" "path" "slave/utils/ntp_sync" "strings" "time" "slave/manager/commands" "slave/manager/events" "slave/manager/experiment" "slave/manager/faults" "slave/manager/host" "slave/manager/logs" "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: api/config/prometheus/config_request.proto package prometheus // import "github.com/chef/automate/api/config/prometheus" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import shared "github.com/chef/automate/api/config/sh...
package gioui import ( "fmt" "image" "image/color" "math" "strconv" "strings" "time" "gioui.org/io/clipboard" "gioui.org/io/key" "gioui.org/io/pointer" "gioui.org/layout" "gioui.org/op" "gioui.org/text" "gioui.org/unit" "gioui.org/widget" "gioui.org/widget/material" "gioui.org/x/eventx" "github.com/...
// // (C) Copyright 2021-2022 Intel Corporation. // // SPDX-License-Identifier: BSD-2-Clause-Patent // package server import ( "context" "fmt" "io/ioutil" "net" "path/filepath" "strconv" "strings" "sync" "github.com/pkg/errors" "google.golang.org/grpc" "github.com/daos-stack/daos/src/control/common" "gi...
// Copyright (C) 2013 yofu. All rights reserved. // Use of this source code is governed by a MIT license // that can be found in the COPYRIGHT file. package cd /* #cgo CFLAGS : -I../../libs/iup/include #cgo LDFLAGS: -L../../libs/iup -liup -liupcd -lcd -lgdiplus #cgo linux CFLAGS : -I../../libs/cd/include #cgo linux ...
package main import ( "context" "fmt" "io" "io/ioutil" "log" "net/http" "os" "os/signal" "path" "path/filepath" "strconv" "strings" "syscall" "github.com/aquasecurity/libbpfgo/helpers" embed "github.com/aquasecurity/tracee" "github.com/aquasecurity/tracee/cmd/tracee-ebpf/internal/flags" "github.com/a...
package main import ( "bytes" "encoding/json" "encoding/xml" "errors" "fmt" "io" "io/ioutil" "mime/multipart" "net/http" "net/textproto" "os" "strings" "sync" "time" "golang.org/x/oauth2" "golang.org/x/oauth2/google" //"net/http/httputil" "context" "github.com/scritch007/go-simplejson" ) var oaut...
// 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...
/* * Copyright 2020 Huawei Technologies Co., Ltd. * * 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...
/* IBM Confidential OCO Source Materials (C) Copyright IBM Corporation 2019 All Rights Reserved The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office. Copyright (c) 2020 Red Hat, Inc. */ // Copyright Contribu...
// Copyright 2014 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package form import ( "encoding" "fmt" "net/url" "time" ) type Struct struct { B bool I int `form:"life"` F float64 C complex128 R rune `form:",omitempt...
// Copyright 2016 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...
package generate import ( "bytes" "errors" "fmt" "go/ast" "go/format" "io" "io/ioutil" "path" "path/filepath" "strings" "text/template" "time" ) // AvroCFWriter creates a Avro Container file containing the data from the struct that implements this interface. type AvroCFWriter interface { WriteAvroCF(io.W...
package statemgr import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "log" "os" "path/filepath" "sync" "time" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform/states" "github.com/hashicorp/terraform/states/statefile" ) // Filesystem is a full state manager that uses a...
/* Package gig implements high performance, minimalist Go framework for Gemini protocol. Example: package main import ( "github.com/pitr/gig" ) func main() { // Gig instance g := gig.Default() // Routes g.Handle("/user/:name", func(c gig.Context) error { return c.Gemini(gig.Stat...
package models import ( "context" "log" "strings" "time" "github.com/MixinNetwork/supergroup/durable" "github.com/MixinNetwork/supergroup/session" "github.com/MixinNetwork/supergroup/tools" "github.com/jackc/pgx/v4" "github.com/robfig/cron/v3" "github.com/shopspring/decimal" ) const liquidity_mining_DDL = ...
package iip import ( "encoding/json" "errors" "fmt" "hash/fnv" "io" "math/rand" "net/url" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/truexf/goutil/jsonexp" ) type LoadBalanceMethod uint32 const ( MethodRoundrobin LoadBalanceMethod = iota MethodRandom MethodMinPending MethodIpHash ...
package main // // OneEther // import "os/signal" import "runtime/pprof" import "flag" import "os" import "math/big" import "time" import "errors" import "net/http" import "fmt" import "io/ioutil" import "bufio" import "encoding/json" import "log" //TODO proper miner diff var workLog *log.Logger var pool *MinerPoo...
// Code generated from PeopleCode.g4 by ANTLR 4.7.2. DO NOT EDIT. package peoplecode // PeopleCode import "github.com/antlr/antlr4/runtime/Go/antlr" // BasePeopleCodeListener is a complete listener for a parse tree produced by PeopleCodeParser. type BasePeopleCodeListener struct{} var _ PeopleCodeListener = &BasePeo...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: orc8r/protos/logging_service.proto package protos import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) //...
package fstesting import ( "bytes" "encoding/gob" "encoding/json" "errors" "fmt" "io" "os" "path" "path/filepath" "strings" "syscall" "time" "github.com/capnspacehook/pandorasbox/absfs" ) type ErrorReport struct { Op string Path string Err error StackStr string TypeStr string ErrS...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ // The 'viper' package for configuration handling is very flexible, but has // been found to have extremely poor performance when configuration values are // accessed repeatedly. The function CacheConfiguration() defined here caches //...
// Code generated by protoc-gen-go. // source: google.golang.org/genproto/protobuf/api.proto // DO NOT EDIT! /* Package descriptor is a generated protocol buffer package. It is generated from these files: google.golang.org/genproto/protobuf/api.proto google.golang.org/genproto/protobuf/descriptor.proto google.gola...
package testing import ( "bytes" "fmt" "io/ioutil" "net" "os" "path" "strings" "sync" "testing" "time" ) const ( haproxyConfigDir = "/var/lib/haproxy/conf" serverName = "_dynamic-pod-1" OnePodAndOneDynamicServerBackendTemplate = `1 # be_id be_name srv_id srv_name srv_addr srv_op_state srv_admin_state s...
// Copyright 2019 NDP Systèmes. All Rights Reserved. // See LICENSE file for full licensing details. package models import ( "fmt" "reflect" "strings" "testing" "github.com/hexya-erp/hexya/src/models/fieldtype" "github.com/hexya-erp/hexya/src/models/types" "github.com/hexya-erp/hexya/src/models/types/dates" ...
// Package textrazor implements a client for the TextRazor Text Analytics API. // // An API key is required and can be optained on https://www.textrazor.com package textrazor import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" ) // default values used by NewDefaultClient const ( DefaultEndp...
package for_game import ( b64 "encoding/base64" "encoding/json" "game_server/easygo" "game_server/pb/client_hall" "game_server/pb/share_message" "time" "github.com/akqp2019/mgo" "github.com/akqp2019/mgo/bson" "github.com/astaxie/beego/logs" "github.com/garyburd/redigo/redis" ) /* redis红包数据 */ const ( //列...
// Package ddbmap presents a map-like interface for DynamoDB tables. package ddbmap // import "github.com/shawnsmithdev/ddbmap" import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/dynamodb" "github.com/aws/aws-sdk-go-v2/service/dynamodb/expression" "github.com/shawns...
// +build integration package main import ( "bytes" "fmt" "net/http" "net/http/httptest" "os/exec" "testing" ) // Fake response that looks like that of JIRA - used the roundtripper to get an example response const fakeResponse = `{ "expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedR...
package bls import ( "fmt" "math/big" ) type PointG1 [3]fe func (p *PointG1) Set(p2 *PointG1) *PointG1 { p[0].Set(&p2[0]) p[1].Set(&p2[1]) p[2].Set(&p2[2]) return p } type G1 struct { f *fp t [9]*fe } func NewG1(f *fp) *G1 { t := [9]*fe{} for i := 0; i < 9; i++ { t[i] = f.zero() } if f == nil { f =...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: data_handler.proto package gravity_api_data_handler import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) ...
package minox import ( "github.com/cydev/zero" "github.com/omniboost/go-minox/omitempty" uuid "github.com/satori/go.uuid" ) type CollectionLinks struct { } type Currency struct { ID string `json:"id"` ExchangeRate float64 `json:"exchange_rate"` Description string `json:"description"` } type Admin...
package main import ( "fmt" "strings" "github.com/jd3nn1s/gomidl/ast" "github.com/jd3nn1s/gomidl/scanner" "github.com/pinzolo/casee" ) var interfaceBlackList = map[string]bool{ // TODO goproxy to support inherit IFabricClientConnectionEventHandler "IFabricClientConnectionEventHandler2": true, } type goproxyP...
package tengo import ( "errors" "fmt" "strings" ) // Table represents a single database table. type Table struct { Name string Engine string CharSet string // Always populated, even if same as database's default Collation string // Only populated if differs from defaul...
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright(c) 2019-2022 Wind River Systems, Inc. */ package controllers import ( "context" "github.com/go-logr/logr" "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/starlingx/inventory/v1/datanetworks" perrors "github.com/pkg/errors" starling...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/customer_extension_setting.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googlea...
// // Copyright (c) 2014 The pblcache 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 writeaheadlog defines and implements a general purpose, high // performance write-ahead-log for performing ACID transactions to disk without // sacrificing speed or latency more than fundamentally required. package writeaheadlog import ( "bytes" "encoding/binary" "fmt" "io" "os" "sort" "sync" "sync/...
/* Copyright 2020 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...
package main import ( "encoding/json" "fmt" "math" "os" "strconv" "strings" ) const ( BlueColorFont = "\033[1;34m%v\033[0m" ) type RpnGoer interface { SetDebug() IsDebugOn() printDebug() SetExpression() GetExpression() GetResult() AppendRPNItem() GetRPNExpression() GetRPNStack() AppendRPNOperatorIte...
/* Copyright 2014 The Camlistore 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 2020 The Fuchsia 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 !build_with_native_toolchain // +build !build_with_native_toolchain package netstack import ( "bytes" "context" "errors" "fmt" "sort" "s...
package dorado import ( "bytes" "context" "crypto/md5" "encoding/hex" "encoding/json" "fmt" "strconv" "strings" "time" "github.com/pkg/errors" uuid "github.com/satori/go.uuid" ) // LUN is raw block storage object. type LUN struct { ALLOCCAPACITY string `json:"ALLOCCAPACITY"` ALLOCTYPE ...
package rtmp import ( "bytes" "errors" "fmt" "io" "sync" //"sync/atomic" "bbllive/conf" "bbllive/log" "time" ) const ( DEFAULT_POOL_SIZE = 4096 ) var ErrBufferFull = errors.New("buffer full") var pool = NewMediaFramePool(DEFAULT_POOL_SIZE) func NewMediaFrame() *MediaFrame { return pool.New() } type Med...
package run import ( "net" "fmt" "time" "github.com/influxdata/influxdb/coordinator" "github.com/influxdata/influxdb/tsdb" "github.com/influxdata/influxdb/monitor" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxdb/services/meta" // Initialize the engine & index packages _ "github.com...
// Copyright (c) 2019 IoTeX // This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no // warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent // permitted by law, all liability for your use of the cod...
package service import ( "fmt" "log" "reflect" "github.com/jinzhu/gorm" "github.com/t2wu/betterrest/datamapper/gormfixes" "github.com/t2wu/betterrest/libs/datatypes" "github.com/t2wu/betterrest/models" qry "github.com/t2wu/betterrest/query" "github.com/t2wu/betterrest/registry" ) // check out // https://sta...
package golw import ( "fmt" "io/fs" "os" "path/filepath" "strconv" "time" ) // NOTE: This library tracks how many bytes it writes to the open log // file, but does not track whether any other process has written to // the same file after this opens the file. const ( // DateTime is a time format string that re...
/*- * Copyright 2017 Square 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...
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/function_parsing_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 imports to ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: kythe/proto/status_service.proto package status_service_go_proto 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 _ = proto.Marshal var _ = fmt.Er...
package main import ( "flag" "fmt" "html" "log" "net/http" "os" "os/signal" "path/filepath" "strings" "syscall" "text/template" "time" "github.com/cwbooth5/go2redirector/api" gohttp "github.com/cwbooth5/go2redirector/http" "github.com/cwbooth5/go2redirector/core" "github.com/oxtoacart/bpool" ) // If...
// Package route implements HTTP request miltiplexer. package route import ( "errors" "fmt" "html/template" "io" "net/http" "net/url" "path" "path/filepath" "reflect" "runtime" "sync" ) type ( // Mux is the top-level framework instance. Mux struct { premiddleware []MiddlewareFunc middleware []...
/* 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 cli import ( "crypto/x509" "encoding/json" "encoding/pem" "fmt" "os" "strings" "bufio" "log" "sync" "regexp" "hash/fnv" "time" "github.com/square/certigo/cli/terminal" "github.com/square/certigo/lib" "github.com/square/certigo/starttls" "gopkg.in/alecthomas/kingpin.v2" ) var ( app = king...
// Copyright 2010-2012 The W32 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 w32 import ( "syscall" "unsafe" ) var ( modkernel32 = syscall.NewLazyDLL("kernel32.dll") procGetModuleHandle = modkernel32.NewProc("GetM...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
/*package format handles Guppy's miniature formatting languages for snapshot file, e.g: Input = "snapdir{%03d,snapshot}/snap{%03d,snapshot}.{%d,0..512}" Output = "snapdir{%04d,snapshot}/snap{%04d,snapshot}.{%d,output}.gup" Snapshots = 0..100 - 63 The exact rules are as follows: File format strings are a com...
/* Copyright 2017-2021 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,...
package masteruserrecord import ( "context" "fmt" "time" toolchainv1alpha1 "github.com/codeready-toolchain/api/api/v1alpha1" "github.com/codeready-toolchain/host-operator/pkg/counter" "github.com/codeready-toolchain/host-operator/pkg/metrics" "github.com/codeready-toolchain/toolchain-common/pkg/cluster" "gith...
// Copyright 2016 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package provider import ( "crypto/rsa" "encoding/json" "io" "io/ioutil" "github.com/chanzuckerberg/terraform-provider-snowflake/pkg/datasources" "github.com/chanzuckerberg/terraform-provider-snowflake/pkg/db" "github.com/chanzuckerberg/terraform-provider-snowflake/pkg/resources" "github.com/hashicorp/terrafor...
package pool import ( "fmt" "math/big" "sync" "time" dll "github.com/emirpasic/gods/lists/doublylinkedlist" memtypes "github.com/make-os/kit/mempool/types" "github.com/make-os/kit/params" "github.com/make-os/kit/types" "github.com/make-os/kit/util" "github.com/make-os/kit/util/identifier" "github.com/olebe...
package main import( "encoding/json" "encoding/hex" "fmt" "io/ioutil" "log" "net" "os" "path/filepath" "sync" "time" ) //global variables var localMessagePool = []Message{} var viewID = 0 var nodeDelay = 200 * time.Millisecond type Node struct{ nodeID string addr string pubKey []byte privKe...
package app import ( "fmt" "os" "path/filepath" "strconv" "strings" "github.com/docker/docker/builder/parser" "github.com/fsouza/go-dockerclient" kapi "k8s.io/kubernetes/pkg/api" kvalidation "k8s.io/kubernetes/pkg/util/validation" buildapi "github.com/openshift/origin/pkg/build/api" deployapi "github.com...
package cmd import ( "bufio" "fmt" "io/ioutil" "os" "path" "path/filepath" "reflect" "strings" "time" "github.com/dave/jennifer/jen" "github.com/influxdata/flux/ast" "github.com/influxdata/flux/codes" "github.com/influxdata/flux/internal/errors" "github.com/influxdata/flux/internal/token" "github.com/i...
// Copyright 2019 NetApp, Inc. All Rights Reserved. package cmd import ( "fmt" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" v1 "k8s.io/api/core/v1" k8sclient "github.com/netapp/trident/cli/k8s_client" tridentconfig "github.com/netapp/trident/config" ) func init() { RootCmd.AddCommand(uninstallCm...
package main import ( "bytes" "context" "errors" "flag" "fmt" "io/ioutil" "log" "net" "net/http" "os" "path/filepath" "sort" "strings" "sync" "sync/atomic" "time" _ "expvar" "github.com/marpaia/graphite-golang" "github.com/recoilme/graceful" "github.com/recoilme/pudge" "github.com/tidwall/evio" ...
package main import ( "context" "encoding/json" "io" "path" "k8s.io/klog" "github.com/golang/glog" "fmt" "net" "net/http" "net/url" "os" "os/signal" "path/filepath" "strings" "syscall" "time" _ "net/http/pprof" "crypto/md5" kitlog "github.com/go-kit/kit/log" kitloglogrus "github.com/go-kit/ki...
package controller import ( "fmt" "net" "sync" "time" goovn "github.com/ebay/go-ovn" "github.com/ovn-org/ovn-kubernetes/go-controller/hybrid-overlay/pkg/types" hotypes "github.com/ovn-org/ovn-kubernetes/go-controller/hybrid-overlay/pkg/types" houtil "github.com/ovn-org/ovn-kubernetes/go-controller/hybrid-over...
package main import ( "bytes" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "os" "regexp" "strconv" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ses" "github.com/jhillyerd/enmime" "github.com/kva...
// Package tail implements tailing a log file. // // tail provides a channel on which log lines will be sent as string messages. // one line in the log file is one message on the channel package tail import ( "bufio" "context" "encoding/json" "errors" "fmt" "math/rand" "os" "path/filepath" "strings" "time" ...
/* Copyright 2019 Red Hat Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
package exec import ( "context" "errors" "fmt" "io" "path/filepath" "strings" "time" "code.cloudfoundry.org/lager" "code.cloudfoundry.org/lager/lagerctx" "github.com/concourse/concourse/atc" "github.com/concourse/concourse/atc/db" "github.com/concourse/concourse/atc/exec/build" "github.com/concourse/conc...
package onthefly // // Support for TinySVG 1.2 // // Some functions are suffixed with "2" to avoid breaking backward compatibility. // // TODO: Refactor this package as a new and shiny package in a different namespace. // import ( "bytes" "errors" "fmt" "strconv" "strings" ) const ( TRANSPARENT = 0.0 OPAQUE ...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1alpha1api20211101storage import ( "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" ...
package orderbook import ( "errors" "fmt" ) var errIDCannotBeMatched = errors.New("cannot match ID on linked list") var errCollisionDetected = errors.New("cannot insert update collision detected") var errAmountCannotBeLessOrEqualToZero = errors.New("amount cannot be less or equal to zero") // linkedList defines a ...
package data import ( "bytes" "io" "io/ioutil" "github.com/orcaman/writerseeker" "github.com/pkg/errors" ) // layout of the EDATA, OSC tables on the synergy. // NOTE: can't use fancy go reflection or unsafe pointer computation - // can't directly memory map Z80 data structures (byte aligned) with // whatever p...
package transfer import ( "errors" "fmt" "log" "reflect" "runtime" "strings" "sync" "sync/atomic" "time" "github.com/Azure/blobporter/internal" "github.com/Azure/blobporter/pipeline" "github.com/Azure/blobporter/util" ) // Worker represents a worker routine that transfers data to a target type Worker st...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, 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.or...
package gedcom_test import ( "testing" "time" "github.com/elliotchance/gedcom" "github.com/elliotchance/tf" "github.com/stretchr/testify/assert" ) func TestDate_Time(t *testing.T) { t.Run("StartDate", func(t *testing.T) { for date, test := range dateTests { t.Run(date, func(t *testing.T) { node := ged...
package persistence import ( "encoding/json" "fmt" "github.com/boltdb/bolt" "github.com/golang/glog" "github.com/open-horizon/anax/cutil" "github.com/open-horizon/anax/externalpolicy" "github.com/satori/go.uuid" "reflect" "strconv" "strings" ) // a "service is a v2.1.0 transitional concept: it stores patter...