text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/display_keyword_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" ...
package bosgo import ( "bufio" "fmt" "io" "os" "reflect" "strings" "testing" ) // typeMap is a mapping of api blueprint data structure name to bosgo type var typeMap = map[string]interface{}{ "Access": Access{}, "AccessCapabilities": AccessCapabilities{}, "Account": ...
package workers import ( "encoding/json" "fmt" "github.com/APTrust/bagman/bagman" "github.com/nsqio/go-nsq" "os" "strings" "time" ) // Large file is ~50GB const LARGE_FILE_SIZE = int64(50000000000) // apt_prepare receives messages from nsqd describing // items in the S3 receiving buckets. It fetches, untars,...
/* 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 api import ( "bytes" "compress/gzip" "context" crand "crypto/rand" "crypto/sha256" "encoding/hex" "errors" "fmt" "io/ioutil" "math" "math/big" "math/rand" "net" "net/http" "os" "path/filepath" "regexp" "strings" "sync" "time" "github.com/0xrawsec/sod" "github.com/0xrawsec/whids/event" "...
// Copyright 2020 yhyzgn gtc // // 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/v0/resources/keyword_plan_campaign.proto package resources import ( fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "github.com/kritzware/google-ads-go/enums" math "math...
// Copyright (c) 2015 Western Digital Corporation or its affiliates. All rights reserved. // SPDX-License-Identifier: MIT package raft import ( "io" log "github.com/golang/glog" ) // coreFollower represents the state of follower. type coreFollower struct { c *core // The time in ticks (as measured by core.elap...
package beaglebone type PinInfo struct { Name string Key string GPIO int PWMMuxMode int AInNr int // PinMuxFilename string } var ( USR0 = PinInfo{"USR0", "USR0", 53, -1, -1} USR1 = PinInfo{"USR1", "USR1", 54, -1, -1} USR2 = PinInfo{"USR2", "USR2", 55, -1, -1} USR3 = PinInfo{"USR3...
package eksconfig import ( "errors" "fmt" "path/filepath" "strings" "github.com/aws/aws-k8s-tester/ec2config" "github.com/aws/aws-k8s-tester/pkg/timeutil" aws_eks_v2_types "github.com/aws/aws-sdk-go-v2/service/eks/types" "github.com/aws/aws-sdk-go/service/eks" ) // AddOnNodeGroups defines parameters for EKS ...
/* Author: <NAME> Date: 2021-10-21 Email: <EMAIL> */ package hicev1 import ( "bytes" "context" "crypto/tls" "encoding/json" "fmt" "log" "os" "time" "go.etcd.io/etcd/client/pkg/v3/transport" clientv3 "go.etcd.io/etcd/client/v3" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachiner...
package endpoints import ( "encoding/json" "errors" "fmt" "reflect" "strconv" "strings" "time" ) // ApiDescriptor is the top-level struct for a single Endpoints API config. type ApiDescriptor struct { // Required Extends string `json:"extends"` Root string `json:"root"` Name string `json:"name"` ...
package yt_stats import ( "time" ) // Inputs stores variables sent to the handlers, basically global variables. type Inputs struct { StartTime time.Time StatusCheck string RepliesRoot string CommentsRoot string ChannelsRoot string PlaylistsRoot string PlaylistItemsRoot string...
package stripe import ( "encoding/json" "github.com/VividCortex/stripe-go/form" ) // LegalEntityType describes the types for a legal entity. // Allowed values are "individual", "company". type LegalEntityType string // IdentityVerificationDetailsCode is a machine-readable code specifying the // verification state...
// //Queensaver API // //Queensaver API to send in sensor data and retrieve it. It's also used for user management. // //The version of the OpenAPI document: 0.0.1 // //Generated by OpenAPI Generator: https://openapi-generator.tech // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1...
// vclock - vector clocks for Go. // // Copyright (c) 2010-2014 - <NAME> <<EMAIL>> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the ab...
// Copyright (c) 2020-2021 Blockwatch Data Inc. // Author: <EMAIL> package server import ( "context" "encoding/hex" "encoding/json" "fmt" "io" "math" "net/http" "strconv" "strings" "time" "blockwatch.cc/packdb/encoding/csv" "blockwatch.cc/packdb/pack" "blockwatch.cc/packdb/util" "blockwatch.cc/packdb/v...
// Copyright 2019 The Go Language Server 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 protocol import ( "strconv" "go.lsp.dev/uri" ) // DocumentURI represents the URI of a document. // // Many of the interfaces contai...
/** * Copyright 2018-19 TIBCO Software 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. * A copy of the License is included in the distribution package with this file. * You also may obtain a copy of th...
package buildsys import ( "context" "fmt" "io/ioutil" "os" "path/filepath" "runtime" "strings" "github.com/aidarkhanov/nanoid" "github.com/rotisserie/eris" "go.starlark.net/starlark" "mvdan.cc/sh/v3/syntax" ) type parserCtx struct { ctx context.Context globals starlark.StringDict options ...
package v0_13 import ( "errors" "fmt" "strings" "time" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" ) // Defaults for auction params const ( // DefaultMaxAuctionDuration max length of auction DefaultMaxAuctionDuration time.Duration = 2 * 24 * time.Hour // DefaultBidDurati...
// Copyright 2016 <<EMAIL>{AT}<EMAIL>>. 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 // // 数据来源: // https://github.com/langhua9527/BlackheartedHospital // package main import ( "bytes" "fmt" "go/format" "io/ioutil" ...
package main import ( "bytes" "encoding/json" "fmt" "os" "path/filepath" "strconv" "context" "net" "net/http" "net/url" "sync" "github.com/getlantern/systray" "github.com/kirsle/configdir" "github.com/skratchdot/open-golang/open" "time" keychain "github.com/keybase/go-keychain" "github.com/mtouge...
package jsonw import ( "bytes" "encoding/json" "testing" ) func TestInt(t *testing.T) { const x = 100 w := NewInt(x) if v, _ := w.GetInt(); v != x { t.Errorf("%d != %d in GetInt() test", v, x) } } func TestBigInt(t *testing.T) { const x = 1<<62 + 55555 w := NewInt64(x) if v, _ := w.GetInt64(); v != x { ...
/* Copyright 2017 Caicloud 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.15.6 // source: interservice/compliance/version/version.proto package version import ( context "context" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" g...
package genesis import ( "crypto/sha256" "encoding/json" "fmt" "math/big" "path" "strings" "time" "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" tmtypes "github.com/tendermint/tendermint/types" "gitlab.com/accumulatenetwork/accumulate/config" "gitlab.com/accumula...
/* hangman.go _________________________________ Code for hangman of Kylixor Discord Bot <NAME> kylixor.com */ package main import ( "database/sql" "fmt" "io/ioutil" "math/rand" "os" "path/filepath" "strings" "github.com/bwmarrin/discordgo" ) // Stages of the hanging var hmStages = []s...
package main import ( "bytes" "context" "fmt" "io" "io/ioutil" "log" "math" "net" "net/http" "os" "os/exec" "strconv" "strings" "sync" "time" "github.com/lorenzosaino/go-sysctl" "gopkg.in/yaml.v2" ) type IperfData struct { Name string `yaml:"name"` Ip string `yaml:"ip"` Port string `yaml:"port"...
package minq import ( "encoding/hex" "fmt" "io" ) // SendStreamState is the state of a SendStream type SendStreamState uint8 // SendStreamState values. Not all of these are tracked const ( SendStreamStateOpen = SendStreamState(0) SendStreamStateSend = SendStreamState(1) SendStreamStateCloseQueue...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: mkit/service/greeter/v1/greeter_service.proto package greeterv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl...
package lion import ( "log" "net/http" "os" "path" "strings" "sync" "time" ) // HTTP methods constants const ( GET = "GET" HEAD = "HEAD" POST = "POST" PUT = "PUT" DELETE = "DELETE" TRACE = "TRACE" OPTIONS = "OPTIONS" CONNECT = "CONNECT" PATCH = "PATCH" ) var allowedHTTPMethods = [....
// SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors. // // SPDX-License-Identifier: Apache-2.0 package landscaper import ( "context" "fmt" "path/filepath" cdv2 "github.com/gardener/component-spec/bindings-go/apis/v2" "github.com/gardener/component-spec/bindings-go/codec"...
// Package wrk implements wrk utilities. package wrk import ( "context" "errors" "fmt" "strconv" "strings" "time" "github.com/aws/aws-k8s-tester/pkg/csvutil" "github.com/dustin/go-humanize" "go.uber.org/zap" "k8s.io/utils/exec" ) // Config defines "wrk" command configuration. // See https://github.com/wg/...
package filters import ( "context" "fmt" "os" "time" "github.com/Oneledger/protocol/action/olvm" "github.com/Oneledger/protocol/log" onetypes "github.com/Oneledger/protocol/web3/types" rpctypes "github.com/Oneledger/protocol/web3/types" "github.com/pkg/errors" tmpubsub "github.com/tendermint/tendermint/libs...
package wtower import ( "bytes" "encoding/binary" "encoding/hex" "errors" "fmt" "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcd/connmgr" "github.com/lightningnetwork/lnd/brontide" "github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwire" "io" "sync" "sync/atomic" "tim...
// Copyright 2019 Polyaxon, 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...
package otfranz import ( "context" "net" "time" "github.com/twmb/franz-go/pkg/kgo" "github.com/twmb/franz-go/pkg/kmsg" "github.com/twmb/franz-go/pkg/kversion" "github.com/twmb/franz-go/pkg/sasl" ) // Config is a configuration object used to create new instances of *kgo.Client. // The detailed configuration ch...
// Inferno utils/5l/asm.c // https://bitbucket.org/inferno-os/inferno-os/src/default/utils/5l/asm.c // // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. // Portions Copyright © 1995-1997 <NAME> (<EMAIL>) // Portions Copyright © 1997-1999 Vita Nuova Limited // Portions Copyright © 2000-2007 Vita Nu...
/* lexml will lex an xml file and create tokens for the tag, arguments, etc that is lexed, and put the tokens on a channel where the tokens can be picked up by a parser. The lexer will be build't by having one main run function who executes a function, and get a new function in return, that again will be executed next....
// Package bloomskyStructure calls rest API Bloomsky, puts it in the structure and gives somes functions package bloomskyStructure //go:generate echo Go Generate! //go:generate ./command/bindata.sh import ( "encoding/json" "io/ioutil" "math" "os" "time" http "github.com/patrickalin/http-go" "github.com/sirups...
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package jsonassert import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) func TestString(t *testing.T) { testPass("\"Joe\"", "\"Joe\"", STRICT, t); testPass("\"Joe\"", "\"Joe\"", LENIENT, t); testPass("\"Joe\"", "\"Joe\"", NON_EXTENSIBLE, t); testPass("\"Joe\"", "\"Joe\"", STRICT...
// Copyright 2015 The 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 markdown type Token interface { Tag() string Opening() bool Closing() bool Block() bool Level() int SetLevel(lvl int) } type BlockquoteOpen struct ...
package iavl import ( "errors" "fmt" "io" "sync" "time" ics23 "github.com/confio/ics23/go" "github.com/cosmos/iavl" abci "github.com/tendermint/tendermint/abci/types" tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" dbm "github.com/tendermint/tm-db" "github.com/Pylons-tech/cosmos-sdk/st...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/solo-io/gloo/projects/gloo/api/external/envoy/api/v2/config/wasm/wasm.proto package config import ( fmt "fmt" math "math" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/gogo/protobuf/proto" _ "github.com/solo-io/p...
package batchproducer import ( "errors" "fmt" "sync" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kinesis" "go.uber.org/zap" ) // MaxKinesisBatchSize is the maximum number of records that Kinesis accepts in a request const MaxKinesisBatchSize = 500 // Producer collects records in...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: pkg/secrets/grpc/protocol.proto package grpc import ( empty "github.com/golang/protobuf/ptypes/empty" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang....
// Copyright 2019 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 source import ( "context" "encoding/json" "fmt" "go/ast" "go/doc" "go/format" "go/token" "go/types" "strings" "golang.org/x/tools/internal/e...
// Copyright 2017 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 storage import ( "context" "flag" "fmt" "strings" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "github.com/cortexproject/cortex/pkg/chunk" "github.com/cortexproject/cortex/pkg/chunk/aws" "github.com/c...
/* * Copyright 2019 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// Copyright (c) 2017 Uber Technologies, 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 a...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: beam_provision_api.proto package fnexecution_v1 import ( context "context" fmt "fmt" pipeline_v1 "github.com/apache/beam/sdks/go/pkg/beam/model/pipeline_v1" proto "github.com/golang/protobuf/proto" _struct "github.com/golang/protobuf/ptypes/struct" grp...
/* * 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 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 container import ( "bufio" "bytes" "errors" "fmt" "io" "os" "os/signal" "path/filepath" "strings" "syscall" "time" "github.com/docker-slim/docker-slim/pkg/app" "github.com/docker-slim/docker-slim/pkg/app/master/config" dockerapi "github.com/fsouza/go-dockerclient" "github.com/moby/term" log "...
// 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 gc import ( "cmd/compile/internal/ssa" "cmd/internal/obj" "cmd/internal/sys" "fmt" "sort" "strings" ) // "Portable" code generation. var makefu...
// //Copyright 2019 The Kubernetes Authors. // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed t...
package storageos import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "math/rand" "net" "net/http" "net/url" "reflect" "strconv" "strings" "sync" "time" "github.com/storageos/go-api/netutil" "github.com/storageos/go-api/serror" ) const ( // DefaultUserAgent is the default Us...
/* Notice: This file has been modified for Hyperledger Fabric SDK Go usage. Please review third_party pinning scripts and patches for more details. */ // Code generated by protoc-gen-go. DO NOT EDIT. // source: msp/msp_principal.proto package msp import proto "github.com/golang/protobuf/proto" import fmt "fmt" import...
// Copyright (c) 2020 Tigera, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
/* * Copyright (c) 2020 InterDigital Communications, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
/* Copyright 2017 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 law or agreed to in ...
package cluster import ( "encoding/json" "fmt" "math" "net" "reflect" "strings" "time" kinkyv1alpha1 "github.com/barpilot/kinky/pkg/apis/kinky/v1alpha1" kinkyclientset "github.com/barpilot/kinky/pkg/client/clientset/versioned" "github.com/barpilot/kinky/pkg/cluster/certs" "github.com/barpilot/kinky/pkg/clu...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2019 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...
package fastrpc import ( "bufio" "errors" "fmt" "github.com/valyala/fasthttp" "io" "net" "sync" "sync/atomic" "time" ) // RequestWriter is an interface for writing rpc request to buffered writer. type RequestWriter interface { // WriteRequest must write request to bw. WriteRequest(bw *bufio.Writer) error }...
/* 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 ...
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // +build !appengine package internal import ( "bytes" "errors" "fmt" "io/ioutil" "log" "net" "net/http" "net/url" "os" "runtime" "strconv" "string...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/health_check/v2/health_check.proto package envoy_config_filter_http_health_check_v2 import ( fmt "fmt" route "github.com/cilium/proxy/go/envoy/api/v2/route" _type "github.com/cilium/proxy/go/envoy/type" _ "github.com/cncf/udpa/go...
// _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // Copyright © 2016 - 2022 SeMI Technologies B.V. All rights reserved. // // CONTACT: <EMAIL>...
// Code generated by mockgen DO NOT EDIT. package mocks import ( "net/url" "time" "github.com/gambol99/go-marathon" ) type MarathonMock struct { AbdicateLeaderInvocations int AbdicateLeaderFn func() (string, error) AddEventsListenerInvocations int AddEventsListenerFn ...
package anansi import ( "bytes" "errors" "fmt" "io" "os" "os/signal" "runtime" "syscall" "time" "unicode/utf8" "github.com/jcorbin/anansi/ansi" ) const defaultMinReadSize = 128 // Input supports reading terminal input from a file handle with a buffer for // things like escape sequences. It supports both ...
package gocloak import "encoding/json" // GetQueryParams converts the struct to map[string]string // The fields tags must have `json:"<name>,string,omitempty"` format for all types, except strings // The string fields must have: `json:"<name>,omitempty"`. The `json:"<name>,string,omitempty"` tag for string field // w...
package main import ( "bufio" "bytes" "crypto/sha1" "encoding/binary" "flag" "fmt" "io/ioutil" "os" "os/exec" "runtime" "runtime/debug" "strconv" "strings" "github.com/google/pprof/profile" ) var ( flagInput = flag.String("i", "perf.data", "input perf file") flagOutput = flag.String("o", "", "ou...
// Copyright [2021] [josexy] // // 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...
// 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...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
package deployments import ( "context" "encoding/base64" "fmt" "io/ioutil" "os" "regexp" "strconv" "strings" "time" "github.com/avast/retry-go" "github.com/epinio/epinio/helpers" "github.com/epinio/epinio/helpers/kubernetes" "github.com/epinio/epinio/helpers/termui" "github.com/epinio/epinio/internal/au...
package racequal import ( "fmt" "../../util" "../analysis" "../report" "../traceReplay" ) type ListenerAsyncSnd struct{} type ListenerAsyncRcv struct{} type ListenerSync struct{} type ListenerDataAccess struct{} type ListenerGoFork struct{} type ListenerGoWait struct{} type ListenerPostProcess struct{} type Lis...
// Copyright (c) 2018 Uber Technologies, Inc. // // 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...
package olm import ( "encoding/base64" "encoding/json" "errors" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "time" "github.com/Masterminds/semver/v3" "github.com/artifacthub/hub/internal/hub" "github.com/artifacthub/hub/internal/pkg" "github.com/artifacthub/hub/internal/...
/* 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 ...
// Copyright (c) 2013-2017 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package btcec import ( "bytes" "crypto/ecdsa" "crypto/elliptic" "crypto/hmac" "crypto/sha256" "errors" "hash" "math/big" ) // Signature is a type representing ...
// Copyright 2022 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 sequencer import ( "bytes" "context" "encoding/binary" "errors" "fmt" "sort" "time" "cloud.google.com/go/bigtable" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) var ( // ErrTimeout is returned by CommitBatch and indicatets that the batch was expired ErrTimeout = errors.New("Tim...
package support import ( "errors" "strings" "github.com/BurntSushi/toml" "github.com/go-playground/validator/v10" "github.com/nicksnyder/go-i18n/v2/i18n" "golang.org/x/text/language" "gopkg.in/yaml.v2" ) // I18n manages the application translations. type I18n struct { bundle *i18n.Bundle config *Config log...
package main import ( "bufio" "encoding/json" "flag" "fmt" "io" "os" "os/signal" "regexp" "strings" "syscall" "time" "github.com/urfave/cli/v2" "golang.org/x/text/language" "github.com/cloudfoundry-attic/jibber_jabber" "github.com/golang/glog" "github.com/therecipe/qt/core" "github.com/therecipe/q...
package historydb import ( "errors" "fmt" "log" "math/rand" "testing" "time" "github.com/stretchr/testify/require" "github.com/skycoin/skycoin/src/cipher" "github.com/skycoin/skycoin/src/coin" "github.com/skycoin/skycoin/src/testutil" "github.com/skycoin/skycoin/src/visor/dbutil" ) func prepareDB(t *test...
package component import ( "fmt" "io/ioutil" "path/filepath" "strings" registryUtil "github.com/redhat-developer/odo/pkg/odo/cli/registry/util" "github.com/zalando/go-keyring" "github.com/devfile/library/pkg/devfile" "github.com/devfile/library/pkg/devfile/parser" "github.com/pkg/errors" "github.com/redhat...
// Copyright 2020 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may not // use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" fil...
package main /* * Contact * Email: <EMAIL> * Sponsor * ETH/BSC: 0x9F9D41C25c35DA7b87024AF8a04F021DdEfbfFD1 * TRON: TJaCJP66Wh8NsMaCFbNiSDWnwnwufpoLks * DOGE: D9BXAocUcsrg86bPUM1nGunwfBGFyR36rC * BTC: bc1qvh5mcucsj45l3v2h7r54dypjz60lxsmfa6daf5 **/ import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "math/ra...
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved. package faker import ( "fmt" "golang.org/x/exp/rand" "reflect" "strings" "time" "github.com/brianvoe/gofakeit/v4" dataframe "github.com/rocketlaunchr/dataframe-go" ) type s struct { Name string Function string A...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: workflow.proto /* Package workflow is a generated protocol buffer package. It is generated from these files: workflow.proto It has these top-level messages: Workflow WorkflowCheckpoint Task */ package workflow import proto "github.com/golang/protobuf/p...
// Copyright 2015 The LUCI 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. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel // protoc v3.12.1 // source: go.chromium....
package legacy import ( "context" "database/sql" "net/url" "os" "strings" "testing" "github.com/gofrs/uuid" _ "github.com/golang-migrate/migrate/database/postgres" // make driver available _ "github.com/golang-migrate/migrate/source/file" // make source available constants "github.com/chef/automate/c...
package canvas import ( "fmt" "image/color" "io/ioutil" "math" "os/exec" "reflect" "golang.org/x/image/font" "golang.org/x/image/font/sfnt" ) // FontStyle defines the font style to be used for the font. type FontStyle int // see FontStyle const ( FontRegular FontStyle = 0 // 400 FontItalic FontStyl...
/* Copyright 2020 The Nocalhost 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...