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 |
|---|---|---|---|---|
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package client
import (
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/onsi/ginkgo/v2"
"github.com/onsi/gomega/gexec"
)
// CLI is a wrapper around os.execs.
type CLI struc... | 1,091 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package client
import (
"fmt"
"strings"
cmd "github.com/aws/copilot-cli/e2e/internal/command"
)
// Docker is a wrapper around Docker commands.
type Docker struct{}
// NewDocker returns a wrapper around D... | 57 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package client
import (
"encoding/json"
"strings"
"time"
)
// SvcStatusOutput is the JSON output of the svc status.
type SvcStatusOutput struct {
Status string `json:"status"`
Service SvcStatusServi... | 241 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package command
import (
"io"
"os"
"os/exec"
)
// Option is the function signature for customizing the internal *exec.Cmd.
type Option func(cmd *exec.Cmd)
// Stdin sets the internal *exec.Cmd's Stdin fiel... | 43 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package isolated_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 *client.AWS... | 65 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package isolated_test
import (
"errors"
"fmt"
"net/http"
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("Isolated", func() ... | 232 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"log"
"net/http"
"github.com/julienschmidt/httprouter"
)
// HealthCheck just returns true if the service is up.
func HealthCheck(w http.ResponseWriter, req *http.Request, ps httprout... | 27 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package multi_env_app_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 st... | 35 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package multi_env_app_test
import (
"fmt"
"net/http"
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/aws/copilot-cli/e2e/internal/client"
)
var (
initErr error
)
var _ = De... | 314 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package multi_pipeline_test
import (
"fmt"
"testing"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/aws/copilot-cli/e2e/internal/client"
)
// Command-line tools.
var (
co... | 60 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package multi_pipeline_test
import (
"fmt"
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com... | 554 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package multi_svc_app_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 *clien... | 42 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package multi_svc_app_test
import (
"fmt"
"io"
"net/http"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/aws/copilot-cli/e2e/internal/client"
)
var (
initErr error
)
var _ = De... | 439 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"log"
"net/http"
"github.com/julienschmidt/httprouter"
)
// HealthCheck just returns true if the service is up.
func HealthCheck(w http.ResponseWriter, req *http.Request, ps httprout... | 43 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"os/exec"
"github.com/julienschmidt/httprouter"
)
var (
// Get the env var "MAGIC_VERB" for testing if the build arg was overri... | 143 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"log"
"net/http"
"github.com/julienschmidt/httprouter"
)
// SimpleGet just returns true no matter what.
func SimpleGet(w http.ResponseWriter, req *http.Request, ps httprouter.Params)... | 32 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package pipeline_test
import (
"fmt"
"testing"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/aws/copilot-cli/e2e/internal/client"
)
// Command-line tools.
var (
copilot ... | 59 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package pipeline_test
import (
"fmt"
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/... | 330 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package root_test
import (
"testing"
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var cli *client.CLI
func TestRoot(t *testing.T) {
Regist... | 26 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package root_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("Root", func() {
Context("--help", func() {
It("should output help text", func() {
output, err :=... | 34 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package sidecars_test
import (
"fmt"
"math"
"math/rand"
"testing"
"time"
"github.com/aws/copilot-cli/e2e/internal/client"
"github.com/aws/copilot-cli/e2e/internal/command"
. "github.com/onsi/ginkgo/v2... | 60 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package sidecars_test
import (
"fmt"
"io"
"math/rand"
"net/http"
"os"
"strings"
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
const mani... | 313 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package static_site_test
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 appNam... | 39 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package static_site_test
import (
"fmt"
"io"
"net/http"
"strings"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/aws/copilot-cli/e2e/internal/client"
)
var _ = Describe("Static ... | 148 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package task
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 *client.AWS
var appN... | 56 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package task
import (
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describe("Task", func() {
Context("when creating a new app", Order... | 145 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package worker_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
appName strin... | 45 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package worker_test
import (
"errors"
"fmt"
"io"
"net/http"
"os"
"strconv"
"github.com/aws/copilot-cli/e2e/internal/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
var _ = Describ... | 272 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package addon contains the service to manage addons.
package addon
import (
"fmt"
"path/filepath"
"strconv"
"strings"
"github.com/dustin/go-humanize/english"
"gopkg.in/yaml.v3"
)
const (
// StackNa... | 329 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"errors"
"fmt"
"os"
"path/filepath"
"testing"
"github.com/aws/copilot-cli/internal/pkg/addon/mocks"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"gopkg... | 807 |
copilot-cli | aws | Go | //go:build integration || localintegration
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon_test
import (
"encoding"
"fmt"
"os"
"path/filepath"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/copilot-cli/internal/pkg/addon"
... | 96 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"errors"
"fmt"
"reflect"
"gopkg.in/yaml.v3"
)
type cfnSection int
const (
metadataSection cfnSection = iota + 1
parametersSection
mappingsSection
conditionsSection
transformS... | 325 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"errors"
"fmt"
"gopkg.in/yaml.v3"
)
// ErrAddonsNotFound occurs when an addons directory for a workload is either not found or empty.
type ErrAddonsNotFound struct {
ParentErr erro... | 132 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"errors"
"fmt"
"strings"
"gopkg.in/yaml.v3"
)
// AWS CloudFormation resource types.
const (
secretManagerSecretType = "AWS::SecretsManager::Secret"
iamManagedPolicyType = "AWS... | 155 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"errors"
"os"
"path/filepath"
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func TestOutputs(t *testing.T) {
testCases := map[string]struct {
template st... | 148 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"archive/zip"
"bytes"
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"io/fs"
"path/filepath"
"strings"
"github.com/aws/copilot-cli/internal/pkg/aws/s3"
"github.com/aws/copilot-cli... | 484 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package addon
import (
"crypto/sha256"
"encoding/hex"
"errors"
"fmt"
"io"
"strings"
"testing"
"github.com/aws/copilot-cli/internal/pkg/addon/mocks"
"github.com/aws/copilot-cli/internal/pkg/aws/s3"
"... | 523 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package addon contains the service to manage addons.
package addon
import (
"fmt"
"regexp"
"strings"
"github.com/aws/copilot-cli/internal/pkg/template"
)
const (
dynamoDbTemplatePath = "addons/ddb/c... | 438 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package addon contains the service to manage addons.
package addon
import (
"bytes"
"errors"
"fmt"
"testing"
"github.com/aws/copilot-cli/internal/pkg/template"
"github.com/aws/copilot-cli/internal/pk... | 601 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/addon/addons.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockWorkspaceAddonsReader is a mock of WorkspaceAddonsReader interface.
type MockWorkspaceAddons... | 121 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/addon/package.go
// Package mocks is a generated GoMock package.
package mocks
import (
io "io"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// Mockuploader is a mock of uploader interface.
type Mockuploader struct {
ctrl *go... | 51 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package apprunner provides a client to retrieve Copilot App Runner information.
package apprunner
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws/session"
awsapprunner "github.com/aws/aws-sdk-go/s... | 90 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package apprunner
import (
"errors"
"fmt"
"testing"
"time"
"github.com/aws/copilot-cli/internal/pkg/apprunner/mocks"
"github.com/aws/copilot-cli/internal/pkg/aws/apprunner"
"github.com/aws/copilot-cli/... | 211 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/apprunner/apprunner.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
apprunner "github.com/aws/aws-sdk-go/service/apprunner"
apprunner0 "github.com/aws/copilot-cli/internal/pkg/aws/apprunner"
resourceg... | 135 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package aas provides a client to make API requests to Application Auto Scaling.
package aas
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
aas "github.com/aws/aws-sdk-go/service/applicationautoscaling"
... | 65 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package aas
import (
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
aas "github.com/aws/aws-sdk-go/service/applicationautoscaling"
"github.com/aws/copilot-cli/internal/pkg/aws/aas/mocks"
"git... | 142 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/aas/aas.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
applicationautoscaling "github.com/aws/aws-sdk-go/service/applicationautoscaling"
gomock "github.com/golang/mock/gomock"
)
// Mockapi is a m... | 51 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package acm provides a client to make API requests to AWS Certificate Manager.
package acm
import (
"context"
"fmt"
"strings"
"sync"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go... | 129 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package acm
import (
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/acm"
"github.com/aws/copilot-cli/internal/pkg/aws/acm/mocks"
"github.com/golang/mock/gom... | 110 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/acm/acm.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
aws "github.com/aws/aws-sdk-go/aws"
request "github.com/aws/aws-sdk-go/aws/request"
acm "github.com/aws/aws-sdk-go/service/acm"
gomock "git... | 58 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package apprunner provides a client to make API requests to AppRunner Service.
package apprunner
import (
"fmt"
"regexp"
"sort"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-s... | 331 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package apprunner
import (
"errors"
"fmt"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/apprunner"
"github.com/aws/copilot-cli/internal/pkg/aws/apprunner/mocks"
"... | 763 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package apprunner
import (
"fmt"
)
// ErrWaitServiceOperationFailed occurs when the service operation failed.
type ErrWaitServiceOperationFailed struct {
operationId string
}
func (e *ErrWaitServiceOperati... | 23 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package apprunner provides a client to make API requests to AppRunner Service.
package apprunner
import (
"time"
"github.com/aws/aws-sdk-go/service/apprunner"
)
// Service wraps up AppRunner Service str... | 50 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/apprunner/apprunner.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
apprunner "github.com/aws/aws-sdk-go/service/apprunner"
gomock "github.com/golang/mock/gomock"
)
// Mockapi is a mock of api int... | 156 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"context"
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/google/uuid"
)
const (
// The change se... | 265 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package cloudformation provides a client to make API requests to AWS CloudFormation.
package cloudformation
import (
"context"
"errors"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aw... | 445 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"bytes"
"context"
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/cloudformation"
"g... | 1,529 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws/awserr"
)
// ErrChangeSetEmpty occurs when the change set does not contain any new or updated resources.
type ErrChangeSetEmp... | 83 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/cloudformation"
)
type changeSetAPI interface {
CreateChangeSet(*... | 33 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"fmt"
"gopkg.in/yaml.v3"
)
// ParseTemplateDescriptions parses a YAML CloudFormation template to retrieve all human readable
// descriptions associated with a resource. It a... | 49 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/require"
)
func TestParseTemplateDescriptions(t *testing.T) {
testCases := map[string]struct {
testFile ... | 61 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudformation"
)
// Stack represents a AWS CloudFormation stack.
type Stack struct {
Name string
*stackC... | 113 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"strings"
"github.com/aws/aws-sdk-go/service/cloudformation"
)
var (
successStackStatuses = []string{
cloudformation.StackStatusCreateComplete,
cloudformation.StackStat... | 79 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"testing"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/stretchr/testify/require"
)
func TestStackStatus_InProgress(t *testing.T) {
testCases := map[strin... | 151 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformation
import (
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/stretchr/testify/require"
)
func TestNewStack(t *testing.T) {
// ... | 71 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudformationtest
import (
"context"
sdk "github.com/aws/aws-sdk-go/service/cloudformation"
cfn "github.com/aws/copilot-cli/internal/pkg/aws/cloudformation"
)
// Double is a test double for cloud... | 142 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/cloudformation/interfaces.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
aws "github.com/aws/aws-sdk-go/aws"
request "github.com/aws/aws-sdk-go/aws/request"
cloudformation "github.com/aws/aws-sdk... | 366 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stackset
// Description represents a created stack set resource.
type Description struct {
ID string
Name string
Template string
}
| 12 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stackset
import (
"fmt"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/cloudformation"
)
// ErrStackSetOutOfDate occurs when we try to read and then update a StackSet bu... | 86 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stackset
import (
"errors"
"testing"
"github.com/stretchr/testify/require"
)
func TestErrStackSetOutOfDate_Error(t *testing.T) {
err := &ErrStackSetOutOfDate{
name: "demo-infrastructure",
... | 37 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package stackset provides a client to make API requests to an AWS CloudFormation StackSet resource.
package stackset
import (
"errors"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-... | 433 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stackset
import (
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/aws/copilot-cli/... | 863 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stackset
import "github.com/aws/aws-sdk-go/service/cloudformation"
const (
opStatusSucceeded = cloudformation.StackSetOperationStatusSucceeded
opStatusStopped = cloudformation.StackSetOperationSta... | 86 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stackset
import (
"testing"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/stretchr/testify/require"
)
func TestOpStatus_IsCompleted(t *testing.T) {
testCases := map[string]struct... | 297 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/cloudformation/stackset/stackset.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
cloudformation "github.com/aws/aws-sdk-go/service/cloudformation"
gomock "github.com/golang/mock/gomock"
)
// Mocka... | 171 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudfront
const (
// CertRegion is the only AWS region accepted by CloudFront while attaching certificates to a distribution.
CertRegion = "us-east-1"
// S3BucketOriginDomainFormat is the Regex val... | 13 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudwatch
import (
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudwatch"
)
const (
anomalyDetectionBandExpression = "ANOMALY_DETECTION_BAND"
//... | 103 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package cloudwatch provides a client to make API requests to Amazon CloudWatch Service.
package cloudwatch
import (
"fmt"
"strings"
"time"
rg "github.com/aws/copilot-cli/internal/pkg/aws/resourcegroups... | 242 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudwatch
import (
"errors"
"fmt"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/aws/copilot-cli/internal/pkg/aws/cloudwatch/mocks"... | 605 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/cloudwatch/cloudwatch.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
cloudwatch "github.com/aws/aws-sdk-go/service/cloudwatch"
resourcegroups "github.com/aws/copilot-cli/internal/pkg/aws/resourceg... | 90 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package cloudwatchlogs provides a client to make API requests to Amazon CloudWatch Logs.
package cloudwatchlogs
import (
"fmt"
"sort"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/... | 241 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudwatchlogs
import (
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/copilot-cli/internal/pkg/aws/cloudwatchlogs/mo... | 394 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package cloudwatchlogs contains utility functions for Cloudwatch Logs client.
package cloudwatchlogs
import (
"encoding/json"
"fmt"
"regexp"
"github.com/aws/copilot-cli/internal/pkg/term/color"
c "git... | 64 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package cloudwatchlogs
import (
"fmt"
"testing"
"github.com/aws/copilot-cli/internal/pkg/term/color"
c "github.com/fatih/color"
"github.com/stretchr/testify/require"
)
func TestColorCodeMessage(t *testi... | 62 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/cloudwatchlogs/cloudwatchlogs.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
cloudwatchlogs "github.com/aws/aws-sdk-go/service/cloudwatchlogs"
gomock "github.com/golang/mock/gomock"
)
// Mockapi ... | 66 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package codepipeline provides a client to make API requests to Amazon Elastic Container Service.
package codepipeline
import (
"errors"
"fmt"
"time"
"github.com/xlab/treeprint"
"github.com/aws/aws-sd... | 314 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package codepipeline
import (
"errors"
"fmt"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/copilot-cli/internal/pkg/aws/codepipeline/mocks"
"github.com/golang/mock/gomock"
"github.... | 582 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/codepipeline/codepipeline.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
codepipeline "github.com/aws/aws-sdk-go/service/codepipeline"
resourcegroups "github.com/aws/copilot-cli/internal/pkg/aws/r... | 135 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package codestar provides a client to make API requests to AWS CodeStar Connections.
package codestar
import (
"context"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/ses... | 80 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package codestar
import (
"context"
"errors"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/codestarconnections"
"github.com/aws/copilot-cli/internal/pkg/aws/codes... | 217 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/codestar/codestar.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
codestarconnections "github.com/aws/aws-sdk-go/service/codestarconnections"
gomock "github.com/golang/mock/gomock"
)
// Mockapi is... | 66 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package ec2 provides a client to make API requests to Amazon Elastic Compute Cloud.
package ec2
import (
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github... | 497 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package ec2
import (
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/copilot-cli/internal/pkg/aws/ec2/mocks"
"github.com/golang/mock/gom... | 1,014 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/ec2/ec2.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
ec2 "github.com/aws/aws-sdk-go/service/ec2"
gomock "github.com/golang/mock/gomock"
)
// Mockapi is a mock of api interface.
type Mockapi str... | 156 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package ecr provides a client to make API requests to Amazon EC2 Container Registry.
package ecr
import (
"encoding/base64"
"errors"
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aw... | 207 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package ecr
import (
"encoding/base64"
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ecr"
"github.com/aws/copilot-c... | 453 |
copilot-cli | aws | Go | // Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/aws/ecr/ecr.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
ecr "github.com/aws/aws-sdk-go/service/ecr"
gomock "github.com/golang/mock/gomock"
)
// Mockapi is a mock of api interface.
type Mockapi str... | 96 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package ecs provides a client to make API requests to Amazon Elastic Container Service.
package ecs
import (
"errors"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws... | 453 |
copilot-cli | aws | Go | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package ecs
import (
"errors"
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ecs"
"gi... | 1,322 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.