repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/README.md | # YAML support for the Go language
Introduction
------------
The yaml package enables Go programs to comfortably encode and decode YAML
values. It was developed within [Canonical](https://www.canonical.com) as
part of the [juju](https://juju.ubuntu.com) project, and is based on a
pure Go port of the well-known [libya... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/parserc.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// 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 t... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/encode.go | //
// Copyright (c) 2011-2019 Canonical Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/sorter.go | //
// Copyright (c) 2011-2019 Canonical Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/emitterc.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// 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 t... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/.travis.yml | language: go
go:
- "1.4.x"
- "1.5.x"
- "1.6.x"
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "1.11.x"
- "1.12.x"
- "1.13.x"
- "1.14.x"
- "tip"
go_import_path: gopkg.in/yaml.v3
| 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/NOTICE | Copyright 2011-2016 Canonical Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/readerc.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// 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... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/yamlh.go | //
// Copyright (c) 2011-2019 Canonical Ltd
// Copyright (c) 2006-2010 Kirill Simonov
//
// 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 t... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/LICENSE |
This project is covered by two different licenses: MIT and Apache.
#### MIT License ####
The following files were ported to Go from C files of libyaml, and thus
are still covered by their original MIT license, with the additional
copyright staring in 2011 when the project was ported over:
apic.go emitterc.go pa... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/resolve.go | //
// Copyright (c) 2011-2019 Canonical Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 0 |
rapidsai_public_repos/rvc/vendor/gopkg.in | rapidsai_public_repos/rvc/vendor/gopkg.in/yaml.v3/yaml.go | //
// Copyright (c) 2011-2019 Canonical Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/LICENSE | MIT License
Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.
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, ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/requirements.go | package require
// TestingT is an interface wrapper around *testing.T
type TestingT interface {
Errorf(format string, args ...interface{})
FailNow()
}
type tHelper interface {
Helper()
}
// ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful
// for table driven tests.
... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/require_forward.go | /*
* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
* THIS FILE MUST NOT BE EDITED BY HAND
*/
package require
import (
assert "github.com/stretchr/testify/assert"
http "net/http"
url "net/url"
time "time"
)
// Condition uses a Comparison to assert a complex condition.
func (a *Assertions... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/forward_requirements.go | package require
// Assertions provides assertion methods around the
// TestingT interface.
type Assertions struct {
t TestingT
}
// New makes a new Assertions object for the specified TestingT.
func New(t TestingT) *Assertions {
return &Assertions{
t: t,
}
}
//go:generate sh -c "cd ../_codegen && go build && cd... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/require.go.tmpl | {{.Comment}}
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
if h, ok := t.(tHelper); ok { h.Helper() }
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
t.FailNow()
}
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/doc.go | // Package require implements the same assertions as the `assert` package but
// stops test execution when a test fails.
//
// Example Usage
//
// The following is a complete example using require in a standard test function:
// import (
// "testing"
// "github.com/stretchr/testify/require"
// )
//
// ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl | {{.CommentWithoutT "a"}}
func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) {
if h, ok := a.t.(tHelper); ok { h.Helper() }
{{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
}
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/require/require.go | /*
* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
* THIS FILE MUST NOT BE EDITED BY HAND
*/
package require
import (
assert "github.com/stretchr/testify/assert"
http "net/http"
url "net/url"
time "time"
)
// Condition uses a Comparison to assert a complex condition.
func Condition(t Te... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/errors.go | package assert
import (
"errors"
)
// AnError is an error instance useful for testing. If the code does not care
// about error specifics, and only needs to return the error for example, this
// error should be used to make the test code more readable.
var AnError = errors.New("assert.AnError general error for test... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertion_forward.go | /*
* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
* THIS FILE MUST NOT BE EDITED BY HAND
*/
package assert
import (
http "net/http"
url "net/url"
time "time"
)
// Condition uses a Comparison to assert a complex condition.
func (a *Assertions) Condition(comp Comparison, msgAndArgs ...int... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl | {{.CommentWithoutT "a"}}
func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool {
if h, ok := a.t.(tHelper); ok { h.Helper() }
return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
}
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/forward_assertions.go | package assert
// Assertions provides assertion methods around the
// TestingT interface.
type Assertions struct {
t TestingT
}
// New makes a new Assertions object for the specified TestingT.
func New(t TestingT) *Assertions {
return &Assertions{
t: t,
}
}
//go:generate sh -c "cd ../_codegen && go build && cd ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl | {{.CommentFormat}}
func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool {
if h, ok := t.(tHelper); ok { h.Helper() }
return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}})
}
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertion_format.go | /*
* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
* THIS FILE MUST NOT BE EDITED BY HAND
*/
package assert
import (
http "net/http"
url "net/url"
time "time"
)
// Conditionf uses a Comparison to assert a complex condition.
func Conditionf(t TestingT, comp Comparison, msg string, args ..... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertion_compare.go | package assert
import (
"fmt"
"reflect"
)
type CompareType int
const (
compareLess CompareType = iota - 1
compareEqual
compareGreater
)
var (
intType = reflect.TypeOf(int(1))
int8Type = reflect.TypeOf(int8(1))
int16Type = reflect.TypeOf(int16(1))
int32Type = reflect.TypeOf(int32(1))
int64Type = reflect... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertions.go | package assert
import (
"bufio"
"bytes"
"encoding/json"
"errors"
"fmt"
"math"
"os"
"reflect"
"regexp"
"runtime"
"runtime/debug"
"strings"
"time"
"unicode"
"unicode/utf8"
"github.com/davecgh/go-spew/spew"
"github.com/pmezard/go-difflib/difflib"
yaml "gopkg.in/yaml.v3"
)
//go:generate sh -c "cd ../_c... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/doc.go | // Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
//
// Example Usage
//
// The following is a complete example using assert in a standard test function:
// import (
// "testing"
// "github.com/stretchr/testify/assert"
// )
//
// func TestSomet... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/assertion_order.go | package assert
import (
"fmt"
"reflect"
)
// isOrdered checks that collection contains orderable elements.
func isOrdered(t TestingT, object interface{}, allowedComparesResults []CompareType, failMessage string, msgAndArgs ...interface{}) bool {
objKind := reflect.TypeOf(object).Kind()
if objKind != reflect.Slice... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify | rapidsai_public_repos/rvc/vendor/github.com/stretchr/testify/assert/http_assertions.go | package assert
import (
"fmt"
"net/http"
"net/http/httptest"
"net/url"
"strings"
)
// httpCode is a helper that returns HTTP code of the response. It returns -1 and
// an error if building a new request fails.
func httpCode(handler http.HandlerFunc, method, url string, values url.Values) (int, error) {
w := htt... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/LICENSE-LAMBDACODE | MIT No Attribution
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, publish, distribute, sublicense, and/or... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/LICENSE-SUMMARY | Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Lambda functions are made available under a modified MIT license.
See LICENSE-LAMBDACODE for details.
The remainder of the project is made available under the terms of the
Apache License, version 2.0. See LICENSE for details.
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/LICENSE |
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/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_CodeCommit.md | # Sample Function
The following is a sample Lambda function that receives Amazon CodeCommit event
records input and prints them to `os.Stdout`.)
```go
import (
"fmt"
"github.com/aws/aws-lambda-go/events"
)
func handleRequest(evt events.CodeCommitEvent) {
for _, record := range evt.Records {
fmt.P... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/duration.go | package events
import (
"encoding/json"
"math"
"time"
)
type DurationSeconds time.Duration
// UnmarshalJSON converts a given json to a DurationSeconds
func (duration *DurationSeconds) UnmarshalJSON(data []byte) error {
var seconds float64
if err := json.Unmarshal(data, &seconds); err != nil {
return err
}
... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_SQS.md |
# Sample Function
The following is a sample class and Lambda function that receives Amazon SQS event message data as input, writes some of the message data to CloudWatch Logs, and responds with a 200 status and the same body as the request. (Note that anything written to stdout or stderr will be logged as CloudWatch ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_S3_Batch_Job.md | # Sample Function
The following is a sample class and Lambda function that receives Amazon S3 event record data as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
import (
"fmt"
"context"
"git... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_CloudWatch_Logs.md |
# Sample Function
The following is a Lambda function that receives Amazon CloudWatch Logs event record data as input and writes message part to Lambda's CloudWatch Logs. Note that by default anything written to Console will be logged as CloudWatch Logs events.
```go
import (
"context"
"fmt"
"github.com/aws/aws-l... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Lex.md |
# Sample Function
The following is a sample class and Lambda function that receives Amazon Lex event data as input, writes some of the record data to CloudWatch Logs, and responds back to Lex. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
import (
"context"
"fmt"
... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/kafka.go | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
type KafkaEvent struct {
EventSource string `json:"eventSource"`
EventSourceARN string `json:"eventSourceArn"`
Records map[string][]KafkaRecord `json:"records"`
BootstrapSe... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_KinesisFirehose.md | # Sample Function
The following is a sample Lambda function that transforms Kinesis Firehose records by doing a ToUpper on the data.
```go
package main
import (
"fmt"
"strings"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
)
func handleRequest(evnt events.KinesisFirehoseEvent) (e... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_ApiGatewayEvent.md | # Overview
API Gateway events consist of a request that was routed to a Lambda function by API Gateway. When this happens, API Gateway expects the result of the function to be the response that API Gateway should respond with.
# Sample Function
The following is a sample class and Lambda function that receives Amazon... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/appsync.go | package events
import "encoding/json"
// AppSyncResolverTemplate represents the requests from AppSync to Lambda
type AppSyncResolverTemplate struct {
Version string `json:"version"`
Operation AppSyncOperation `json:"operation"`
Payload json.RawMessage `json:"payload"`
}
// AppSyncIAMIdentity contai... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/ecr_scan.go | package events
type ECRScanEvent struct {
Version string `json:"version"`
ID string `json:"id"`
DetailType string `json:"detail-type"`
Source string `json:"source"`
Time string `json:"time"`
Region string ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_KinesisDataAnalytics.md | # Sample function
The following is an example for an Application Destination Lambda function that receives Amazon Kinesis Data Analytics event records as an input. To send Kinesis Data Analytics output records the Lamdbda function must be compliant with the (required input and return data models)[https://docs.aws.amaz... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/iot_1_click.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// IoTOneClickEvent represents a click event published by clicking button type
// device.
type IoTOneClickEvent struct {
DeviceEvent IoTOneClickDeviceEvent `json:"deviceEvent"`
DeviceInfo IoTOneClickDeviceInfo `json:... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/kinesis_analytics.go | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
type KinesisAnalyticsOutputDeliveryEvent struct {
InvocationID string `json:"invocationId"`
ApplicationARN string `json:"applicationArn"`
Records ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_ClientVPN.md | # Sample Function
The following is a sample Lambda function that receives a Client VPN connection handler request as an input and then validates the IP address input and checks whether the connection source IP is on the allowed list defined as a map inside the function. If the source IP matches an allowed IP address i... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Kinesis.md | # Sample Function
The following is a sample class and Lambda function that receives Amazon Kinesis event record data as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
package main
import (
"context"
"... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/cloudwatch_events.go | package events
import (
"encoding/json"
"time"
)
// CloudWatchEvent is the outer structure of an event sent via CloudWatch Events.
// For examples of events that come via CloudWatch Events, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html
type CloudWatchEvent struct {
Version strin... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/rabbitmq.go | package events
type RabbitMQEvent struct {
EventSource string `json:"eventSource"`
EventSourceARN string `json:"eventSourceArn"`
MessagesByQueue map[string][]RabbitMQMessage `json:"rmqMessagesByQueue"`
}
type RabbitMQMessage struct {
BasicProperties RabbitMQBasicPr... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Cognito.md | # Sample Function
The following is a sample Lambda function that receives Amazon Cognito Sync event record data as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
package main
import (
"fmt"
"gi... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/code_commit.go | package events
import (
"errors"
"fmt"
"time"
)
// CodeCommitEvent represents a CodeCommit event
type CodeCommitEvent struct {
Records []CodeCommitRecord `json:"Records"`
}
// String returns a string representation of this object.
// Useful for testing and debugging.
func (e CodeCommitEvent) String() string {
r... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_CodeBuild.md | # Sample Function
The following is a sample Lambda function that receives an Amazon CodeBuild event
and writes it to standard output.
```go
import (
"fmt"
"github.com/aws/aws-lambda-go/events"
)
func handleRequest(evt events.CodeBuildEvent) {
fmt.Println(evt)
}
```
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/cognito.go | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// CognitoEvent contains data from an event sent from AWS Cognito Sync
type CognitoEvent struct {
DatasetName string `json:"datasetName"`
DatasetRecords map[string]CognitoDatasetRecord `json:"datase... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/activemq.go | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
type ActiveMQEvent struct {
EventSource string `json:"eventSource"`
EventSourceARN string `json:"eventSourceArn"`
Messages []ActiveMQMessage `json:"messages"`
}
type ActiveMQMessage struct {
M... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/alb.go | package events
// ALBTargetGroupRequest contains data originating from the ALB Lambda target group integration
type ALBTargetGroupRequest struct {
HTTPMethod string `json:"httpMethod"`
Path string `json:"path"`
QueryStringPa... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/connect.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// ConnectEvent contains the data structure for a Connect event.
type ConnectEvent struct {
Details ConnectDetails `json:"Details"`
Name string `json:"Name"` // The name of the event.
}
// ConnectDetails holds the ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/firehose.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// KinesisFirehoseEvent represents the input event from Amazon Kinesis Firehose. It is used as the input parameter.
type KinesisFirehoseEvent struct {
InvocationID string `json:"invocationId"`
D... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_ApiGatewayCustomAuthorizer.md | # Sample Function
The following is a simple TOKEN authorizer example to demonstrate how to use an authorization
token to allow or deny a request. In this example, the caller named "user" is allowed to invoke
a request if the client-supplied token value is "allow". The caller is not allowed to invoke
the request if ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/sqs.go | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
type SQSEvent struct {
Records []SQSMessage `json:"Records"`
}
type SQSMessage struct {
MessageId string `json:"messageId"` //nolint: stylecheck
ReceiptHandle string ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_CodeDeploy.md | # Sample Function
The following is a sample Lambda function that receives an Amazon CodeDeploy event
and writes it to standard output.
```go
import (
"fmt"
"github.com/aws/aws-lambda-go/events"
)
func handleRequest(evt events.CodeDeployEvent) {
fmt.Println(evt)
}
```
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README.md | # Overview
[](https://pkg.go.dev/github.com/aws/aws-lambda-go/events)
This package provides input types for Lambda functions that process AWS events.
# Samples
[API Gateway](README_ApiGatewayEvent.md)
[API Gateway Custom Authorizer](R... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/config.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// ConfigEvent contains data from an event sent from AWS Config
type ConfigEvent struct {
// The ID of the AWS account that owns the rule
AccountID string `json:"accountId"`
// The ARN that AWS Config assigned to the rule
Co... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_CloudWatch_Events.md |
# Sample Function
The following is a Lambda function that receives Amazon CloudWatch event record data as input and writes event detail to Lambda's CloudWatch Logs. Note that by default anything written to Console will be logged as CloudWatch Logs events.
```go
import (
"context"
"fmt"
"github.com/aws/aws-lambda... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_S3.md | # Sample Function
The following is a sample class and Lambda function that receives Amazon S3 event record data as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
// main.go
package main
import (
"fmt"
... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/apigw.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// APIGatewayProxyRequest contains data coming from the API Gateway proxy
type APIGatewayProxyRequest struct {
Resource string `json:"resource"` // The resource path defined in API ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/chime_bot.go | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
import (
"time"
)
type ChimeBotEvent struct {
Sender ChimeBotEventSender `json:"Sender"`
Discussion ChimeBotEventDiscussion `json:"Discussion"`
EventType string ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/cloudwatch_logs.go | package events
import (
"bytes"
"compress/gzip"
"encoding/base64"
"encoding/json"
)
// CloudwatchLogsEvent represents raw data from a cloudwatch logs event
type CloudwatchLogsEvent struct {
AWSLogs CloudwatchLogsRawData `json:"awslogs"`
}
// CloudwatchLogsRawData contains gzipped base64 json representing the bu... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/kinesis.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
type KinesisEvent struct {
Records []KinesisEventRecord `json:"Records"`
}
type KinesisEventRecord struct {
AwsRegion string `json:"awsRegion"` //nolint: stylecheck
EventID string `json:"event... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Cognito_UserPools_PreSignup.md | # Sample Function
The following is a sample Lambda function that receives Amazon Cognito User Pools pre-signup event as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
Please see instructions for setting up the ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/epoch_time.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
import (
"encoding/json"
"time"
)
// SecondsEpochTime serializes a time.Time in JSON as a UNIX epoch time in seconds
type SecondsEpochTime struct {
time.Time
}
// MilliSecondsEpochTime serializes a time.Time in JSON as a UN... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/dynamodb.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// The DynamoDBEvent stream event handled to Lambda
// http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-ddb-update
type DynamoDBEvent struct {
Records []DynamoDBEventRecord `json:"Records"`
}
// Dynam... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Cognito_UserPools_PreAuthentication.md | # Sample Function
The following is a sample Lambda function that receives Amazon Cognito User Pools pre-authentication event as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
Please see instructions for setting... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/iot_button.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
type IoTButtonEvent struct {
SerialNumber string `json:"serialNumber"`
ClickType string `json:"clickType"`
BatteryVoltage string `json:"batteryVoltage"`
}
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/codepipeline_job.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// CodePipelineJobEvent contains data from an event sent from AWS CodePipeline
type CodePipelineJobEvent struct {
CodePipelineJob CodePipelineJob `json:"CodePipeline.job"`
}
// CodePipelineJob represents a job from an AWS Code... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/s3.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
import (
"encoding/json"
"net/url"
"time"
)
// S3Event which wrap an array of S3EventRecord
type S3Event struct {
Records []S3EventRecord `json:"Records"`
}
// S3EventRecord which wrap record data
type S3EventRecord struct... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Cognito_UserPools_CustomAuthLambdaTriggers.md | # Sample Function
The following is a sample Lambda functions that are used for custom authentication with Cognito User Pools.
These Lambda triggers issue and verify their own challenges as part of a user pool [custom authentication flow](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-poo... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/iot.go | package events
// IoTCustomAuthorizerRequest contains data coming in to a custom IoT device gateway authorizer function.
type IoTCustomAuthorizerRequest struct {
HTTPContext *IoTHTTPContext `json:"httpContext,omitempty"`
MQTTContext *IoTMQTTContext `json:"mqttContext,omitempty"`
TLSContext *Io... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_DynamoDB.md | # Sample Function
The following is a sample Lambda function that receives DynamoDB event data as input and writes some of the record data to CloudWatch Logs. (Note that by default anything written to Console will be logged as CloudWatch Logs.)
```go
import (
"context"
"fmt"
"github.com/aws/aws-lambda-go/events"
)... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/codepipeline.go | package events
// CodePipelineJob has been incorrectly assigned as CodePipelineEvent
// - https://github.com/aws/aws-lambda-go/issues/244
// This maintains backwards compatability until a v2 release
type CodePipelineEvent = CodePipelineJobEvent
| 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_SES.md |
# Sample Function
The following is a sample class and Lambda function that receives Amazon SES event message data as input, writes some of the message data to CloudWatch Logs, and responds with a 200 status and the same body as the request. (Note that anything written to stdout or stderr will be logged as CloudWatch ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Config.md | # Sample Function
The following is a sample Lambda function that receives Amazon Config event record data as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
import (
"strings"
"github.com/aws/aws-... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/ses.go | package events
import "time"
// SimpleEmailEvent is the outer structure of an event sent via SES.
type SimpleEmailEvent struct {
Records []SimpleEmailRecord `json:"Records"`
}
type SimpleEmailRecord struct {
EventVersion string `json:"eventVersion"`
EventSource string `json:"eventSource"`... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Connect.md | # Sample Function
The following is a sample Lambda function that receives an Amazon Connect event as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
```go
package main
import (
"context"
"fmt"
"github.com/a... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/autoscaling.go | package events
import (
"time"
)
// AutoScalingEvent struct is used to parse the json for auto scaling event types //
type AutoScalingEvent struct {
Version string `json:"version"` // The version of event data
ID string `json:"id"` // The unique ID of the eve... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/codedeploy.go | package events
import (
"time"
)
const (
CodeDeployEventSource = "aws.codedeploy"
CodeDeployDeploymentEventDetailType = "CodeDeploy Deployment State-change Notification"
CodeDeployInstanceEventDetailType = "CodeDeploy Instance State-change Notification"
)
type CodeDeployDeploymentState string
co... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/lex.go | package events
type LexEvent struct {
MessageVersion string `json:"messageVersion,omitempty"`
InvocationSource string `json:"invocationSource,omitempty"`
UserID string `json:"userId,omitempty"`
InputTranscript string `json:"in... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/clientvpn.go | package events
type ClientVPNConnectionHandlerRequest struct {
ConnectionID string `json:"connection-id"`
EndpointID string `json:"endpoint-id"`
CommonName string `json:"common-name"`
Username string `json:"username"`
OSPlatform string `json:"platform"`
OSPlatfor... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Cognito_UserPools_PreTokenGen.md | # Sample Function
The following is a sample Lambda function that receives Amazon Cognito User Pools pre-token-gen event as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
Please see instructions for setting up t... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Cognito_UserPools_PostConfirmation.md | # Sample Function
The following is a sample Lambda function that receives Amazon Cognito User Pools post-confirmation event as an input and writes some of the record data to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.)
Please see instructions for setting ... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_SNS.md |
# Sample Function
The following is a sample class and Lambda function that receives Amazon SNS event record data as input, writes some of the record data to CloudWatch Logs, and responds with a 200 status and the same body as the request. (Note that anything written to stdout or stderr will be logged as CloudWatch Lo... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/attributevalue.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
import (
"bytes"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"strconv"
)
// DynamoDBAttributeValue provides convenient access for a value stored in DynamoDB.
// For more information, please see http://docs.aws.amazo... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_ALBTargetGroupEvents.md | # Overview
ALB Target Group events consist of a request that was routed to a Lambda function which is a registered target of an Application Load Balancer Target Group. When this happens, ALB expects the result of the function to be the response that ALB should respond with.
https://docs.aws.amazon.com/elasticloadbala... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/s3_batch_job.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
// S3BatchJobEvent encapsulates the detail of a s3 batch job
type S3BatchJobEvent struct {
InvocationSchemaVersion string `json:"invocationSchemaVersion"`
InvocationID string `json:"invocationId"... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/codepipeline_cloudwatch.go | package events
import (
"time"
)
const (
CodePipelineEventSource = "aws.codepipeline"
CodePipelineExecutionEventDetailType = "CodePipeline Pipeline Execution State Change"
CodePipelineActionEventDetailType = "CodePipeline Action Execution State Change"
CodePipelineStageEventDetailType = "Code... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_Chime_Bots.md | # Sample Function
The following is a sample class and Lambda function that receives a Amazon Chime Bot event and handles the various event types accordingly.
```go
package main
import (
"fmt"
"context"
"net/http"
"bytes"
"encoding/json"
"errors"
"strconv"
"github.com/aws/aws-lam... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/codebuild.go | package events
import (
"encoding/json"
"time"
)
const (
CodeBuildEventSource = "aws.codebuild"
CodeBuildStateChangeDetailType = "CodeBuild Build State Change"
CodeBuildPhaseChangeDetailType = "CodeBuild Build Phase Change"
)
// CodeBuildPhaseStatus represents the status of code build phase (i.e. fail... | 0 |
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go | rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/sns.go | // Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
package events
import (
"time"
)
type SNSEvent struct {
Records []SNSEventRecord `json:"Records"`
}
type SNSEventRecord struct {
EventVersion string `json:"EventVersion"`
EventSubscriptionArn string `json:"EventSubscription... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.