repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/orgs_outside_collaborators.go | // Copyright 2017 The go-github 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 github
import (
"context"
"fmt"
)
// ListOutsideCollaboratorsOptions specifies optional parameters to the
// OrganizationsService.ListOuts... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/git_blobs.go | // Copyright 2013 The go-github 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 github
import (
"bytes"
"context"
"fmt"
)
// Blob represents a blob object.
type Blob struct {
Content *string `json:"content,omitempty... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/issues.go | // Copyright 2013 The go-github 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 github
import (
"context"
"fmt"
"time"
)
// IssuesService handles communication with the issue related
// methods of the GitHub API.
//
/... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/licenses.go | // Copyright 2013 The go-github 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 github
import (
"context"
"fmt"
)
// LicensesService handles communication with the license related
// methods of the GitHub API.
//
// Gi... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/orgs_actions_allowed.go | // Copyright 2021 The go-github 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 github
import (
"context"
"fmt"
)
// ActionsAllowed represents selected actions that are allowed in an organization.
//
// GitHub API docs... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/users_administration.go | // Copyright 2014 The go-github 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 github
import (
"context"
"fmt"
)
// PromoteSiteAdmin promotes a user to a site administrator of a GitHub Enterprise instance.
//
// GitHu... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/interactions.go | // Copyright 2018 The go-github 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 github
// InteractionsService handles communication with the repository and organization related
// methods of the GitHub API.
//
// GitHub A... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/repos_autolinks.go | // Copyright 2021 The go-github 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 github
import (
"context"
"fmt"
)
// AutolinkOptions specifies parameters for RepositoriesService.AddAutolink method.
type AutolinkOptions... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/users_keys.go | // Copyright 2013 The go-github 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 github
import (
"context"
"fmt"
)
// Key represents a public SSH key used to authenticate a user or deploy script.
type Key struct {
ID ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42 | rapidsai_public_repos/roc/vendor/github.com/google/go-github/v42/github/apps_hooks_deliveries.go | // Copyright 2021 The go-github 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 github
import (
"context"
"fmt"
)
// ListHookDeliveries lists deliveries of an App webhook.
//
// GitHub API docs: https://docs.github.com... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/duration.go | package pflag
import (
"time"
)
// -- time.Duration Value
type durationValue time.Duration
func newDurationValue(val time.Duration, p *time.Duration) *durationValue {
*p = val
return (*durationValue)(p)
}
func (d *durationValue) Set(s string) error {
v, err := time.ParseDuration(s)
*d = durationValue(v)
retur... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int32_slice.go | package pflag
import (
"fmt"
"strconv"
"strings"
)
// -- int32Slice Value
type int32SliceValue struct {
value *[]int32
changed bool
}
func newInt32SliceValue(val []int32, p *[]int32) *int32SliceValue {
isv := new(int32SliceValue)
isv.value = p
*isv.value = val
return isv
}
func (s *int32SliceValue) Set(v... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int16.go | package pflag
import "strconv"
// -- int16 Value
type int16Value int16
func newInt16Value(val int16, p *int16) *int16Value {
*p = val
return (*int16Value)(p)
}
func (i *int16Value) Set(s string) error {
v, err := strconv.ParseInt(s, 0, 16)
*i = int16Value(v)
return err
}
func (i *int16Value) Type() string {
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/bool_slice.go | package pflag
import (
"io"
"strconv"
"strings"
)
// -- boolSlice Value
type boolSliceValue struct {
value *[]bool
changed bool
}
func newBoolSliceValue(val []bool, p *[]bool) *boolSliceValue {
bsv := new(boolSliceValue)
bsv.value = p
*bsv.value = val
return bsv
}
// Set converts, and assigns, the comma-... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/string_to_string.go | package pflag
import (
"bytes"
"encoding/csv"
"fmt"
"strings"
)
// -- stringToString Value
type stringToStringValue struct {
value *map[string]string
changed bool
}
func newStringToStringValue(val map[string]string, p *map[string]string) *stringToStringValue {
ssv := new(stringToStringValue)
ssv.value = p
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/bool.go | package pflag
import "strconv"
// optional interface to indicate boolean flags that can be
// supplied without "=value" text
type boolFlag interface {
Value
IsBoolFlag() bool
}
// -- bool Value
type boolValue bool
func newBoolValue(val bool, p *bool) *boolValue {
*p = val
return (*boolValue)(p)
}
func (b *bool... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/ip.go | package pflag
import (
"fmt"
"net"
"strings"
)
// -- net.IP value
type ipValue net.IP
func newIPValue(val net.IP, p *net.IP) *ipValue {
*p = val
return (*ipValue)(p)
}
func (i *ipValue) String() string { return net.IP(*i).String() }
func (i *ipValue) Set(s string) error {
ip := net.ParseIP(strings.TrimSpace(s... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/uint8.go | package pflag
import "strconv"
// -- uint8 Value
type uint8Value uint8
func newUint8Value(val uint8, p *uint8) *uint8Value {
*p = val
return (*uint8Value)(p)
}
func (i *uint8Value) Set(s string) error {
v, err := strconv.ParseUint(s, 0, 8)
*i = uint8Value(v)
return err
}
func (i *uint8Value) Type() string {
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/bytes.go | package pflag
import (
"encoding/base64"
"encoding/hex"
"fmt"
"strings"
)
// BytesHex adapts []byte for use as a flag. Value of flag is HEX encoded
type bytesHexValue []byte
// String implements pflag.Value.String.
func (bytesHex bytesHexValue) String() string {
return fmt.Sprintf("%X", []byte(bytesHex))
}
// ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/string_to_int.go | package pflag
import (
"bytes"
"fmt"
"strconv"
"strings"
)
// -- stringToInt Value
type stringToIntValue struct {
value *map[string]int
changed bool
}
func newStringToIntValue(val map[string]int, p *map[string]int) *stringToIntValue {
ssv := new(stringToIntValue)
ssv.value = p
*ssv.value = val
return ssv... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/uint.go | package pflag
import "strconv"
// -- uint Value
type uintValue uint
func newUintValue(val uint, p *uint) *uintValue {
*p = val
return (*uintValue)(p)
}
func (i *uintValue) Set(s string) error {
v, err := strconv.ParseUint(s, 0, 64)
*i = uintValue(v)
return err
}
func (i *uintValue) Type() string {
return "ui... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/uint16.go | package pflag
import "strconv"
// -- uint16 value
type uint16Value uint16
func newUint16Value(val uint16, p *uint16) *uint16Value {
*p = val
return (*uint16Value)(p)
}
func (i *uint16Value) Set(s string) error {
v, err := strconv.ParseUint(s, 0, 16)
*i = uint16Value(v)
return err
}
func (i *uint16Value) Type(... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/string_array.go | package pflag
// -- stringArray Value
type stringArrayValue struct {
value *[]string
changed bool
}
func newStringArrayValue(val []string, p *[]string) *stringArrayValue {
ssv := new(stringArrayValue)
ssv.value = p
*ssv.value = val
return ssv
}
func (s *stringArrayValue) Set(val string) error {
if !s.change... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/README.md | [](https://travis-ci.org/spf13/pflag)
[](https://goreportcard.com/report/github.com/spf13/pflag)
[](https://godoc.org/g... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/uint32.go | package pflag
import "strconv"
// -- uint32 value
type uint32Value uint32
func newUint32Value(val uint32, p *uint32) *uint32Value {
*p = val
return (*uint32Value)(p)
}
func (i *uint32Value) Set(s string) error {
v, err := strconv.ParseUint(s, 0, 32)
*i = uint32Value(v)
return err
}
func (i *uint32Value) Type(... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int_slice.go | package pflag
import (
"fmt"
"strconv"
"strings"
)
// -- intSlice Value
type intSliceValue struct {
value *[]int
changed bool
}
func newIntSliceValue(val []int, p *[]int) *intSliceValue {
isv := new(intSliceValue)
isv.value = p
*isv.value = val
return isv
}
func (s *intSliceValue) Set(val string) error {... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/string.go | package pflag
// -- string Value
type stringValue string
func newStringValue(val string, p *string) *stringValue {
*p = val
return (*stringValue)(p)
}
func (s *stringValue) Set(val string) error {
*s = stringValue(val)
return nil
}
func (s *stringValue) Type() string {
return "string"
}
func (s *stringValue) S... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/float32.go | package pflag
import "strconv"
// -- float32 Value
type float32Value float32
func newFloat32Value(val float32, p *float32) *float32Value {
*p = val
return (*float32Value)(p)
}
func (f *float32Value) Set(s string) error {
v, err := strconv.ParseFloat(s, 32)
*f = float32Value(v)
return err
}
func (f *float32Val... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/ip_slice.go | package pflag
import (
"fmt"
"io"
"net"
"strings"
)
// -- ipSlice Value
type ipSliceValue struct {
value *[]net.IP
changed bool
}
func newIPSliceValue(val []net.IP, p *[]net.IP) *ipSliceValue {
ipsv := new(ipSliceValue)
ipsv.value = p
*ipsv.value = val
return ipsv
}
// Set converts, and assigns, the com... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int64.go | package pflag
import "strconv"
// -- int64 Value
type int64Value int64
func newInt64Value(val int64, p *int64) *int64Value {
*p = val
return (*int64Value)(p)
}
func (i *int64Value) Set(s string) error {
v, err := strconv.ParseInt(s, 0, 64)
*i = int64Value(v)
return err
}
func (i *int64Value) Type() string {
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int.go | package pflag
import "strconv"
// -- int Value
type intValue int
func newIntValue(val int, p *int) *intValue {
*p = val
return (*intValue)(p)
}
func (i *intValue) Set(s string) error {
v, err := strconv.ParseInt(s, 0, 64)
*i = intValue(v)
return err
}
func (i *intValue) Type() string {
return "int"
}
func (... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/ipmask.go | package pflag
import (
"fmt"
"net"
"strconv"
)
// -- net.IPMask value
type ipMaskValue net.IPMask
func newIPMaskValue(val net.IPMask, p *net.IPMask) *ipMaskValue {
*p = val
return (*ipMaskValue)(p)
}
func (i *ipMaskValue) String() string { return net.IPMask(*i).String() }
func (i *ipMaskValue) Set(s string) er... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int64_slice.go | package pflag
import (
"fmt"
"strconv"
"strings"
)
// -- int64Slice Value
type int64SliceValue struct {
value *[]int64
changed bool
}
func newInt64SliceValue(val []int64, p *[]int64) *int64SliceValue {
isv := new(int64SliceValue)
isv.value = p
*isv.value = val
return isv
}
func (s *int64SliceValue) Set(v... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/ipnet.go | package pflag
import (
"fmt"
"net"
"strings"
)
// IPNet adapts net.IPNet for use as a flag.
type ipNetValue net.IPNet
func (ipnet ipNetValue) String() string {
n := net.IPNet(ipnet)
return n.String()
}
func (ipnet *ipNetValue) Set(value string) error {
_, n, err := net.ParseCIDR(strings.TrimSpace(value))
if ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int32.go | package pflag
import "strconv"
// -- int32 Value
type int32Value int32
func newInt32Value(val int32, p *int32) *int32Value {
*p = val
return (*int32Value)(p)
}
func (i *int32Value) Set(s string) error {
v, err := strconv.ParseInt(s, 0, 32)
*i = int32Value(v)
return err
}
func (i *int32Value) Type() string {
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/count.go | package pflag
import "strconv"
// -- count Value
type countValue int
func newCountValue(val int, p *int) *countValue {
*p = val
return (*countValue)(p)
}
func (i *countValue) Set(s string) error {
// "+1" means that no specific value was passed, so increment
if s == "+1" {
*i = countValue(*i + 1)
return nil... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/.travis.yml | sudo: false
language: go
go:
- 1.9.x
- 1.10.x
- 1.11.x
- tip
matrix:
allow_failures:
- go: tip
install:
- go get golang.org/x/lint/golint
- export PATH=$GOPATH/bin:$PATH
- go install ./...
script:
- verify/all.sh -v
- go test ./...
| 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/int8.go | package pflag
import "strconv"
// -- int8 Value
type int8Value int8
func newInt8Value(val int8, p *int8) *int8Value {
*p = val
return (*int8Value)(p)
}
func (i *int8Value) Set(s string) error {
v, err := strconv.ParseInt(s, 0, 8)
*i = int8Value(v)
return err
}
func (i *int8Value) Type() string {
return "int8... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/float32_slice.go | package pflag
import (
"fmt"
"strconv"
"strings"
)
// -- float32Slice Value
type float32SliceValue struct {
value *[]float32
changed bool
}
func newFloat32SliceValue(val []float32, p *[]float32) *float32SliceValue {
isv := new(float32SliceValue)
isv.value = p
*isv.value = val
return isv
}
func (s *float3... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/float64_slice.go | package pflag
import (
"fmt"
"strconv"
"strings"
)
// -- float64Slice Value
type float64SliceValue struct {
value *[]float64
changed bool
}
func newFloat64SliceValue(val []float64, p *[]float64) *float64SliceValue {
isv := new(float64SliceValue)
isv.value = p
*isv.value = val
return isv
}
func (s *float6... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/duration_slice.go | package pflag
import (
"fmt"
"strings"
"time"
)
// -- durationSlice Value
type durationSliceValue struct {
value *[]time.Duration
changed bool
}
func newDurationSliceValue(val []time.Duration, p *[]time.Duration) *durationSliceValue {
dsv := new(durationSliceValue)
dsv.value = p
*dsv.value = val
return ds... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/uint_slice.go | package pflag
import (
"fmt"
"strconv"
"strings"
)
// -- uintSlice Value
type uintSliceValue struct {
value *[]uint
changed bool
}
func newUintSliceValue(val []uint, p *[]uint) *uintSliceValue {
uisv := new(uintSliceValue)
uisv.value = p
*uisv.value = val
return uisv
}
func (s *uintSliceValue) Set(val st... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/string_to_int64.go | package pflag
import (
"bytes"
"fmt"
"strconv"
"strings"
)
// -- stringToInt64 Value
type stringToInt64Value struct {
value *map[string]int64
changed bool
}
func newStringToInt64Value(val map[string]int64, p *map[string]int64) *stringToInt64Value {
ssv := new(stringToInt64Value)
ssv.value = p
*ssv.value =... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/LICENSE | Copyright (c) 2012 Alex Ogier. All rights reserved.
Copyright (c) 2012 The Go Authors. 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/float64.go | package pflag
import "strconv"
// -- float64 Value
type float64Value float64
func newFloat64Value(val float64, p *float64) *float64Value {
*p = val
return (*float64Value)(p)
}
func (f *float64Value) Set(s string) error {
v, err := strconv.ParseFloat(s, 64)
*f = float64Value(v)
return err
}
func (f *float64Val... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/golangflag.go | // 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 pflag
import (
goflag "flag"
"reflect"
"strings"
)
// flagValueWrapper implements pflag.Value around a flag.Value. The main
// difference here is ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/uint64.go | package pflag
import "strconv"
// -- uint64 Value
type uint64Value uint64
func newUint64Value(val uint64, p *uint64) *uint64Value {
*p = val
return (*uint64Value)(p)
}
func (i *uint64Value) Set(s string) error {
v, err := strconv.ParseUint(s, 0, 64)
*i = uint64Value(v)
return err
}
func (i *uint64Value) Type(... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/string_slice.go | package pflag
import (
"bytes"
"encoding/csv"
"strings"
)
// -- stringSlice Value
type stringSliceValue struct {
value *[]string
changed bool
}
func newStringSliceValue(val []string, p *[]string) *stringSliceValue {
ssv := new(stringSliceValue)
ssv.value = p
*ssv.value = val
return ssv
}
func readAsCSV(v... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/pflag/flag.go | // 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 pflag is a drop-in replacement for Go's flag package, implementing
POSIX/GNU-style --flags.
pflag is compatible with the GNU extensions to the POSIX... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/viper_go1_16.go | //go:build go1.16 && finder
// +build go1.16,finder
package viper
import (
"fmt"
"github.com/spf13/afero"
)
// Search all configPaths for any config file.
// Returns the first path that exists (and is a config file).
func (v *Viper) findConfigFile() (string, error) {
finder := finder{
paths: v.confi... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/flags.go | package viper
import "github.com/spf13/pflag"
// FlagValueSet is an interface that users can implement
// to bind a set of flags to viper.
type FlagValueSet interface {
VisitAll(fn func(FlagValue))
}
// FlagValue is an interface that users can implement
// to bind different flags to viper.
type FlagValue interface ... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/viper_go1_15.go | //go:build !go1.16 || !finder
// +build !go1.16 !finder
package viper
import (
"fmt"
"os"
"path/filepath"
"github.com/spf13/afero"
)
// Search all configPaths for any config file.
// Returns the first path that exists (and is a config file).
func (v *Viper) findConfigFile() (string, error) {
v.logger.Info("sea... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/.editorconfig | root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.go]
indent_style = tab
[{Makefile, *.mk}]
indent_style = tab
| 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/logger.go | package viper
import (
"fmt"
jww "github.com/spf13/jwalterweatherman"
)
// Logger is a unified interface for various logging use cases and practices, including:
// - leveled logging
// - structured logging
type Logger interface {
// Trace logs a Trace event.
//
// Even more fine-grained information than Deb... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/README.md | > ## Viper v2 feedback
> Viper is heading towards v2 and we would love to hear what _**you**_ would like to see in it. Share your thoughts here: https://forms.gle/R6faU74qPRPAzchZ9
>
> **Thank you!**

[](https://... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/TROUBLESHOOTING.md | # Troubleshooting
## Unmarshaling doesn't work
The most common reason for this issue is improper use of struct tags (eg. `yaml` or `json`). Viper uses [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) under the hood for unmarshaling values which uses `mapstructure` tags by default. Please... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/fs.go | //go:build go1.16 && finder
// +build go1.16,finder
package viper
import (
"errors"
"io/fs"
"path"
)
type finder struct {
paths []string
fileNames []string
extensions []string
withoutExtension bool
}
func (f finder) Find(fsys fs.FS) (string, error) {
for _, searchPath := range f.paths {
for _, file... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/.golangci.yml | run:
timeout: 5m
linters-settings:
gci:
local-prefixes: github.com/spf13/viper
golint:
min-confidence: 0
goimports:
local-prefixes: github.com/spf13/viper
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- dogsled
- dupl
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/Makefile | # A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
OS = $(shell uname | tr A-Z a-z)
export PATH := $(abspath bin/):${PATH}
# Build variables
BUILD_DIR ?= build
export CGO_ENABLED ?= 0
export GOOS = $(shell go env GOOS)
ifeq (${VERBOSE}, 1)
ifeq ($(filter -v,${GOARGS}),)
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/util.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// Viper is a application configuration system.
// It believes that applications can be configured a variety of ways
// via flags, ENVIRONMENT variables, config... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/watch.go | //go:build !js
// +build !js
package viper
import "github.com/fsnotify/fsnotify"
type watcher = fsnotify.Watcher
func newWatcher() (*watcher, error) {
return fsnotify.NewWatcher()
}
| 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/LICENSE | The MIT License (MIT)
Copyright (c) 2014 Steve Francia
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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/viper.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// Viper is an application configuration system.
// It believes that applications can be configured a variety of ways
// via flags, ENVIRONMENT variables, confi... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/watch_wasm.go | // +build js,wasm
package viper
import (
"errors"
"github.com/fsnotify/fsnotify"
)
type watcher struct {
Events chan fsnotify.Event
Errors chan error
}
func (*watcher) Close() error {
return nil
}
func (*watcher) Add(name string) error {
return nil
}
func (*watcher) Remove(name string) error {
return nil
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/error.go | package encoding
type encodingError string
func (e encodingError) Error() string {
return string(e)
}
| 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/decoder.go | package encoding
import (
"sync"
)
// Decoder decodes the contents of b into a v representation.
// It's primarily used for decoding contents of a file into a map[string]interface{}.
type Decoder interface {
Decode(b []byte, v interface{}) error
}
const (
// ErrDecoderNotFound is returned when there is no decoder... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/encoder.go | package encoding
import (
"sync"
)
// Encoder encodes the contents of v into a byte representation.
// It's primarily used for encoding a map[string]interface{} into a file format.
type Encoder interface {
Encode(v interface{}) ([]byte, error)
}
const (
// ErrEncoderNotFound is returned when there is no encoder r... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/json/codec.go | package json
import (
"encoding/json"
)
// Codec implements the encoding.Encoder and encoding.Decoder interfaces for JSON encoding.
type Codec struct{}
func (Codec) Encode(v interface{}) ([]byte, error) {
// TODO: expose prefix and indent in the Codec as setting?
return json.MarshalIndent(v, "", " ")
}
func (Co... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/toml/codec.go | package toml
import (
"github.com/pelletier/go-toml"
)
// Codec implements the encoding.Encoder and encoding.Decoder interfaces for TOML encoding.
type Codec struct{}
func (Codec) Encode(v interface{}) ([]byte, error) {
if m, ok := v.(map[string]interface{}); ok {
t, err := toml.TreeFromMap(m)
if err != nil {
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go | package yaml
import "gopkg.in/yaml.v2"
// Codec implements the encoding.Encoder and encoding.Decoder interfaces for YAML encoding.
type Codec struct{}
func (Codec) Encode(v interface{}) ([]byte, error) {
return yaml.Marshal(v)
}
func (Codec) Decode(b []byte, v interface{}) error {
return yaml.Unmarshal(b, v)
}
| 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding | rapidsai_public_repos/roc/vendor/github.com/spf13/viper/internal/encoding/hcl/codec.go | package hcl
import (
"bytes"
"encoding/json"
"github.com/hashicorp/hcl"
"github.com/hashicorp/hcl/hcl/printer"
)
// Codec implements the encoding.Encoder and encoding.Decoder interfaces for HCL encoding.
// TODO: add printer config to the codec?
type Codec struct{}
func (Codec) Encode(v interface{}) ([]byte, er... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/httpFs.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/iofs.go | // +build go1.16
package afero
import (
"io"
"io/fs"
"os"
"path"
"time"
)
// IOFS adopts afero.Fs to stdlib io/fs.FS
type IOFS struct {
Fs
}
func NewIOFS(fs Fs) IOFS {
return IOFS{Fs: fs}
}
var (
_ fs.FS = IOFS{}
_ fs.GlobFS = IOFS{}
_ fs.ReadDirFS = IOFS{}
_ fs.ReadFileFS = IOFS{}
_ fs.St... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/match.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
// Copyright 2009 The Go 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/L... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/ioutil.go | // Copyright ©2015 The Go Authors
// Copyright ©2015 Steve Francia <spf@spf13.com>
//
// 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
//
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/memmap.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/afero.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
// Copyright 2013 tsuru 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/... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/os.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
// Copyright 2013 tsuru 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/... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/const_bsds.go | // Copyright © 2016 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/README.md | 
A FileSystem Abstraction System for Go
[](https://travis-ci.org/spf13/afero) [;
// 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
//
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/cacheOnReadFs.go | package afero
import (
"os"
"syscall"
"time"
)
// If the cache duration is 0, cache time will be unlimited, i.e. once
// a file is in the layer, the base will never be read again for this file.
//
// For cache times greater than 0, the modification time of a file is
// checked. Note that a lot of file system imple... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/readonlyfs.go | package afero
import (
"os"
"syscall"
"time"
)
var _ Lstater = (*ReadOnlyFs)(nil)
type ReadOnlyFs struct {
source Fs
}
func NewReadOnlyFs(source Fs) Fs {
return &ReadOnlyFs{source: source}
}
func (r *ReadOnlyFs) ReadDir(name string) ([]os.FileInfo, error) {
return ReadDir(r.source, name)
}
func (r *ReadOnly... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/.travis.yml | sudo: false
language: go
arch:
- amd64
- ppc64e
go:
- "1.14"
- "1.15"
- "1.16"
- tip
os:
- linux
- osx
matrix:
allow_failures:
- go: tip
fast_finish: true
script:
- go build -v ./...
- go test -count=1 -cover -race -v ./...
- go vet ./...
- FILES=$(gofmt -s -l . zipfs sftpfs mem tarfs)... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/unionFile.go | package afero
import (
"io"
"os"
"path/filepath"
"syscall"
)
// The UnionFile implements the afero.File interface and will be returned
// when reading a directory present at least in the overlay or opening a file
// for writing.
//
// The calls to
// Readdir() and Readdirnames() merge the file os.FileInfo / names... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/symlink.go | // Copyright © 2018 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/LICENSE.txt | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/util.go | // Copyright ©2015 Steve Francia <spf@spf13.com>
// Portions Copyright ©2015 The Hugo Authors
// Portions Copyright 2016-present Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
/... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/appveyor.yml | version: '{build}'
clone_folder: C:\gopath\src\github.com\spf13\afero
environment:
GOPATH: C:\gopath
build_script:
- cmd: >-
go version
go env
go get -v github.com/spf13/afero/...
go build -v github.com/spf13/afero/...
test_script:
- cmd: go test -count=1 -cover -race -v github.com/spf13/afero/...
| 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/copyOnWriteFs.go | package afero
import (
"fmt"
"os"
"path/filepath"
"syscall"
"time"
)
var _ Lstater = (*CopyOnWriteFs)(nil)
// The CopyOnWriteFs is a union filesystem: a read only base file system with
// a possibly writeable layer on top. Changes to the file system will only
// be made in the overlay: Changing an existing file... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/basepath.go | package afero
import (
"os"
"path/filepath"
"runtime"
"strings"
"time"
)
var _ Lstater = (*BasePathFs)(nil)
// The BasePathFs restricts all operations to a given path within an Fs.
// The given file name to the operations on this Fs will be prepended with
// the base path before calling the base Fs.
// Any file... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/regexpfs.go | package afero
import (
"os"
"regexp"
"syscall"
"time"
)
// The RegexpFs filters files (not directories) by regular expression. Only
// files matching the given regexp will be allowed, all others get a ENOENT error (
// "No such file or directory").
//
type RegexpFs struct {
re *regexp.Regexp
source Fs
}
fu... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/const_win_unix.go | // Copyright © 2016 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/lstater.go | // Copyright © 2018 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/afero | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/mem/dir.go | // Copyright © 2014 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/afero | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/mem/dirmap.go | // Copyright © 2015 Steve Francia <spf@spf13.com>.
//
// 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... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13/afero | rapidsai_public_repos/roc/vendor/github.com/spf13/afero/mem/file.go | // Copyright © 2015 Steve Francia <spf@spf13.com>.
// Copyright 2013 tsuru 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/... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/cast/timeformattype_string.go | // Code generated by "stringer -type timeFormatType"; DO NOT EDIT.
package cast
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[timeFormatNoTimezone-0]
_ = x[tim... | 0 |
rapidsai_public_repos/roc/vendor/github.com/spf13 | rapidsai_public_repos/roc/vendor/github.com/spf13/cast/README.md | cast
====
[](https://godoc.org/github.com/spf13/cast)
[](https://github.com/spf13/cast/actions/workflows/go.yml)
[
var errNegativeNotAllowed = errors.New("un... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.