text
stringlengths
5.51k
28.1k
// Copyright (c) 2020, The Emergent 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 main import ( "fmt" "log" "math" "math/rand" "github.com/emer/emergent/env" "github.com/emer/emergent/erand" "github.com/emer/emerge...
package decoder import ( "bytes" "reflect" "unicode" "unicode/utf16" "unicode/utf8" "unsafe" "github.com/angenal/gf/internal/go-json/errors" ) type stringDecoder struct { structName string fieldName string } func newStringDecoder(structName, fieldName string) *stringDecoder { return &stringDecoder{ str...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package metrics import ( "sync" "time" "github.com/prometheus/client_golang/prometheus" "github.com/trustbloc/edge-core/pkg/log" ) const ( namespace = "orb" // ActivityPub. activityPub = "...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: envoy/config/grpc_credential/v2alpha/aws_iam.proto package v2alpha import ( _ "github.com/cncf/xds/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" protoreflect "g...
// Copyright 2015 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...
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. package cloudfoundry import ( "encoding/binary" "fmt" "net/url" "strings" "tim...
// Copyright 2012 <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 rssgo provides a basic interface for processing RSS version 2.0 feeds as defined by http://cyber.law.harvard.edu/rss/rss.html */ package rssgo import ( ...
package local import ( "context" "sync" "time" "github.com/buildbarn/bb-storage/pkg/blobstore" "github.com/buildbarn/bb-storage/pkg/blobstore/buffer" "github.com/buildbarn/bb-storage/pkg/digest" "github.com/prometheus/client_golang/prometheus" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" )...
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package kex2 import ( "crypto/hmac" "crypto/rand" "crypto/sha256" "errors" "fmt" "io" "net" "sync" "time" "github.com/keybase/go-codec/codec" "golang.org/x/crypto/nacl/secretbox" "gola...
package liftbridge import ( "context" "errors" "fmt" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/nats-io/nuid" proto "github.com/liftbridge-io/liftbridge-api/go" ) // ConsumerError is an error that occurs asynchronously on a consumer. type ConsumerError struct { wrappedErr error } // Err...
package command import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import ( "context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assert...
// Copyright 2015 The Vanadium 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 vdl import ( "fmt" "strings" ) // Kind represents the kind of type that a Type represents. type Kind int const ( // Variant kinds Any ...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "fmt" "strings" "testing" "time" "github.com/golang/mock/gomock" kbname "github.com/keybase/client/go/kbun" "github.com/keybase/client/...
// Code generated by protoc-gen-go. // source: google_libphonenumber/resources/phonenumber.proto // DO NOT EDIT! package libphonenumber 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...
package sdl // #include "sdl_wrapper.h" import "C" const ( SCANCODE_UNKNOWN = 0 /** * \name Usage page 0x07 * * These values are from usage page 0x07 (USB keyboard page). */ /*@{*/ SCANCODE_A = C.SDL_SCANCODE_A SCANCODE_B = C.SDL_SCANCODE_B SCANCODE_C = C.SDL_SCANCODE_C SCANCODE_D = C.SDL_SCANCODE_...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/iam/v1/user_account.proto package iam import ( fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var...
package registry import ( "context" "encoding/json" "errors" "fmt" "net/http" "path" "sync" "time" "github.com/filecoin-project/storetheindex/api/v0" "github.com/filecoin-project/storetheindex/config" "github.com/filecoin-project/storetheindex/internal/metrics" "github.com/filecoin-project/storetheindex/i...
package main import ( "bufio" "encoding/hex" "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "os" "os/exec" "os/signal" "path/filepath" "regexp" "runtime" "strconv" "strings" "syscall" "time" ) const ( alternate_java_home = "gauge_java_home" gaugeDebugOptsEnv = "G...
package orion import ( "context" "errors" "fmt" "os" "os/signal" "reflect" "sync" "syscall" "time" "github.com/go-orion/Orion/orion/handlers" grpcHandler "github.com/go-orion/Orion/orion/handlers/grpc" "github.com/go-orion/Orion/orion/handlers/http" "github.com/go-orion/Orion/utils/errors/notifier" "git...
// vi: sw=4 ts=4 noet: /* --------------------------------------------------------------------------- Copyright (c) 2013-2015 AT&T Intellectual Property 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...
package xcore import ( "errors" "flag" "github.com/gobwas/ws/wsutil" "github.com/golang/glog" "github.com/graphql-go/graphql" "github.com/mkawserm/hypcore/package/constants" core2 "github.com/mkawserm/hypcore/package/core" "github.com/mkawserm/hypcore/package/cors" "github.com/mkawserm/hypcore/package/gqltype...
// Copyright 2018 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
// Copyright (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...
package astutil import ( "bytes" "fmt" "go/ast" "go/build" "go/parser" "go/printer" "go/token" "go/types" "io" "os" "strings" "github.com/pkg/errors" "github.com/james-lawrence/bw/internal/x/errorsx" ) // ErrPackageNotFound returned when the requested package cannot be located // within the given conte...
// Copyright 2016 CoreOS, 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...
// 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...
// Copyright 2019 Yunion // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_nodeagent_keyvault.proto package security import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "github.com/microsoft/moc/rpc/common" grpc "google.golang.org/grpc"...
package adapter import ( "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ecs" "github.com/stitchfix/flotilla-os/config" "github.com/stitchfix/flotilla-os/state" "testing" "time" ) type testClient struct { t *testing.T instanceID string instanceDNSName string } f...
package skycoin import ( "flag" "path/filepath" "runtime" "strings" "time" "log" "github.com/skycoin/skycoin/src/cipher" "github.com/skycoin/skycoin/src/util/file" "github.com/skycoin/skycoin/src/visor" "github.com/skycoin/skycoin/src/wallet" ) var ( help = false ) // Config records skycoin node and bui...
package distccclientclaim import ( "fmt" "time" "github.com/golang/glog" "github.com/pkg/errors" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" kubeerr "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtim...
// Copyright (c) 2018 <NAME>. 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...
package core import ( "gorm.io/gorm" "time" ) type User struct { gorm.Model Tokens []*Token `json:"tokens"` Notice []*Notice `json:"notice" gorm:"many2many:user_notice;"` Ticket []Ticket `json:"tickets"` Group *Group `json:"group"` Payment []Payment `json:"payment_membe...
package main import ( "bufio" "context" "crypto/tls" "errors" "flag" "fmt" "io/ioutil" "log" "net" "net/http" "os" "regexp" "strconv" "strings" "sync" "time" "golang.org/x/net/publicsuffix" "golang.org/x/oauth2" heroku "github.com/bgentry/heroku-go" "github.com/gocarina/gocsv" "github.com/google...
package main const header = `package cu // #include <cuda.h> import "C" // This file was generated by the genlib program. DO NOT EDIT ` // easier than seeking using a file. const src = `CUresult cuGetErrorString(CUresult error, const char** pStr); CUresult cuGetErrorName(CUresult error, const char** pStr); CUresu...
/* Copyright 2020 The Flux 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 2022 Authors of spidernet-io // SPDX-License-Identifier: Apache-2.0 package ipam import ( "context" "encoding/json" "errors" "fmt" "strconv" "time" "go.uber.org/zap" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" "github....
// Package shmx implements a shared memory (shm) cross (x) interface (shmx). package shmx import ( "bytes" "encoding/binary" "errors" "fmt" "io" "golang.org/x/sys/unix" ) // Control the shared memory cross interface (shmx) as either a Master or Slave. type Control int const ( // Master controls, creates and ...
package mock import ( "context" "fmt" "strconv" "strings" "time" "github.com/pkg/errors" "github.com/aws/aws-sdk-go/aws/arn" "github.com/aws/aws-sdk-go/service/ecs" "github.com/evergreen-ci/utility" ) // ECSTaskDefinition represents a mock ECS task definition in the global ECS service. type ECSTaskDefiniti...
package main import ( "bytes" "context" "crypto/tls" "crypto/x509" "fmt" "io/ioutil" "net" "net/http" "os" "os/signal" "strings" "sync" "syscall" "time" "github.com/dylandreimerink/sharedhttpcache/layer" "github.com/dylandreimerink/sharedhttpcache" "github.com/spf13/pflag" "github.com/spf13/viper"...
package options import ( "fmt" "io" "os" "path/filepath" "reflect" "runtime" "strings" "time" "github.com/coveooss/gotemplate/v3/collections" "github.com/coveooss/gotemplate/v3/hcl" "github.com/coveooss/gotemplate/v3/utils" "github.com/coveooss/multilogger" "github.com/coveooss/terragrunt/v2/tgerrors" "...
/* * gomacro - A Go interpreter with Lisp-like macros * * Copyright (C) 2017-2019 <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * * bu...
// Copyright 2021 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 openapi import ( "encoding/json" "github.com/chanced/openapi/yamlutil" "github.com/tidwall/gjson" ) // ParameterKind indicates whether the entry is a ParameterDef or a Reference type ParameterKind uint const ( // ParameterKindObj is a ParameterObj ParameterKindObj ParameterKind = iota // ParameterKind...
package lobster import "github.com/gorilla/context" import "github.com/gorilla/mux" import "github.com/gorilla/schema" import "github.com/LunaNode/lobster/i18n" import "github.com/LunaNode/lobster/websockify" import "github.com/LunaNode/lobster/wssh" import crand "crypto/rand" import "encoding/binary" import "log" i...
// Copyright (c) 2020 <NAME>. // Use of this source code is governed by a MIT License // that can be found in the LICENSE file. // +build !js package main import ( "context" "flag" "fmt" "io" "io/ioutil" "os" "os/exec" "path/filepath" "runtime" "strconv" "strings" "time" "github.com/c-bata/go-prompt" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.13.0 // source: gitee.com/jingshanccc/course/file/proto/file/file.proto package file import ( dto "gitee.com/jingshanccc/course/file/proto/dto" basic "gitee.com/jingshanccc/course/public/proto/basic" protor...
// // Copyright 2021 The Sigstore 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 ...
// 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. // +build ingore // Package x86asm implements decoding of x86 machine code. package x86asm import ( "bytes" "encoding/binary" "errors" "fmt" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.0 // source: svc.proto package svc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.18.0 // source: xds/type/matcher/v3/ip.proto package v3 import ( _ "github.com/cncf/xds/go/xds/annotations/v3" v3 "github.com/cncf/xds/go/xds/core/v3" _ "github.com/envoyproxy/protoc-gen-validate/validate" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/ad_group_criterion_simulation.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" common "google.golang.org/genproto/goo...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.11.4 // source: Orders.proto package services import ( context "context" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" co...
/* 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 ec2 import ( "bytes" "errors" "fmt" "sort" "strings" "text/tabwriter" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "github.com/reiki4040/cstore" "github.com/reiki4040/peco" ) const ( EC2_LIST_CACHE_PREFIX = "aws.instances.cache."...
// Copyright (c) 2021 <NAME> // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. package whatsmeow import ( "bytes" "compress/zlib" "crypto/rand" "errors" "fmt"...
package entropy import ( "errors" "fmt" "math/big" "runtime" "sync" "github.com/entropyio/go-entropy/accounts" "github.com/entropyio/go-entropy/blockchain" "github.com/entropyio/go-entropy/blockchain/bloombits" "github.com/entropyio/go-entropy/blockchain/genesis" "github.com/entropyio/go-entropy/blockchain/...
package team5 import ( "math" "math/rand" "github.com/SOMAS2020/SOMAS2020/internal/common/shared" "gonum.org/v1/gonum/stat/distuv" ) /* ================================================================ FORAGING ================================================================ Foraging Functions: DecideForage()...
package msgpack type TestStruct struct { id int ip string ua string } var _ Map = (*TestStruct)(nil) func (b *TestStruct) MarshalMsgpackMap(e *Encoder, key string) error { switch key { case "id": return e.PutInt(b.id) case "ip": return e.PutString(b.ip) case "ua": return e.PutString(b.ua) } return nil...
// 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 ...
package main import ( "bufio" "context" "errors" "fmt" "io" "net" "net/http" "strings" "time" "github.com/fatih/color" "github.com/filecoin-project/dagstore/mount" "github.com/filecoin-project/go-fil-markets/piecestore" "github.com/filecoin-project/go-fil-markets/retrievalmarket" "github.com/filecoin-pr...
package main import ( "encoding/json" "flag" "fmt" "html" "io" "net/http" "net/url" "os" "os/signal" "strconv" "strings" ) const ( UserAgent = "rip for Reddit / Command Line Tool" DefaultLimit = 100 ) type Stats struct { Processed, Saved, Failed, Repeated int CopiedBytes int6...
// Copyright 2017 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...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: service.proto package container import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference imports to ...
package main import ( "fmt" ) const M = 4 const INT_MAX = int(^uint(0) >> 1) const INT_MIN = ^INT_MAX const LIMIT_M_2 = (M + 1)/2 type Position *BPlusFullNode type BPlusLeafNode struct { Next *BPlusFullNode datas []int } //叶子节点应该为Children为空,但leafNode中datas不为空 Next一般不为空 type BP...
package moves import ( "errors" "strconv" "github.com/jkomoros/boardgame" "github.com/jkomoros/boardgame/moves/interfaces" ) //We can keep these private because embedders already will have the interface //satisfied so don't need to be confused by them. type roundRobinStarterPlayer interface { RoundRobinStarterP...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. package tagstore import ( "context" "errors" "strings" "sync" "time...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/ad_group_feed.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/goog...
package venue import ( "fmt" "image" "github.com/golang/glog" "github.com/kward/go-vnc/buttons" "github.com/kward/go-vnc/keys" "github.com/kward/venue/codes" "github.com/kward/venue/math" "github.com/kward/venue/router/controls" "github.com/kward/venue/venue/encoders" "github.com/kward/venue/venue/meters" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/ad_group_ad.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/google...
package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. import ( "context" "encoding/base64" "errors" "fmt" "strconv" "github.com/owenjacob/hubblegraphql/graph/generat...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: get_micro_app_list_by_objectId.proto package object_micro_app import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" micro_app "github.com/easyopsapis/easyops-api-go/...
package db import ( "context" "database/sql" "errors" "flag" "fmt" "os" "strings" "time" golog "log" "github.com/buildbuddy-io/buildbuddy/server/interfaces" "github.com/prometheus/client_golang/prometheus" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: service.proto package zconfig 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.Errorf var _ = math.Inf type ZSrvTyp...
package main import ( "bytes" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "sort" "strconv" "strings" "time" "github.com/fatih/color" cartesian "github.com/schwarmco/go-cartesian-product" ) type VerificationRun struct { Spin_timing int64 // time in milli to verify the program Clo...
// Copyright 2011 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 ssh // Session implements an interactive session described in // "RFC 4254, section 6". import ( "bytes" "errors" "fmt" "io" "io/i...
package rlp import ( "fmt" "io" "math/big" "reflect" "sync" ) var ( // Common encoded values. // These are useful when implementing EncodeRLP. EmptyString = []byte{0x80} EmptyList = []byte{0xC0} ) // Encoder is implemented by types that require custom // encoding rules or want to encode private fields. ty...
// +build codegen package main import ( "bytes" "encoding/json" "fmt" "net/url" "os" "os/exec" "reflect" "regexp" "sort" "strconv" "strings" "text/template" "github.com/aws/aws-sdk-go/private/model/api" "github.com/aws/aws-sdk-go/private/util" ) // TestSuiteTypeInput input test // TestSuiteTypeInput o...
package cli // the cli package contains urfave/cli related structs that help make up // the command line for buildah commands. it resides here so other projects // that vendor in this code can use them too. import ( "fmt" "os" "runtime" "strings" "github.com/containers/buildah" "github.com/containers/buildah/p...
// 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 lex import ( "fmt" "os" "path/filepath" "strconv" "strings" "text/scanner" "cmd/asm/internal/flags" "cmd/internal/objabi" "cmd/internal/src" ...
// Copyright 2020 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 tsi1 import ( "bytes" "encoding/binary" "errors" "io" "sort" "github.com/influxdata/influxdb/pkg/estimator" "github.com/influxdata/influxdb/pkg/estimator/hll" "github.com/influxdata/influxdb/pkg/rhh" ) // MeasurementBlockVersion is the version of the measurement block. const MeasurementBlockVersion =...
package ber import ( "bytes" "fmt" "io" "reflect" ) type Packet struct { ClassType uint8 TagType uint8 Tag uint8 Value interface{} ByteValue []byte Data *bytes.Buffer Children []*Packet Description string } const ( TagEOC = 0x00 TagBoolean = 0x01 T...
// Copyright 2015 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 testutil // TestServer is a test helper. It uses a fork/exec model to create // a test Consul server instance in the background and initialize it // with some data and/or services. The test server can then be used // to run a unit test, and offers an easy API to tear itself down // when the test has completed....
package main import ( "bytes" "fmt" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/inancgumus/screen" "github.com/jwalton/go-supportscolor" "github.com/muesli/termenv" "github.com/sahilm/fuzzy" "io/fs" "io/ioutil" "math" "os" "os/exec" "path/filepath" "regexp"...
package catalog import ( "fmt" "reflect" "strings" mapset "github.com/deckarep/golang-set" "github.com/pkg/errors" corev1 "k8s.io/api/core/v1" "github.com/openservicemesh/osm/pkg/constants" "github.com/openservicemesh/osm/pkg/kubernetes" "github.com/openservicemesh/osm/pkg/service" "github.com/openservicem...
package goscaleio type Error struct { Message string `xml:"message,attr"` MajorErrorCode int `xml:"majorErrorCode,attr"` MinorErrorCode string `xml:"minorErrorCode,attr"` VendorSpecificErrorCode string `xml:"vendorSpecificErrorCode,attr,omitempty"` StackTrace stri...
// 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 pgzip import ( "bytes" "errors" "fmt" "hash" "hash/crc32" "io" "runtime" "sync" "time" "github.com/klauspost/compress/flate" ) const ( def...
/* Copyright 2018 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
package peer import ( "context" "crypto/x509" "encoding/base64" "encoding/pem" "strconv" fabric "github.com/hyperledger/cello/src/agent/fabric-operator/pkg/apis/fabric" fabricv1alpha1 "github.com/hyperledger/cello/src/agent/fabric-operator/pkg/apis/fabric/v1alpha1" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/...
// PoC-Specialized_Services based on a MCIS // Create a MCIS-VPN environment on a MCIS consisting of multiple VMs // // * Cloud-Barista: https://github.com/cloud-barista // // by <NAME>, <EMAIL>, 2019.11. package mcisvpn import ( "fmt" "bytes" "log" "os/exec" "strings" "os" "io/ioutil" "strconv" "encodi...
// Copyright (C) 2017 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 (c) 2013-2015 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package wallet import ( "bytes" "fmt" "time" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" "...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package cli import ( "bytes" "encoding/json" "errors" "fmt" "io" "path/filepath" "github.com/aws/aws-sdk-go/service/ssm" "github.com/aws/copilot-cli/internal/pkg/aws/cloudformation" cs "github.com/a...
/* * Copyright 2020 VMware, Inc. All rights reserved. Licensed under the Apache v2 License. */ package govcd import ( "bytes" "compress/gzip" "encoding/base64" "errors" "fmt" "net/http" "net/url" "strings" "time" "github.com/yetialex/go-vcloud-director/v2/types/v56" "github.com/yetialex/go-vcloud-dire...
package recvs import ( "bytes" "context" "fmt" "io" "net" "regexp" "sync" "time" "gofluentd/library" "gofluentd/library/log" utils "github.com/Laisky/go-utils" "github.com/Laisky/zap" "github.com/cespare/xxhash" "github.com/tinylib/msgp/msgp" ) const ( defaultConcatorWait = 3 * time.Second ...
// Copyright 2016 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package pvl import ( b64 "encoding/base64" "fmt" "log" "sort" "strings" "testing" "github.com/PuerkitoBio/goquery" keybase1 "github.com/keybase/client/go/protocol/keybase1" jsonw "github....
/* 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 2021 Google LLC. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...