text
stringlengths
5.51k
28.1k
package dockercompose import ( "bufio" "bytes" "context" "fmt" "io" "os" "os/exec" "regexp" "runtime" "strings" "sync" "github.com/compose-spec/compose-go/loader" "golang.org/x/mod/semver" "github.com/compose-spec/compose-go/types" "github.com/pkg/errors" "github.com/tilt-dev/tilt/internal/container...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/type/matcher/v4alpha/regex.proto package envoy_type_matcher_v4alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" wrappers "github.co...
/* Copyright 2021 The KubeVela 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, so...
// Copyright © 2014 <NAME> <<EMAIL>>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package resolvers import ( "context" "fmt" "sort" "time" "github.com/cockroachdb/errors" "github.com/hashicorp/go-multierror" "github.com/opentracing/opentracing-go/log" "github.com/sourcegraph/sourcegraph/enterprise/internal/codeintel/stores/dbstore" store "github.com/sourcegraph/sourcegraph/enterprise/int...
package svcdef import ( "errors" "fmt" "path" "path/filepath" "strconv" ) // ErrCircularImport is returned if a circular import exists var ErrCircularImport = errors.New("circular import") // Parse returns a structured representation of the def // file at the given path. func Parse(filename string) (*File, erro...
package app import ( _ "embed" "bytes" "encoding/json" "fmt" "io" "os" "strings" "text/template" "github.com/fastly/cli/pkg/cmd" "github.com/fastly/cli/pkg/config" fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/text" "github.com/fastly/kingpin" ) // Usage returns a contextual usag...
package hci import ( "fmt" "io" "net" "strings" "sync" "time" "github.com/go-ble/ble" "github.com/go-ble/ble/linux/hci/cmd" "github.com/go-ble/ble/linux/hci/evt" "github.com/go-ble/ble/linux/hci/socket" "github.com/pkg/errors" ) // Command ... type Command interface { OpCode() int Len() int Marshal([]b...
package command import ( "context" "fmt" "net/http" "os" "path/filepath" "strconv" "strings" "time" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/s3" "github.com/evergreen-ci/evergreen/model" "github.com/evergreen-ci/evergreen/model/artifact" "github.com/evergreen-ci/evergr...
package disgord import ( "context" "errors" "fmt" "net/http" "github.com/andersfylling/disgord/internal/endpoint" "github.com/andersfylling/disgord/internal/httd" ) // different message activity types const ( _ = iota MessageActivityTypeJoin MessageActivityTypeSpectate MessageActivityTypeListen MessageAct...
// Copyright (c) 2020 Tailscale Inc & 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 ( "errors" "fmt" "log" "net/http" "path/filepath" "reflect" "strings" "time" "github.com/tailscale/tailscale-android/...
package swag import ( "fmt" "go/ast" "reflect" "regexp" "strconv" "strings" "sync" "unicode" "github.com/go-openapi/jsonreference" "github.com/go-openapi/spec" ) var _ FieldParser = &tagBaseFieldParser{p: nil, field: nil, tag: ""} const ( requiredLabel = "required" swaggerTypeTag = "swaggertype" s...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runner import ( "crypto" "crypto/hmac" "crypto/md5" "crypto/sha1" "crypto/sha256" "encoding" "hash" "golang.org/x/crypto/hkdf" ...
// Copyright 2019 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: v1/group.proto package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) c...
/* SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the Submariner project. 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 requ...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gc import ( "bytes" "cmd/internal/obj" ) const ( UINF = 100 PRIME1 = 3 BADWIDTH = -1000000000 MaxStackVarSize = 10 * ...
package messages import ( "fmt" config "github.com/nttdots/go-dots/dots_server/config" "github.com/shopspring/decimal" ) type MitigationResponse struct { _struct bool `codec:",uint"` //encode struct with "unsigned integer" keys MitigationScope MitigationScopeStatus `json:"ietf-dots-signal-channel:mitigat...
/* 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 ui import ( "encoding/json" "image" "image/color" "net/http" "sort" "golang.org/x/exp/shiny/materialdesign/icons" "golang.org/x/text/language" "golang.org/x/text/message" "gioui.org/gesture" "gioui.org/io/key" "gioui.org/layout" "gioui.org/op/paint" "gioui.org/unit" "gioui.org/widget" "github...
//Package govec is a vector clock logging library package govec import ( "bytes" "fmt" "log" "os" "path/filepath" "strconv" "sync" "time" ct "github.com/daviddengcn/go-colortext" "github.com/savreline/GoVector/govec/vclock" "github.com/vmihailenco/msgpack" ) var ( logToTerminal = fa...
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: com/daml/ledger/api/v1/ledger_offset.proto package v1 ...
package main import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" "net/http" "os" "os/signal" "strconv" "time" english "github.com/go-playground/locales/en" ut "github.com/go-playground/universal-translator" api "github.com/kubesure/party/api/v1" log "github.com/sirupsen/logrus" "go.mongodb.org...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: rrc_failure_information.proto package streaming_protobufs import ( fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" math "math" ) // Reference imports to suppress errors if they are not otherwise u...
// Copyright 2014 beego Author. 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...
package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "net/http" "strings" errors "github.com/go-openapi/errors" loads "github.com/go-openapi/loads" runtime "github.com/go-openapi/runtime" middlewa...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: build/bazel/remote/logstream/v1/remote_logstream.proto package remotelogstream 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/gr...
package controller import ( "encoding/json" "fmt" "regexp" "sort" "strings" "github.com/argoproj/argo/errors" wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1" "github.com/argoproj/argo/workflow/common" "github.com/valyala/fasttemplate" ) // stepsContext holds context information about this context...
package authz import ( "bytes" "net/http" "net/http/httptest" "sort" "testing" "github.com/go-phorce/dolly/xlog" "github.com/go-phorce/dolly/xhttp/header" "github.com/juju/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func Test_NewConfig(t *testing.T) { _, err := Ne...
/* Copyright (C) THL A29 Limited, a Tencent company. All rights reserved. SPDX-License-Identifier: Apache-2.0 */ package consensus_mock import ( "encoding/hex" "errors" "fmt" "sync" "testing" "time" "chainmaker.org/chainmaker/pb-go/v2/accesscontrol" "chainmaker.org/chainmaker-go/consensus/chainedbft/utils"...
// Copyright 2015-2017 the u-root 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 ( "flag" "fmt" "io" "log" "os" "os/exec" "path/filepath" "strconv" "strings" "syscall" "time" "unsafe" // "github.com...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: proto/hello/transport.proto package hello import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google....
package bot import ( "reflect" "runtime" "strings" "github.com/pkg/errors" "github.com/diamondburned/arikawa/v2/gateway" ) var ( typeMessageCreate = reflect.TypeOf((*gateway.MessageCreateEvent)(nil)) typeMessageUpdate = reflect.TypeOf((*gateway.MessageUpdateEvent)(nil)) typeIError = reflect.TypeOf((*error...
/* Copyright 2021 ICS-FORTH. 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 dist...
// Copyright 2021 Monoskope Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package gotiny_test import ( "bytes" "encoding" "fmt" "io" "math/rand" "net/url" "os" "reflect" "testing" "time" "unsafe" "github.com/niubaoshu/gotiny" "github.com/niubaoshu/goutils" ) type ( baseTyp struct { fBool bool fInt8 int8 fInt16 int16 fInt32 int32 fInt64 in...
// 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...
package qst import ( "fmt" "io" "math" "sort" "strings" "github.com/zew/go-questionnaire/pkg/cfg" "github.com/zew/go-questionnaire/pkg/css" ) func wrap(w io.Writer, tagName, forVal, className, style, content string) { forKeyVal := "" if forVal != "" { forKeyVal = fmt.Sprintf("for='%v'", forVal) } if ...
package s import ( "fmt" "github.com/ssgo/log" "github.com/ssgo/standard" "github.com/ssgo/u" "io" "net/http" "net/url" "regexp" "strings" "time" "github.com/gorilla/websocket" "github.com/ssgo/discover" ) type proxyInfo struct { matcher *regexp.Regexp fromPath string toApp string toPath string...
/* 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 sourcenet import ( "github.com/galaco/bitbuf" "github.com/golang-source-engine/checksum" "github.com/galaco/sourcenet/message" "github.com/galaco/sourcenet/utils" "log" ) // SplitPacket is a case when a message can contain multiple packet types type SplitPacket struct { netID int32 sequenceNum...
// Copyright 2016-2017 VMware, 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...
// KATO, Application Management Platform // Copyright (C) 2021 Gridworkz Co., Ltd. // 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 r...
//go:build !gc.conservative && !gc.extalloc // +build !gc.conservative,!gc.extalloc package memory import ( "time" "unsafe" ) const ( //gc_WHITE uintptr = 1 << (bits.UintSize-1) //gc_BLACK uintptr = 1 << (bits.UintSize-2) //gc_COLOR_MASK = gc_WHITE | gc_BLACK gc_WHITE uint32 = 0 gc_BLACK uint32 = ...
package orm import ( "bytes" "errors" "fmt" "testing" "github.com/iov-one/weave/store" "github.com/iov-one/weave/weavetest/assert" ) // simple indexer for Counter func count(obj Object) ([]byte, error) { if obj == nil { return nil, errors.New("Cannot take index of nil") } cntr, ok := obj.Value().(*Counter...
// Copyright 2020 IBM Corp. // SPDX-License-Identifier: Apache-2.0 package app import ( "reflect" "strconv" "strings" "emperror.dev/errors" app "fybrik.io/fybrik/manager/apis/app/v1alpha1" "fybrik.io/fybrik/manager/controllers/utils" "fybrik.io/fybrik/pkg/adminconfig" "fybrik.io/fybrik/pkg/logging" "fybrik...
package kube import ( "fmt" "k8s.io/apimachinery/pkg/api/resource" log "github.com/Sirupsen/logrus" "github.com/datacol-io/datacol/cloud" batchv1 "k8s.io/api/batch/v1" batch_v1beta1 "k8s.io/api/batch/v1beta1" v1 "k8s.io/api/core/v1" "k8s.io/api/extensions/v1beta1" kerrors "k8s.io/apimachinery/pkg/api/errors...
/* Copyright 2022 The nagare media 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,...
/* 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 © 2019 Alibaba 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 law or agreed...
package core import ( "encoding/json" "fmt" "os" "reflect" "sync" "time" ) const ( Disconnected = iota Connected Ready Leaving ) // Exponential backoff settings // // initialRetryDelay is used for the first reconnection after startup and after // a successful connection (0 means try again immediately). // ...
package main import ( "fmt" "unicode" ) const ( UNSUPPORTED_GLYPH_ID = "Unsupported" UNDERCURL_GLYPH_ID = "Undercurl" ) type FontAtlas struct { texture Texture pos IntVec2 characters map[string]IntRect } type Renderer struct { userFont Font defaultFont Font fontAtlas FontAtlas // Vertex ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/wasm/v3/wasm.proto package envoy_extensions_wasm_v3 import ( fmt "fmt" v3 "github.com/cilium/proxy/go/envoy/config/core/v3" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "githu...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: role.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" ) const ( // Veri...
/* * Copyright (c) 2013 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
package main import ( "context" "encoding/json" "fmt" "io/ioutil" "net/http" "strconv" "strings" "github.com/sirupsen/logrus" admissionv1beta1 "k8s.io/api/admission/v1beta1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" ) const ( // gMSAConta...
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "bytes" "context" "encoding/json" "io" "io/ioutil" "github.com/go-openapi/errors" "github.com/go-openapi/r...
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "bytes" "context" "encoding/json" "io" "io/ioutil" "github.com/go-openapi/errors" "github.com/go-openapi/r...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/tap/v3/tap.proto package envoy_service_tap_v3 import ( context "context" fmt "fmt" v31 "github.com/cilium/proxy/go/envoy/config/core/v3" v3 "github.com/cilium/proxy/go/envoy/data/tap/v3" _ "github.com/cncf/udpa/go/udpa/annotations" _ "git...
// Copyright 2021 The Chromium OS 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 benchmark import ( "context" "path/filepath" "regexp" "strconv" "strings" "time" "chromiumos/tast/common/perf" "chromiumos/tast/ctxut...
package vmesh import ( "bytes" "crypto/rand" "crypto/x509" "errors" "log" "math" "net" "sync" "time" "github.com/losfair/vmesh/protocol" "google.golang.org/protobuf/proto" ) type MessageTag uint32 const ( MessageTag_Invalid MessageTag = iota MessageTag_IP MessageTag_Announce MessageTag_Ping MessageT...
/* 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 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go.chromium.org/luci/tools/cmd/bqschemaupdater/testdata/event.proto /* Package testdata is a generated protocol buffer package. It is generated from these files: go.chromium.org/luci/tools/cmd/bqschemaupdater/testdata/event.proto It has these top-level mes...
/*********************************************************************************************************************** gtt.go License: MIT Copyright (c) 2019 <NAME> github : rDybing Linked In : <NAME> Twitter : @DybingRoy Full license text in README.md ***********************************************...
package data import ( "base-service/app/comment/service/internal/biz" "base-service/pkg/orm" "context" "encoding/json" "fmt" mapset "github.com/deckarep/golang-set" "github.com/go-kratos/kratos/v2/log" "gorm.io/gorm" "time" ) type CommentSubject struct { orm.Model ObjId uint64 ObjType int MemberId uint64...
package treepair import ( "fmt" "strconv" "strings" "github.com/loeksnokes/prefcode" ) /* TreePair An interface built specifically for the type treePair. TreePair:: Has: Two prefix codes with the same base alphabet and same cardinality. One called the range and one called the domain. Either side can carry a ...
package compiler import ( "fmt" "strconv" "github.com/lestrrat-go/xslate/node" "github.com/lestrrat-go/xslate/parser" "github.com/lestrrat-go/xslate/vm" ) // AppendOp creates and appends a new op to the current set of ByteCode func (ctx *context) AppendOp(o vm.OpType, args ...interface{}) vm.Op { return ctx.By...
package main import ( "errors" "flag" "fmt" "github.com/ops-class/test161" color "gopkg.in/fatih/color.v0" "os" "sort" "strings" "time" ) // 'test161 run' flags var runCommandVars struct { dryRun bool explain bool sequential bool nodeps bool verbose string isTag bool tests []st...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package rules import ( "context" "crypto/rand" "encoding/hex" "regexp" "time" "cloud.google.com/go/spanner" "go.chromium.org/luci/common/errors" ...
package main import ( "context" "encoding/json" "fmt" "google.golang.org/grpc" "log" "net" "os" "regexp" "strconv" "strings" "time" "flag" "bufio" als "github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2" ptypes "github.com/golang/protobuf/ptypes" duration "github.com/golang/protobuf/pt...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/services/keyword_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources" _ "goog...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/type/matcher/v3/string.proto package envoy_type_matcher_v3 import ( fmt "fmt" _ "github.com/cilium/proxy/go/envoy/annotations" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/go...
/* Copyright 2017 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/accesslog/v2/als.proto package v2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import core "github.com/cilium/cilium/pkg/envoy/envoy/api/v2/core" import _ "github.com/lyft/protoc-gen-validate/validate" // ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: grpc/health/v1/health.proto package grpc_health_v1 // import "github.com/panjjo/grpc-go/health/grpc_health_v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import ( context "golang.org/x/net/context" grpc "github.com...
/* 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 ...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
// Package hyperkit provides a Go wrapper around the hyperkit // command. It currently shells out to start hyperkit with the // provided configuration. // // Most of the arguments should be self explanatory, but console // handling deserves a mention. If the Console is configured with // ConsoleStdio, the hyperkit is s...
package logic import ( "slgserver/server/slgserver/global" "slgserver/server/slgserver/logic/mgr" "slgserver/server/slgserver/model" "slgserver/server/slgserver/static_conf" "slgserver/util" "sync" "time" ) type armyLogic struct { sys *sysArmyLogic passBy sync.RWMutex stop sync.RWMutex ...
// Copyright 2019 HAProxy Technologies // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
// Copyright 2020 MatrixOrigin. // // 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/billing_setup_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_cloudagent_credentialmonitor.proto package admin import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/microsoft/moc/rpc/common" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "googl...
// Copyright 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 to in writi...
// This file was generated from JSON Schema using quicktype, do not modify it directly. // To parse and unparse this JSON data, add this code to your project and do: // // starsList, err := UnmarshalStarsList(bytes) // bytes, err = starsList.Marshal() package stars_list import "encoding/json" func UnmarshalSta...
package submarineragent import ( "context" "fmt" "sort" "strconv" "strings" configv1alpha1 "github.com/open-cluster-management/submariner-addon/pkg/apis/submarinerconfig/v1alpha1" configclient "github.com/open-cluster-management/submariner-addon/pkg/client/submarinerconfig/clientset/versioned" //nolint:lll /...
// Copyright (c) 2010-2011 The Grumble Authors // The use of this source code is goverened by a BSD-style // license that can be found in the LICENSE-file. package main import ( "bufio" "bytes" "crypto/tls" "encoding/binary" "errors" "github.com/golang/protobuf/proto" "io" "log" "mumble.info/grumble/pkg/acl"...
// 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 ...
// Copyright 2019 The Cockroach Authors. package pgcode // Code is a wrapper around a string to ensure that pgcodes are used in // different pgerror functions by avoiding accidental string input. type Code string // MakeCode converts a string into a Code. func MakeCode(s string) Code { return Code(s) } // String ...
package storage import ( "context" "sort" "time" "github.com/cortexproject/cortex/pkg/chunk" "github.com/cortexproject/cortex/pkg/util" "github.com/cortexproject/cortex/pkg/util/spanlogger" "github.com/go-kit/kit/log/level" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/pkg/labels" ...
// Copyright (c) 2009 <NAME>. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // The MIT License is an OSI approved license and can // be found at // http://www.opensource.org/licenses/mit-license.php // Access to PDF files. package pdfread...
/* * Copyright IBM Corp. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ package gossip import ( "fmt" "io/ioutil" "os" "syscall" "time" docker "github.com/fsouza/go-dockerclient" "github.com/Yunpeng-J/HLF-2.2/integration/nwo" "github.com/Yunpeng-J/HLF-2.2/integration/nwo/commands" . "gi...
/* Copyright 2020 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright © 2016-2021 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pu...
/* Copyright 2014 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 authentication import ( "crypto/aes" "crypto/cipher" "encoding/base64" "encoding/json" "errors" "fmt" "net/http" "strconv" "strings" "time" "github.com/kiali/kiali/config" "github.com/kiali/kiali/log" "github.com/kiali/kiali/util" ) // SessionCookieMaxSize is the maximum size of session cookies....
package io import ( "bytes" "context" "errors" "io" "github.com/TRON-US/go-unixfs" ipld "github.com/ipfs/go-ipld-format" mdag "github.com/ipfs/go-merkledag" ) // Common errors var ( ErrIsDir = errors.New("this dag node is a directory") ErrCantReadSymlinks = errors.New("cannot currently read symli...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: example/proto3/example.proto package proto3 import ( proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/protoc-gen-go/descriptor" _ "github.com/octavore/protoc-gen-setter...
/* Copyright 2021. 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 un...