text
stringlengths
3.08k
10.4k
package triples // Enkelvoud maken!!! import "errors" const ( // NotFound int = -1 Wildcard int = -1 // Kiezen we niet best overal voor int64? Dit loopt slecht af op een 32-bit systeem. ) // Store is a data structure to compactly store triples. Store implements fast // search. type Store struct { ptrs0 []uint pt...
// Copyright 2017 Monax Industries Limited // // 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...
/* * Copyright (c) 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
package handlers //The data that this custom backend will return for the Bills endpoint type BillsToServe struct { Status string `json:"status"` //Results []struct { MemberID string `json:"member_id"` NumResults string `json:"num_results"` TotalVotes string `json:"total_votes"` Offset ...
package elliptic import ( "crypto/elliptic" "io" "math/big" "reflect" "github.com/qiniu/goplus/gop" ) // func (*elliptic.CurveParams).Add(x1 *big.Int, y1 *big.Int, x2 *big.Int, y2 *big.Int) (*big.Int, *big.Int) func execmCurveParamsAdd(_ int, p *gop.Context) { args := p.GetArgs(5) ret, ret1 := args[0].(*ellip...
// Copyright 2016 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...
package stf import ( "fmt" "strconv" androidv1alpha1 "github.com/tinyzimmer/android-farm-operator/pkg/apis/android/v1alpha1" stfutil "github.com/tinyzimmer/android-farm-operator/pkg/util/stf" ) type svcDef struct { Rule string Endpoints []string Port string TCPPort string Priority str...
// Copyright (C) 2019 <NAME>, Inc. // Copyright (C) 2017 Space Monkey, Inc. // See LICENSE for copying information. package ir import ( "fmt" "sort" "storj.io/dbx/consts" "storj.io/dbx/errutil" ) // returns true if left is a subset of right func fieldSetSubset(left, right []*Field) bool { if len(left) > len(ri...
// // Copyright (c) 2017 Red Hat, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
// +build windows /* 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 agr...
package main import ( "flag" "fmt" "io/fs" "os" "os/exec" "path/filepath" "strings" "text/template" ) var flagNoGen = flag.Bool("f", false, "fast mode; don't run XeLaTeX") type TemplateData struct { Sources []Source } type Source struct { Language string Path string } func hasExt(ext string) ignoreF...
/* Copyright 2017 <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 writing, softwar...
package rdf import "log" type RdfGraph []Triple func (triples RdfGraph) String() string { theString := "" for _, triple := range triples { theString += triple.StringLn() } return theString } func StringToGraph(theString, rootUri string) (RdfGraph, error) { var err error var graph RdfGraph if len(theString)...
package test import ( "fmt" "os" "testing" "time" "github.com/gruntwork-io/terratest/modules/gcp" "github.com/gruntwork-io/terratest/modules/logger" "github.com/gruntwork-io/terratest/modules/packer" "github.com/gruntwork-io/terratest/modules/retry" "github.com/gruntwork-io/terratest/modules/ssh" "github.co...
/* * Bulldozer Framework * Copyright (C) DesertBit */ package tr import ( "bufio" "encoding/json" "fmt" "github.com/desertbit/bulldozer/log" "io" "io/ioutil" "os" "path/filepath" "strings" "sync" "time" ) const ( Suffix = ".tr" defaultLocale = "en" reloadTimerTimeout = 1 * time.Second ) var...
package file import ( "context" "fmt" "net/http" "github.com/uploadcare/uploadcare-go/internal/config" ) // Info acquires some file-specific info func (s service) Info( ctx context.Context, fileID string, ) (data Info, err error) { err = s.svc.ResourceOp( ctx, http.MethodGet, fmt.Sprintf(infoPathFormat,...
package searcher import ( "fmt" "reflect" "strings" ) // Maximum matches to look for in each country const maxMatches = 3 // CountryList is the array of country struct type CountryList []Country // Country is the the ultimate Struct that json file loads into type Country struct { Name string `json:...
package main import ( "fmt" "go/format" "log" "path" "path/filepath" "strings" "gopkg.in/yaml.v3" ) type configField struct { Name, Type, Comment string Short bool } func (f configField) String() string { if f.Type == "" { f.Type = "systemdconf.Value" } if f.Short { return fmt.Sprintf(...
package cmd import ( "fmt" "strings" "github.com/jenkins-x/jx/pkg/helm" "github.com/jenkins-x/jx/pkg/gits" "github.com/jenkins-x/jx/pkg/jx/cmd/opts" "github.com/jenkins-x/jx/pkg/jx/cmd/templates" "github.com/jenkins-x/jx/pkg/kube" "github.com/jenkins-x/jx/pkg/log" "github.com/jenkins-x/jx/pkg/util" "github...
package mutate import ( "encoding/json" "fmt" "strconv" "strings" "github.com/appscode/jsonpatch" log "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" "k8s.io/apimachinery...
/* 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
// Package cluster provides common interfaces and local access to cluster-level metadata /* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. */ package cluster import ( "fmt" "reflect" "github.com/NVIDIA/aistore/3rdparty/glog" "github.com/NVIDIA/aistore/cmn" "github.com/OneOfOne/xxhash" ) const ...
package main import ( "bytes" "fmt" "github.com/tkellen/memorybox/pkg/file" "io/ioutil" "os" "path/filepath" "strings" "testing" ) func tempFile(t *testing.T, content string) string { tempFile, tempFileErr := ioutil.TempFile("", "*") if tempFileErr != nil { t.Fatalf("test setup: %s", tempFileErr) } _, t...
// Copyright 2014 <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 package main import ( "bytes" "flag" "fmt" "go/format" "io/ioutil" "log" "runtime" "sort" "strings" ) var ( flagOutput = flag.String("out...
//+build regexps_slow_test package utils import ( "fmt" "regexp" "strconv" "testing" ) func TestDateRegexp(t *testing.T) { dateRegexp, err := regexp.Compile(dateRegexpStr) if err != nil { t.Fatalf("failed while compiling the date regexp: %s", dateRegexpStr) } t.Parallel() for year := 1900; year < 2100; ye...
// Copyright (c) 2018, Sylabs Inc. All rights reserved. // This software is licensed under a 3-clause BSD license. Please consult the // LICENSE.md file distributed with the sources of this project regarding your // rights to use or distribute this software. package sypgp import ( "encoding/hex" "log" "net/http" ...
package days import ( "fmt" "log" "strconv" "strings" "github.com/fatih/color" ) type day4 struct{} type item struct { value int marked bool } type board [5][5]item type boards []board func (d *day4) Part1() string { boards, calledNumbers := getBoards() winningBoard, lastInput := findFirstWinner(board...
package memr import ( "debug/elf" "encoding/binary" "fmt" "io" "log" "os" "github.com/cheggaaa/pb/v3" "github.com/ryandeivert/memr/internal/iomem" ) // Reader implements the io.ReadCloser interface // Its values can also used as "options" for the resulting Reader // returned by the Probe() and NewReader() fu...
package main import ( "encoding/json" "errors" "fmt" "os" "strings" "time" "github.com/optum/runiac/pkg/config" "github.com/optum/runiac/pkg/logging" "github.com/optum/runiac/pkg/tracks" "github.com/sirupsen/logrus" "github.com/spf13/afero" pluginsarm "github.com/optum/runiac/plugins/arm" pluginsterrafo...
package servicing import ( "fmt" "os" "time" "github.com/go-kit/kit/log" core_v1 "k8s.io/api/core/v1" meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/wait" "github.com/sapcc/kubernikus/pkg/api/models" v1 "github.com/sapcc/kubernikus/pkg/apis/ku...
package cluster import "github.com/humpback/gounits/logger" import "github.com/humpback/common/models" import ( "fmt" "sync" "time" ) // UpgradeState is exported type UpgradeState int const ( // UpgradeReady is exported, engine container upgrade is ready UpgradeReady = iota + 1 // UpgradeIgnore is exported, e...
package controllers import ( "fmt" beego "github.com/beego/beego/v2/server/web" "net/http" "path" "review/logger" "review/models" "review/request" "review/response" "strings" ) // Operations of files type FileController struct { beego.Controller } // respondJson: do response for user operations func (f *Fi...
package score import ( "encoding/json" "fmt" "io/ioutil" "strings" appsv1 "k8s.io/api/apps/v1" // corev1 "k8s.io/api/core/v1" k8sinterface "github.com/armosec/kubescape/cautils/k8sinterface" "github.com/armosec/kubescape/cautils/opapolicy" ) type ControlScoreWeights struct { BaseScore fl...
package types import ( "encoding/json" "fmt" "time" cmn "github.com/Alex-duzhichao/tendermint/libs/common" "github.com/Alex-duzhichao/tendermint/types" ) //----------------------------------------------------------------------------- // RoundStepType enum type // RoundStepType enumerates the stat...
package main // Write logs to files and perform rotation. import ( "bufio" "errors" "flag" "fmt" "io" "log" "net" "os" "path/filepath" "strings" "time" ) // These must be kept in sync with memlogd: const ( logDump byte = iota logFollow logDumpFollow ) const mb = 1024 * 1024 // LogMessage is a message...
package monitor import ( "encoding/json" "errors" "fmt" "net" "time" "sync" "go.dedis.ch/onet/v3/log" ) var global struct { // Sink is the server address where all measures are transmitted to for // further analysis. sink string // Structs are encoded through a json encoder. encoder *json.Encoder conn...
/* Copyright 2015 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 writing, softwa...
/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package install_file import ( "bytes" "encoding/base64" "fmt" "github.com/ruckstack/ruckstack/common/config" "github.com/ruckstack/ruckstack/common/ui" "net" "os" "os/user" "path/filepath" "strings" "time" "gopkg.in/yaml.v3" ) type InstallOptions struct { AdminGroup string BindAddress string JoinToke...
package analyses import ( "encoding/json" "fmt" "time" "github.com/ion-channel/ionic/rulesets" "github.com/ion-channel/ionic/scans" ) const ( // AnalysisGetAnalysisEndpoint returns a single raw analysis. Requires team id, project id and analysis id. AnalysisGetAnalysisEndpoint = "v1/animal/getAnalysis" // An...
// 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 main import ( "encoding/xml" "flag" "fmt" "html" "log" "net/http" "net/url" "os" "sort" "strconv" "strings" "time" ) func usage() { fmt.Fprintf(os.Stderr, `usage: issue [-p project] query If query is a single number, prints the full history for the issue. Otherwise, prints a table of matching re...
// Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package storage import ( "encoding/json" "fmt" "math" "net/http" "sync" "time" "github.com/luuphu25/data-sidecar/util" ) const ( max = 22 ) // StoreDetails contains the destination addresses for a data store. type storeDetails struct { Key string Index int Full bool Last int64 M...
package main import ( "bytes" "compress/bzip2" "crypto" "crypto/rsa" "crypto/sha256" "crypto/tls" "crypto/x509" "encoding/hex" "encoding/json" "io" "io/ioutil" "log" "net/http" "net/url" "os" "runtime" "time" "github.com/inconshreveable/go-update" "github.com/kardianos/osext" "github.com/yinghuoc...
// Copyright 2013-2015 go-diameter 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 diam import ( "encoding/binary" "errors" "fmt" "github.com/fiorix/go-diameter/diam/avp" "github.com/fiorix/go-diameter/diam/datatype" ...
package http import ( "compress/gzip" "context" "fmt" "net/http" "strings" "time" go_metrics "github.com/kentik/go-metrics" "github.com/kentik/ktranslate/pkg/api" "github.com/kentik/ktranslate/pkg/eggs/kmux" "github.com/kentik/ktranslate/pkg/eggs/logger" "github.com/kentik/ktranslate/pkg/kt" ) type Kenti...
package component import ( "fmt" "time" "gioui.org/layout" "gioui.org/op" ) // VisibilityAnimation holds the animation state for animations that transition between a // "visible" and "invisible" state for a fixed duration of time. type VisibilityAnimation struct { // How long does the animation last time.Durat...
package bot import ( "fmt" "regexp" "strings" "time" "github.com/lnxjedi/robot" ) const runJobRegex = `run +job +(` + identifierRegex + `)(?: (.*))?` var runJobRe = regexp.MustCompile(`(?i:^\s*` + runJobRegex + `\s*$)`) // checkJobMatchersAndRun handles triggers, 'run job <foo>' func (w *worker) checkJobMatch...
// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright (c) 2020-2021 Doc.ai and/or its affiliates. // // SPDX-License-Identifier: Apache-2.0 // // 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/license...
// Copyright 2019 <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 writ...
// Copyright (c) 2018 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...
package sdk import ( "context" "encoding/json" "net/http" rm "github.com/brigadecore/brigade/sdk/v3/internal/restmachinery" "github.com/brigadecore/brigade/sdk/v3/meta" "github.com/brigadecore/brigade/sdk/v3/restmachinery" ) const ( // RoleAssignmentKind represents the canonical RoleAssignment kind string Ro...
// Copyright 2019 Thales e-Security, 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, pub...
// Copyright 2019 eBay Inc. // Primary authors: <NAME>, <NAME>, // <NAME>, and <NAME>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/...
package cluster import ( "bytes" "fmt" "github.com/ligao-cloud-native/xwc-controller-agent/cluster/execute" "github.com/ligao-cloud-native/xwc-controller-agent/pkg/types" "os" "strconv" "strings" ) var ClusterName = os.Getenv("PWC_NAME") var ( cmdStatusOk = " 1" cmdStatusFailed = " 2" logInstallCmd = "2>...
package playedplugin import ( "encoding/json" "fmt" "log" "regexp" "sort" "strings" "sync" "time" "github.com/bwmarrin/discordgo" "github.com/dustin/go-humanize" "github.com/iopred/bruxism" ) type playedEntry struct { Name string Duration time.Duration } type byDuration []*playedEntry func (a byDu...
// Code generated by protoc-gen-go. // source: receiver.proto // DO NOT EDIT! /* Package mrn is a generated protocol buffer package. It is generated from these files: receiver.proto gps.proto modes.proto mrn.proto It has these top-level messages: Receiver TPV ModeSMessage AdsbLog */ package mrn import proto...
package v1alpha1 import ( "context" "strconv" batch "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/controller/cont...
package dithering import ( "image" "image/color" "math" ) // PixelError represents the error for each canal in the image // when dithering an image // Errors are floats because they are the result of a division type PixelError struct { // TODO(brouxco): the alpha value does not make a lot of sense in a PixelError...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: loginrpc/msg_login.proto package loginrpc import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This...
// Copyright (c) 2020 Tigera, Inc. All rights reserved. // 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/...
/* * Copyright (C) 2019 Yunify, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this work except in compliance with the License. * You may obtain a copy of the License in the LICENSE file, or at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
// Code generated by gotdgen, DO NOT EDIT. package tg import ( "context" "errors" "fmt" "sort" "strings" "go.uber.org/multierr" "github.com/gotd/td/bin" "github.com/gotd/td/tdp" "github.com/gotd/td/tgerr" ) // No-op definition for keeping imports. var ( _ = bin.Buffer{} _ = context.Background() _ = fmt...
package screens import ( "image/color" "fyne.io/fyne" "fyne.io/fyne/theme" "github.com/lengzhao/wallet/bin/gui/conf" "github.com/lengzhao/wallet/bin/gui/res" ) // customTheme is a simple demonstration of a bespoke theme loaded by a Fyne app. type customTheme struct { background ...
// Copyright 2018 The CUE 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...
package services import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" u "net/url" "os/exec" "sync" "syscall" "time" log "github.com/sirupsen/logrus" "github.com/pkg/errors" "github.com/urfave/cli" cp "github.com/webtor-io/content-prober/content-prober" "google.golang.org/grpc" ) const ( cont...
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 package wasmvm import ( "fmt" "github.com/iotaledger/wart/wasm/consts/value" "github.com/iotaledger/wart/wasm/executors" "github.com/iotaledger/wart/wasm/sections" "github.com/iotaledger/wasp/packages/vm/wasmhost" ) type WartVM struct { wasmhost....
/* 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...
package k8s import ( log "github.com/sirupsen/logrus" appsv1 "k8s.io/api/apps/v1" apiv1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" v1 "k8s.io/client-go/kubernetes/typed/apps/v1" v12 "k8s.io/client-go/kubernetes/typed/c...
package main // A simple program demonstrating the text input component from the Bubbles // component library. import ( "bufio" "fmt" "io" "log" "os" "strings" "sync" "unicode" "unicode/utf8" "github.com/charmbracelet/bubbles/textinput" "github.com/charmbracelet/bubbles/viewport" tea "github.com/charmbra...
/* Copyright 2021 The KodeRover 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, s...
// Copyright 2021 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package packages import ( "context" "errors" "strconv" "strings" "time" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/timeutil" "xo...
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (...
package proxy import ( "fmt" "strconv" "strings" ) type csiHandler func(params []string, intermediate string) (output []byte, redraw bool, err error) func (p *Proxy) handleCSI(pty chan byte) (output []byte, original []byte, redraw bool, err error) { var csiSequences = map[byte]csiHandler{ 'd': p.csiLinePositi...
package service_test import ( "testing" "git/inspursoft/board/src/apiserver/service" "git/inspursoft/board/src/common/model" "git/inspursoft/board/src/common/utils" "github.com/astaxie/beego/logs" "github.com/stretchr/testify/assert" ) var unitTestJob = model.JobStatusMO{ Name: "unittestjob", OwnerID...
// // Copyright (c) 2017, Cisco Systems // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this // list of conditi...
package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "os" "path" "time" "github.com/cloudflare/cfssl/cli" "github.com/cloudflare/cfssl/cli/genkey" "github.com/cloudflare/cfssl/cli/sign" "github.com/cloudflare/cfssl/config" "github.com/cloudflare/cfssl/csr" "github.com/cloudflare/cfssl/si...
/* Copyright 2018 The Kubernetes Authors. Copyright 2020 Authors of Arktos - file modified. 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 re...
package cmd import ( "fmt" "path/filepath" "strings" "github.com/h2non/bimg" "github.com/k0kubun/pp" "github.com/nozzle/throttler" "github.com/spf13/cobra" "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/schema" "github.com/lucmichalski/go-prestashop/internal/models" ) var ( psDir string wo...
package zapdriver // "Broker: Request timed out" // https://console.cloud.google.com/logs/viewer?project=bnl-blendle&minLogLevel= // 0&expandAll=false&timestamp=2018-05-23T22:21:56.142000000Z&customFacets=&limi // tCustomFacetWidth=true&dateRangeEnd=2018-05-23T22:21:52.545Z&interval=PT1H&re // source=container%2Fclust...
package mock import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" "github.com/aws/aws-sdk-go/service/ssm/ssmiface" ) // SSMAPI mocks s3iface.S3API type SSMAPI struct { ssmiface.SSMAPI putparamOutput *ssm.PutParameterOutput addtagsOutput *ssm.AddTagsToResourceOutput getp...
package borderSystem import ( "database/sql" "../dbConnect" "../../exceptions" "../../util" "../../config" "fmt" "time" "../../integrate/logger" "os" "io" ) var ( root string insertSQL = "INSERT INTO file(name, savePath, contentType, key, uploadTime, size, status, modifyTime) VALUES (?, ?, ?, ? ,? ,? ,? ,...
package grpcgw import ( "encoding/json" "net/http" "path/filepath" "strings" "sync" "elbix.dev/engine/pkg/assert" "elbix.dev/engine/pkg/log" ) var ( errDef map[string]interface{} errFldDef map[string]interface{} err400 = map[string]interface{}{ "description": "Input error", "schema": map[string]i...
package kube import ( "fmt" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" "github.com/pkg/errors" "github.com/shohi/cube/pkg/base" ) var ( ErrEmptyNameSuffix = errors.New("cube: empty name-suffix for merge") ErrConfigAlreadyMerged = errors.New("cube: kubeconfig already merged") ErrClusterAlreadyE...
package main import ( "encoding/json" "math/rand" "testing" "time" "github.com/alpacahq/marketstore/plugins/bgworker" "github.com/alpacahq/slait/cache" . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } var _ = Suite(&TestSuite{}) type TestSuite struct{} var cryptoConfig = getConfig(`{ "endp...
package cmd import ( "fmt" "github.com/mbndr/figlet4go" "github.com/mitchellh/go-homedir" log "github.com/sirupsen/logrus" "github.com/sn-edit/sn-edit/api" "github.com/sn-edit/sn-edit/conf" "github.com/sn-edit/sn-edit/version" "github.com/spf13/cobra" "github.com/spf13/viper" "os" "runtime" "strings" ) va...
/* Copyright 2016 Ontario 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...
package agent import ( "context" "encoding/json" "errors" "io" "time" "google.golang.org/grpc" "google.golang.org/grpc/credentials" pb "github.com/fnproject/fn/api/agent/grpc" "github.com/fnproject/fn/api/common" pool "github.com/fnproject/fn/api/runnerpool" "github.com/fnproject/fn/grpcutil" "github.com...
/* * 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 ...
// Code generated by the Pulumi SDK Generator DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package route53 import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Represents a key signing key (KSK) associate...
// Copyright (c) 2019 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...
package privval import ( "errors" "fmt" "net" "sync" "time" "github.com/tendermint/tendermint/crypto" cmn "github.com/tendermint/tendermint/libs/common" "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/types" ) const ( defaultConnHeartBeatSeconds = 2 defaultDialRetries ...
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2019-Present Datadog, Inc. */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO N...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
package netresource import ( "errors" "io" "net/http" "os" "regexp" "strings" "sync" "time" "unsafe" "golang.org/x/sys/windows" ) var procWNetOpenEnum = mpr.NewProc("WNetOpenEnumW") var procWNetEnumResource = mpr.NewProc("WNetEnumResourceW") var procWNetCloseEnum = mpr.NewProc("WNetCloseEnum") type NetRes...
/* Copyright 2022 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 repository import ( "context" "strings" "time" "github.com/Masterminds/squirrel" "github.com/titpetric/factory" "github.com/cortezaproject/corteza-server/messaging/types" "github.com/cortezaproject/corteza-server/pkg/rh" ) type ( ChannelRepository interface { With(ctx context.Context, db *factory....
package discovery import ( "log" "net" "time" "github.com/avast/retry-go" "github.com/kelseyhightower/envconfig" "github.com/spf13/cobra" flag "github.com/spf13/pflag" ) type ServiceDiscovery struct { IfaceName string Port int Dirname string ScanType string RetryCnt uint Debug bool O...