text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow_serving/apis/inference.proto package serving 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 _ = mat...
package bugzillarest import ( "fmt" "strconv" "testing" "time" "github.com/LF-Engineering/da-ds/bugzillarest/mocks" "github.com/LF-Engineering/dev-analytics-libraries/uuid" jsoniter "github.com/json-iterator/go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) func TestFetchAll(t *t...
package parser import ( "bytes" "context" "encoding/base64" "fmt" "io" "mime" "mime/multipart" "net/mail" "net/url" "regexp" "strings" "time" "github.com/ahmetb/go-linq" "github.com/stephane-martin/mailstats/arguments" "github.com/stephane-martin/mailstats/metrics" "github.com/stephane-martin/mailstat...
package http_json_api import ( "encoding/json" "github.com/gogap/errors" "github.com/rs/xid" "io/ioutil" gohttp "net/http" "strconv" "strings" "time" "github.com/go-martini/martini" "github.com/gogap/spirit" "github.com/spirit-contrib/http" ) var ( receiverURN = "urn:spirit-contrib:receiver:http:json_api...
// Copyright 2019, Verizon Media Inc. // Licensed under the terms of the 3-Clause BSD license. See LICENSE file in // github.com/yahoo/k8s-athenz-istio-auth for terms. package common import ( "fmt" "io/ioutil" "net/http" "os" "regexp" "strings" "time" "github.com/ardielle/ardielle-go/rdl" "github.com/ghodss/...
// Copyright 2022 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
// Copyright 2020 Netflix Inc // Author: <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 app...
// Copyright 2020 Antrea 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 ...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: arp_reshist.proto package cisco_ios_xr_ipv4_arp_oper_arp_nodes_node_resolution_history_client import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ =...
package apu import ( "log" "nes/cpu" ) type Apu struct { Ch_sample chan float32 clock_counter uint32 frame_clock_counter uint32 // used in maintaining the musical timing // channels [5]*Channel sequencers [5]*Sequencer oscpulses [5]*OscPulse envelopes [5]*Envelope lengthcou...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: persistent_msgs.proto package pvtdatastorage // import "deepchain/core/ledger/pvtdatastorage" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ =...
/* Copyright 2017 The Nuclio 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 codegen import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" "reflect" "strconv" "strings" "unicode" "unicode/utf8" ) type JSONEncoders struct { Directory string Package string bytes.Buffer structValue reflect.Value definedMarshalerInterface...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/compiler/xla/service/session.proto package service import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import xla "github.com/kuberlab/tfservable-proxy/pkg/tensorflow/compiler/xla" // Reference imports to suppress ...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: Apache-2.0 package health import ( "bufio" "bytes" "context" "crypto/tls" "encoding/json" "errors" "flag" "fmt" "io" "net" "net/http" "net/url" "regexp" "strconv" "strings" "sync" "time" "git.arvados.org/arvad...
// Copyright 2012 The Probab Authors. All rights reserved. See the LICENSE file. package dst // Beta distribution. // Parameters: // α > 0: shape // β > 0: shape // Support: x ∈ [0; 1] import ( "fmt" ) func bisect(x, p, a, b, xtol, ptol float64) float64 { var x0, x1, px float64 cdf := BetaPDF(a, b) for abs(x...
package messageservice import ( "bcjh-bot/config" "bcjh-bot/model/database" "bcjh-bot/model/gamedata" "bcjh-bot/scheduler" "bcjh-bot/scheduler/onebot" "bcjh-bot/util" "bcjh-bot/util/e" "bcjh-bot/util/logger" "bytes" "errors" "fmt" "github.com/golang/freetype" "github.com/nfnt/resize" "image" "image/colo...
/* * Copyright 2020 VMware, Inc. * * SPDX-License-Identifier: Apache-2.0 */ package webhook import ( "context" "crypto/sha256" "encoding/json" "fmt" "github.com/ghodss/yaml" "github.com/golang/glog" yamlv2 "gopkg.in/yaml.v2" "io/ioutil" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" "...
package lex import ( "regexp" "strings" "sync" "unicode" "unicode/utf8" "github.com/the-xlang/xxc/lex/tokens" "github.com/the-xlang/xxc/pkg/x" "github.com/the-xlang/xxc/pkg/xio" "github.com/the-xlang/xxc/pkg/xlog" ) type File = xio.File // Lex is lexer of Fract. type Lex struct { wg sync.WaitG...
package amd64 import ( "bytes" "fmt" "runtime" "testing" "github.com/rasky/gojit" "golang.org/x/arch/x86/x86asm" ) var mem []byte = make([]byte, 64) type simple struct { f func(*Assembler) inout []uintptr } func TestMov(t *testing.T) { cases := []simple{ { func(a *Assembler) { a.Mov(Imm{U32(0...
// Copyright 2020 <NAME>. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package influx provides the implementation of the browser.Database interface // using InfluxDB as backend. It uses an in-memory cache based on maps guarded // by ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/mdb/clickhouse/v1/backup_service.proto package clickhouse // import "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/yan...
// This application makes an HTTP or HTTPS request to one or more target URLs and // reports detailed DNS, TCP, TLS, and first byte response times, along with overall // application response time. It can publish data to Cloudwatch, publish the details to // a webhook, such as a StreamSets endpoint, or trigger alerts v...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: proto/event.proto package event import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/p...
package hexagolang // Hexagons implementation interpreted from // https://www.redblobgames.com/grids/hexagons/implementation.html // and // https://www.redblobgames.com/grids/hexagons/ import ( "image" "math" ) // H is a single hexagon in the grid. type H struct { Q, R int } // Delta converts the hex to a delta....
package converter import ( "bytes" "io" "log" "os" "path/filepath" "strings" "modelconv/mqo" "github.com/qmuntal/gltf" "github.com/qmuntal/gltf/modeler" "image" "image/color" "image/png" _ "image/gif" _ "image/jpeg" _ "github.com/ftrvxmtrx/tga" "golang.org/x/image/bmp" ) type MQOToGLTFOption struc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/resources/customer.proto package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/resources" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github.com/go...
package scanner import ( "container/list" "fmt" "math/big" "regexp" "sync" "sync/atomic" "time" log "github.com/sirupsen/logrus" "github.com/smallstep/zcrypto/ct" "github.com/smallstep/zcrypto/ct/client" "github.com/smallstep/zcrypto/ct/x509" ) // Clients wishing to implement their own Matchers should imp...
// Lute - 一款对中文语境优化的 Markdown 引擎,支持 Go 和 JavaScript // Copyright (c) 2019-present, b3log.org // // Lute is licensed under Mulan PSL v2. // You can use this software according to the terms and conditions of the Mulan PSL v2. // You may obtain a copy of Mulan PSL v2 at: // http://license.coscl.org.cn/MulanPSL2 //...
package handler import ( "encoding/json" "fmt" "io" "net/http" "os" "strconv" "github.com/Projects/RidingTrainingSystem/internal/pkg/Branch" "github.com/Projects/RidingTrainingSystem/internal/pkg/Round" "github.com/Projects/RidingTrainingSystem/internal/pkg/Admin" "github.com/Projects/RidingTrainingSystem...
// Copyright 2017 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package txvalidator import ( "fmt" "github.com/arogyaGurkha/fabric-protos-go/common" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric-protos-go/peer" commonerrors "github.com/hyperledger/fabric/common/errors" "...
// Copyright (C) MongoDB, Inc. 2014-present. // // 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 // Package mongoimport allows importing content fr...
// Package fastcache implements fast in-memory cache. // // The package has been extracted from https://victoriametrics.com/ package fastcache import ( "fmt" "sync" "sync/atomic" xxhash "github.com/cespare/xxhash/v2" ) const bucketsCount = 512 const chunkSize = 64 * 1024 const bucketSizeBits = 40 const genSiz...
package main import ( "bytes" "encoding/json" "errors" "flag" "fmt" "github.com/galxy25/home/communicator" "github.com/galxy25/home/data" await "github.com/galxy25/home/internal/await" helper "github.com/galxy25/home/internal/test" "io/ioutil" "net/http" "os" "os/exec" "strconv" "strings" "syscall" "t...
// 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 legacyrpc import ( "crypto/sha256" "crypto/subtle" "encoding/base64" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net" "net/http" "sync" "sync/a...
package miner import ( "bytes" "context" "fmt" "strconv" "time" "0chain.net/smartcontract/storagesc" "0chain.net/chaincore/block" "0chain.net/chaincore/client" "0chain.net/chaincore/config" "0chain.net/chaincore/node" "0chain.net/chaincore/transaction" "0chain.net/core/common" "0chain.net/core/datastor...
package archive // STATUS: 80% import ( "encoding/binary" "fmt" "io" "log" "os" "github.com/martinlindhe/formats/parse" ) const ( arjMaxSFX = 500000 // size of self-extracting prefix arjFirstHdrSize = 0x1e arjCommentMax = 2048 arjFileNameMax = 512 arjHeaderSizeMax = (arjFirstHdrSize + 10 + a...
package diameter import ( "bytes" "container/list" "encoding/binary" "errors" ) // Uint24 is a documentation reference type. There is no enforcement of boundaries; // it is simply a visual reminder of the type type Uint24 uint32 // Possible flag values for a Diameter message const ( MsgFlagRequest ...
package main /** TODO: Run as a service script in version control TODO: sh file to install it as service TODO: Do not panic and die TODO: Inform Admin worker to send mail for first case of 10 continuous GCM error, +15 min same error count (more than half of expected) DONE: Peaceful quit, wait for all worker to f...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/api/documentation.proto package serviceconfig 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.I...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/type/matcher/v4alpha/string.proto package envoy_type_matcher_v4alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/go-control-plane/envoy/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate"...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: ots_filter.proto /* Package otsprotocol is a generated protocol buffer package. It is generated from these files: ots_filter.proto table_store.proto It has these top-level messages: SingleColumnValueFilter CompositeColumnValueFilter ColumnPaginationFil...
// Copyright 2017 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. // Program wpr records and replays web traffic. package main import ( "crypto/tls" "errors" "fmt" "log" "net" "net/http" "os" "os/signal" "path/...
package main import ( "errors" "fmt" "io/ioutil" "log" "net" "net/http" "os" "os/signal" "path" "path/filepath" "strings" "sync" "syscall" "time" "github.com/DataDog/datadog-go/statsd" "github.com/juju/ratelimit" "github.com/nightlyone/lockfile" "github.com/stripe/goforit" "github.com/tylerb/gracef...
// doc generates HTML files from the comments in header files. // // doc expects to be given the path to a JSON file via the --config option. // From that JSON (which is defined by the Config struct) it reads a list of // header file locations and generates HTML files for each in the current // directory. package main...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate stringer -type Type package scan // import "robpike.io/ivy/scan" import ( "fmt" "io" "robpike.io/ivy/config" "strings" "unicode" "unicod...
/* ipp-usb - HTTP reverse proxy, backed by IPP-over-USB connection to device * * Copyright (C) 2020 and up by <NAME> (<EMAIL>) * See LICENSE for license terms and conditions * * USB transport for HTTP */ package main import ( "bufio" "bytes" "context" "fmt" "io" "io/ioutil" "net/http" "os" "sort" "str...
package servicemanager import ( "crypto/tls" "crypto/x509" "encoding/json" "fmt" "io/ioutil" "net" "net/http" _ "net/http/pprof" // For debugging "sync" "time" "github.com/couchbase/cbauth" "github.com/couchbase/cbauth/service" "github.com/couchbase/eventing/common" "github.com/couchbase/eventing/loggin...
// Copyright (c) 2013-2017 The btcsuite developers // Copyright (c) 2015-2018 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package txscript import ( "bytes" "fmt" ) // These are the constants specified for maximums in individual scripts. c...
// 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 applicabl...
// This is essentially an end-to-end test on the whole thing; since it's // quite tedious to write out the AST by hand we interpret sample BUILD files directly. package asp import ( "fmt" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/thought-machine/please/rul...
package etcdutil import ( "bytes" "context" "fmt" "os" "path" "sync/atomic" "time" "github.com/mailgun/holster/v4/setter" "github.com/mailgun/holster/v4/syncutil" "github.com/pkg/errors" "go.etcd.io/etcd/api/v3/mvccpb" etcd "go.etcd.io/etcd/client/v3" ) type LeaderElector interface { IsLeader() bool Co...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/datacatalog/v1beta1/table_spec.proto package datacatalog import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Err...
// Package config provides config structures, and a mechanism that merges sources such that the global config file, // a project local config file and command line flags. package config import ( "encoding/csv" "fmt" "os" "os/exec" "path/filepath" "strings" "github.com/k0kubun/pp" "github.com/ktr0731/evans/log...
// File: language.go // // The MIT Public License // // Copyright 2020 <NAME> // // 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 right...
// Copyright 2015 The Hugo Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
// Package activation is responsible for creating activation transactions and running the mining flow, coordinating // PoST building, sending proofs to PoET and building NIPoST structs. package activation import ( "fmt" "sync" "sync/atomic" "github.com/spacemeshos/ed25519" "github.com/spacemeshos/post/shared" ...
/* 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 ruler import ( "bytes" "crypto/sha256" "encoding/json" "fmt" "os" "reflect" "runtime" "sort" "strings" "sync" "github.com/controlplaneio/kubesec/v2/pkg/rules" "github.com/ghodss/yaml" "github.com/in-toto/in-toto-golang/in_toto" "github.com/instrumenta/kubeval/kubeval" "github.com/thedevsaddam/g...
// 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 Lic...
/* Copyright 2021 The Kruise 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/ad_group_audience_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/v2/resources...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: artifact/helm.proto package artifact import ( proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflect/...
package api // Error represents Error object in json response type Error struct { Type string `json:"__type,omitempty"` Code string `json:"Code,omitempty"` Message string `json:"Message,omitempty"` } // ItemsResult represents ItemsResult object in json response type ItemsResult struct { Items []Item `json:"...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation and Dapr Contributors. // Licensed under the MIT License. // ------------------------------------------------------------ package mysql import ( "database/sql" "encoding/json" "errors" "fmt" "strings" "github...
package conf import ( "context" "errors" "fmt" "io/ioutil" "os" "path/filepath" "strings" "arhat.dev/pkg/exechelper" "arhat.dev/pkg/iohelper" "go.uber.org/multierr" "sigs.k8s.io/yaml" "arhat.dev/helm-stack/pkg/constant" ) type Environment struct { Name string `json:"name" yaml:"name"` ...
package status import ( "context" "encoding/json" "fmt" "net" "net/http" "net/url" "reflect" "sync" "time" "go.uber.org/atomic" "go.uber.org/zap" "golang.org/x/time/rate" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/client-go/util/workqueue" ...
// Copyright 2009 The Ninep 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 ninep import ( "flag" "math" "reflect" "testing" ) var debug = flag.Int("debug", 0, "print debug messages") // Two files, dotu was true. var ...
// Copyright 2019 Cisco Systems, 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...
// Copyright 2015 The Vanadium Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package jiri provides utilities used by the jiri tool and related tools. package jiri // TODO(toddw): Rename this package to fuchsia.googlesource.com/...
// Package eventhandler watches for Kubernetes Event objects and hands them off to // Agent's Logs subsystem (embedded promtail) package eventhandler import ( "context" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "strings" "sync" "time" v1 "k8s.io/api/core/v1" "k8s.io/client-go/informers" "k8s....
/* http://www.apache.org/licenses/LICENSE-2.0.txt Copyright 2016 Intel Corporation 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 ...
package utils import ( "bytes" "crypto/md5" "crypto/tls" "dagger/backend/databases" "dagger/backend/models" "dagger/backend/runtime" "errors" "fmt" "os" "regexp" "sort" "strconv" "strings" "time" jwt "github.com/dgrijalva/jwt-go" "github.com/go-ldap/ldap/v3" "go.uber.org/zap" "golang.org/x/crypto/bc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google.golang.org/appengine/internal/channel/channel_service.proto package channel import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mars...
package command import ( "fmt" "io" "os" "path/filepath" "sort" "strings" "github.com/hashicorp/atlas-go/archive" "github.com/hashicorp/atlas-go/v1" "github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/config" "github.com/hashicorp/terraform/terraform" ) type PushCommand struct { Meta...
// Copyright (C) 2019 Cisco Systems Inc. // Copyright (C) 2016-2017 Nippon Telegraph and Telephone Corporation. // // 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....
// Copyright © 2018 <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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
package schema import "time" type Model interface { GetID() int SetID(id int) } type StorageModel struct { ID int `json:"id" binding:"required"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` } func (m *StorageModel) GetID() int { return m.ID } func (m *Storag...
////////////////////////////////////////////////////////////////////////// // // Copyright 2019 Dell, 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/...
package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "net/http/cookiejar" "net/url" "os" "regexp" "strconv" "strings" "time" "github.com/forestgiant/sliceutil" "github.com/go-playground/validator" "github.com/olekukonko/tablewriter" "github.com/prometheus/client_golang/prometheu...
// Copyright 2019 DxChain, All rights reserved. // Use of this source code is governed by an Apache // License 2.0 that can be found in the LICENSE file package contractmanager import ( "fmt" "sort" "github.com/DxChainNetwork/godx/p2p/enode" "github.com/DxChainNetwork/godx/storage" "github.com/DxChainNetwork/go...
package conditions import ( "encoding/json" "fmt" "strings" "testing" "github.com/stretchr/testify/assert" ) var invalidTestData = []string{ "", "A", "{var0} == DEMO", "{var0} == CA", "{var0} == PA", "{var0} == 'DEMO'", "!{var0}", "{var0} <> `DEMO`", "{foo} in []", "{foo} in [foobar]", "{foo} in [foo...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto package websecurityscanner import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/a...
// Copyright 2020 Hewlett Packard Enterprise Development LP package nimbleos // Golang package for NsObjectType Enum. type NsObjectType string const ( cNsObjectTypeArrayNetconfig NsObjectType = "array_netconfig" cNsObjectTypeUserPolicy NsObjectType = "user_policy" cNsObjectTypeSubnet ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: arch_host.proto package architecture_view import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference imports to suppress errors if they are no...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed by a The Apache-style // license that can be found in the LICENSE file. package varflag_test import ( "fmt" "log" "math" "os" "strconv" "time" "github.com/mkungla/varflag/v5" ) func ExampleParse() { os.Args = []string{ "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: opencensus/proto/trace/v1/trace_config.proto package v1 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 _ = mat...
package buildrun import ( "context" "fmt" "strings" buildv1alpha1 "github.com/redhat-developer/build/pkg/apis/build/v1alpha1" "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.i...
package lockbox import ( "bytes" "context" "crypto/sha256" "encoding/base64" "errors" "fmt" "io" "io/ioutil" "net/http" "net/http/httputil" "net/url" "strings" "sync" "time" "lockbox.dev/hmac" "yall.in" "github.com/hashicorp/go-cleanhttp" ) var ( // ErrNoAccessTokenSet is returned when the Client ...
// Copyright ©2019 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package nmea import "time" // http://aprs.gids.nl/nmea/#bod type BOD struct { Type string `nmea:"/G[LNP]BOD/"` True float64 `nmea:"number"` _ [0...
// Copyright 2018 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 i...
/* * Minio Cloud Storage, (C) 2017 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/detail_placement_view.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/a...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.17.3 // source: protos/domain/applicant_count.grpc.proto package domain import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ...
// Copyright (C) 2018, <NAME> (Flaxen Consulting) // // Portions of this code were derived from the PROJ.4 software // In keeping with the terms of the PROJ.4 project, this software // is provided under the MIT-style license in `LICENSE.md` and may // additionally be subject to the copyrights of the PROJ.4 authors. pa...
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright(c) 2022 Wind River Systems, Inc. */ package controllers import ( "context" "github.com/go-logr/logr" "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/starlingx/inventory/v1/ptpinstances" perrors "github.com/pkg/errors" starlingxv1 "...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: regfile.proto package types import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/pro...