repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
95
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
111
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
252
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
25
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
218
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
160
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
346
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
15
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
140
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
33
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
34
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
32
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
110
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
46
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
443
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
242
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
62
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
162
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
126
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
463
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
283
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
286
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
128
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
218
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
122
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
183
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
87
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
28
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
18
aws-xray-sdk-go
aws
Go
package xray import ( "context" "fmt" "net/http" "net/url" "github.com/aws/aws-xray-sdk-go/header" "github.com/valyala/fasthttp" ) type FastHTTPHandler interface { Handler(SegmentNamer, fasthttp.RequestHandler) fasthttp.RequestHandler } type fasthttpHandler struct { cfg *Config } // NewFastHTTPInstrumentor...
99
aws-xray-sdk-go
aws
Go
package xray import ( "net" "net/http" "testing" "github.com/stretchr/testify/assert" "github.com/valyala/fasthttp" ) func TestFastHTTPHandler(t *testing.T) { ctx1, td := NewTestDaemon() cfg := GetRecorder(ctx1) defer td.Close() fh := NewFastHTTPInstrumentor(cfg) handler := fh.Handler(NewFixedSegmentNamer...
71
aws-xray-sdk-go
aws
Go
package xray import ( "bytes" "context" "errors" "net/http" "net/url" "strconv" "strings" "github.com/aws/aws-xray-sdk-go/internal/logger" "google.golang.org/grpc/codes" "github.com/golang/protobuf/proto" "google.golang.org/grpc/status" "github.com/aws/aws-xray-sdk-go/header" "google.golang.org/grpc" ...
226
aws-xray-sdk-go
aws
Go
package xray import ( "context" "encoding/json" "net" "regexp" "sync" "testing" "time" "github.com/aws/aws-xray-sdk-go/header" "github.com/golang/protobuf/proto" "github.com/stretchr/testify/require" pb "github.com/grpc-ecosystem/go-grpc-middleware/testing/testproto" "github.com/stretchr/testify/assert" ...
430
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
205
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
105
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
290
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
258
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
92
aws-xray-sdk-go
aws
Go
package xray import ( "context" "net/http" "net/http/httptest" "strings" "testing" "github.com/aws/aws-xray-sdk-go/header" "github.com/stretchr/testify/assert" ) const ExampleTraceHeader string = "Root=1-57ff426a-80c11c39b0c928905eb0828d;Parent=1234abcd1234abcd;Sampled=1" func TestLambdaSegmentEmit(t *testin...
117
aws-xray-sdk-go
aws
Go
package xray import ( "io" "net/http" ) type responseCapturer struct { http.ResponseWriter status int length int } func (w *responseCapturer) WriteHeader(status int) { w.status = status w.ResponseWriter.WriteHeader(status) } func (w *responseCapturer) Write(data []byte) (int, error) { w.length += len(data) ...
283
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
681
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
229
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
346
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
375
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
768
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
153
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
77
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
65
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
59
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
16
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
141
aws-xray-sdk-go
aws
Go
// Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" ...
93
constructs-go
aws
Go
package constructs import ( _init_ "github.com/aws/constructs-go/constructs/v3/jsii" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // Represents the building block of the construct graph. // // All constructs besides the root construct must be created within the scope of // another construct. type Construct int...
120
constructs-go
aws
Go
package constructs import ( _init_ "github.com/aws/constructs-go/constructs/v3/jsii" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // Metadata keys used by constructs. type ConstructMetadata interface { } // The jsii proxy struct for ConstructMetadata type jsiiProxy_ConstructMetadata struct { _ byte // paddin...
61
constructs-go
aws
Go
package constructs // Options for creating constructs. type ConstructOptions struct { // A factory for attaching `Node`s to the construct. NodeFactory INodeFactory `field:"optional" json:"nodeFactory" yaml:"nodeFactory"` }
10
constructs-go
aws
Go
package constructs // In what order to return constructs. type ConstructOrder string const ( // Depth-first, pre-order. ConstructOrder_PREORDER ConstructOrder = "PREORDER" // Depth-first, post-order (leaf nodes first). ConstructOrder_POSTORDER ConstructOrder = "POSTORDER" )
14
constructs-go
aws
Go
//go:build !no_runtime_type_checking package constructs import ( "fmt" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) func (c *jsiiProxy_Construct) validateOnSynthesizeParameters(session ISynthesisSession) error { if session == nil { return fmt.Errorf("parameter session is required, but nil was provided") ...
35
constructs-go
aws
Go
//go:build no_runtime_type_checking package constructs // Building without runtime type checking enabled, so all the below just return nil func (c *jsiiProxy_Construct) validateOnSynthesizeParameters(session ISynthesisSession) error { return nil } func validateNewConstructParameters(scope Construct, id *string, op...
15
constructs-go
aws
Go
package constructs // A single dependency. type Dependency struct { // Source the dependency. Source IConstruct `field:"required" json:"source" yaml:"source"` // Target of the dependency. Target IConstruct `field:"required" json:"target" yaml:"target"` }
12
constructs-go
aws
Go
package constructs import ( _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // Represents an Aspect. type IAspect interface { // All aspects can visit an IConstruct. Visit(node IConstruct) } // The jsii proxy for IAspect type jsiiProxy_IAspect struct { _ byte // padding } func (i *jsiiProxy_IAspect) Visit(nod...
29
constructs-go
aws
Go
//go:build !no_runtime_type_checking package constructs import ( "fmt" ) func (i *jsiiProxy_IAspect) validateVisitParameters(node IConstruct) error { if node == nil { return fmt.Errorf("parameter node is required, but nil was provided") } return nil }
17
constructs-go
aws
Go
//go:build no_runtime_type_checking package constructs // Building without runtime type checking enabled, so all the below just return nil func (i *jsiiProxy_IAspect) validateVisitParameters(node IConstruct) error { return nil }
11
constructs-go
aws
Go
package constructs // Represents a construct. type IConstruct interface { } // The jsii proxy for IConstruct type jsiiProxy_IConstruct struct { _ byte // padding }
13
constructs-go
aws
Go
package constructs import ( _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // A factory for attaching `Node`s to the construct. type INodeFactory interface { // Returns a new `Node` associated with `host`. CreateNode(host Construct, scope IConstruct, id *string) Node } // The jsii proxy for INodeFactory type j...
34
constructs-go
aws
Go
//go:build !no_runtime_type_checking package constructs import ( "fmt" ) func (i *jsiiProxy_INodeFactory) validateCreateNodeParameters(host Construct, scope IConstruct, id *string) error { if host == nil { return fmt.Errorf("parameter host is required, but nil was provided") } if scope == nil { return fmt.E...
25
constructs-go
aws
Go
//go:build no_runtime_type_checking package constructs // Building without runtime type checking enabled, so all the below just return nil func (i *jsiiProxy_INodeFactory) validateCreateNodeParameters(host Construct, scope IConstruct, id *string) error { return nil }
11
constructs-go
aws
Go
package constructs import ( _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // Represents a single session of synthesis. // // Passed into `construct.onSynthesize()` methods. type ISynthesisSession interface { // The output directory for this synthesis session. Outdir() *string } // The jsii proxy for ISynthesi...
30
constructs-go
aws
Go
package constructs import ( _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // Implement this interface in order for the construct to be able to validate itself. type IValidation interface { // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // val...
36
constructs-go
aws
Go
// A programming model for composable configuration package constructs import ( "reflect" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) func init() { _jsii_.RegisterClass( "constructs.Construct", reflect.TypeOf((*Construct)(nil)).Elem(), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "onPrepare", G...
148
constructs-go
aws
Go
package constructs // An entry in the construct metadata table. type MetadataEntry struct { // The data. Data interface{} `field:"required" json:"data" yaml:"data"` // The metadata entry type. Type *string `field:"required" json:"type" yaml:"type"` // Stack trace. // // Can be omitted by setting the context ke...
17
constructs-go
aws
Go
package constructs import ( _init_ "github.com/aws/constructs-go/constructs/v3/jsii" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) // Represents the construct node in the scope tree. type Node interface { // Returns an opaque tree-unique address for this construct. // // Addresses are 42 characters hexadecim...
541
constructs-go
aws
Go
//go:build !no_runtime_type_checking package constructs import ( "fmt" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) func (n *jsiiProxy_Node) validateAddErrorParameters(message *string) error { if message == nil { return fmt.Errorf("parameter message is required, but nil was provided") } return nil } f...
142
constructs-go
aws
Go
//go:build no_runtime_type_checking package constructs // Building without runtime type checking enabled, so all the below just return nil func (n *jsiiProxy_Node) validateAddErrorParameters(message *string) error { return nil } func (n *jsiiProxy_Node) validateAddInfoParameters(message *string) error { return ni...
63
constructs-go
aws
Go
package constructs // Options for synthesis. type SynthesisOptions struct { // The output directory into which to synthesize the cloud assembly. Outdir *string `field:"required" json:"outdir" yaml:"outdir"` // Additional context passed into the synthesis session object when `construct.synth` is called. SessionCon...
14
constructs-go
aws
Go
package constructs // An error returned during the validation phase. type ValidationError struct { // The error message. Message *string `field:"required" json:"message" yaml:"message"` // The construct which emitted the error. Source Construct `field:"required" json:"source" yaml:"source"` }
12
constructs-go
aws
Go
// Package jsii contains the functionaility needed for jsii packages to // initialize their dependencies and themselves. Users should never need to use this package // directly. If you find you need to - please report a bug at // https://github.com/aws/jsii/issues/new/choose package jsii import ( _ "embed" _js...
22
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package main const ( shortDescription = "Launch and manage containerized applications on AWS." )
9
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Package main contains the root command. package main import ( "errors" "os" "github.com/aws/copilot-cli/cmd/copilot/template" "github.com/aws/copilot-cli/internal/pkg/cli" "github.com/aws/copilot-cli/...
100
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Package template provides usage templates to render help menus. package template import ( "strings" termcolor "github.com/aws/copilot-cli/internal/pkg/term/color" "github.com/fatih/color" "github.com/s...
81
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package template import ( "fmt" "github.com/spf13/cobra" "github.com/aws/copilot-cli/internal/pkg/cli/group" ) // RootUsage is the text template for the root command. var RootUsage = fmt.Sprintf("{{h1 \"...
60
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package addons_test import ( "fmt" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var cli *client.CLI var ( appName string...
58
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package addons_test import ( "fmt" "net/http" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("addons flow", func() { Contex...
291
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package app_with_domain_test import ( "fmt" "os" "strings" "testing" "time" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkg...
57
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package app_with_domain_test import ( "fmt" "io" "net/http" "strings" "sync" "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/aws/copilot-cli/e2e/internal/client" ) var _...
338
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package apprunner_test import ( "fmt" "os" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" "github.com/aws/copilot-cli/e2e/internal/command" . "github.com/onsi/ginkgo/v2" . "github.c...
68
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package apprunner_test import ( "fmt" "net/http" "strings" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) type countAssertionTracker struct ...
333
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package main import ( "errors" "log" "net/http" ) // HealthCheck returns a 200. func HealthCheck(w http.ResponseWriter, req *http.Request) { log.Println("🚑 healthcheck ok!") w.WriteHeader(http.StatusO...
34
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package main import ( "context" "errors" "fmt" "io" "log" "net/http" "os" "time" ) // SimpleGet writes the name of the service to the response. func SimpleGet(w http.ResponseWriter, req *http.Request)...
76
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package cloudfront_test import ( "fmt" "os" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/s...
78
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package cloudfront_test import ( "bytes" "fmt" "net/http" "strings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/arn" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "gith...
204
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package customized_env_test import ( "fmt" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var cli *client.CLI var aws *clie...
56
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package customized_env_test import ( "errors" "fmt" "net/http" "os" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/aws/copilot-cli/e2e/internal/client" ) const resourceTypeVPC =...
399
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package exec_test import ( "fmt" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var cli *client.CLI var appName, envName, s...
39
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package exec_test import ( "fmt" "io" "net/http" "strings" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("exec fl...
297
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package import_certs import ( "fmt" "os" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var cli *client.CLI var appName st...
40
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package import_certs import ( "net/http" "strings" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/aws/copilot-cli/e2e/internal/client" ) var _ = Describe("Import Certificates", fu...
126
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package init_test import ( "fmt" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var cli *client.CLI var appName string var ...
51
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package init_test import ( "fmt" "net/http" "strings" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var _ = Describe("init flow", Ordered, ...
204
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package client import ( "bytes" "encoding/json" "fmt" "strconv" "strings" cmd "github.com/aws/copilot-cli/e2e/internal/command" ) // IAM policy ARNs. const ( codeCommitPowerUserPolicyARN = "arn:aws:ia...
430
copilot-cli
aws
Go
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package client import ( cmd "github.com/aws/copilot-cli/e2e/internal/command" ) // BashExec execute bash commands. func BashExec(command string, opts ...cmd.Option) error { args := []string{"-c", command} ...
19