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
eks-distro-build-tooling
aws
Go
// +build rpm_crashtraceback package runtime func init() { setTraceback("crash") }
8
eks-distro-build-tooling
aws
Go
// +build rpm_crashtraceback package runtime func init() { setTraceback("crash") }
8
eks-distro-build-tooling
aws
Go
// +build rpm_crashtraceback package runtime func init() { setTraceback("crash") }
8
eks-distro-build-tooling
aws
Go
// +build rpm_crashtraceback package runtime func init() { setTraceback("crash") }
8
eks-distro-build-tooling
aws
Go
//go:build rpm_crashtraceback // +build rpm_crashtraceback package SOURCES func init() { setTraceback("crash") }
9
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
24
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
35
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
62
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
53
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
25
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
92
eks-distro-build-tooling
aws
Go
//go:build !ignore_autogenerated // +build !ignore_autogenerated // Copyright 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. // You may obtain a copy of the License at // /...
292
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
98
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
145
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
78
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
99
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
79
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
96
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
236
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
60
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
58
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
111
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
122
eks-distro-build-tooling
aws
Go
package pkg import ( "fmt" "strings" distrov1alpha1 "github.com/aws/eks-distro-build-tooling/release/api/v1alpha1" ) func GetAssetUri(releaseManifestUrl, component, assetType, os, arch string) (string, error) { eksDRelease, err := getEksdRelease(releaseManifestUrl) if err != nil { return "", fmt.Errorf("error...
56
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
99
eks-distro-build-tooling
aws
Go
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
65
eks-distro-build-tooling
aws
Go
package main import ( "os" "os/signal" "syscall" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/cmd/consumerUpdater/cmd" ) func main() { sigChannel := make(chan os.Signal, 1) signal.Notify(sigChannel, syscall.SIGINT, syscall.SIGTERM) go func() { <-sigChannel os.Exit(-1) }() ...
22
eks-distro-build-tooling
aws
Go
package cmd import ( "context" "fmt" "log" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/aws/eks-distro-build-tooling/tools/pkg/logger" ) const ( allConsumersFlag = "allConsumers" eksDistroReleasesFlag = "eksDistroReleases" ) var ( rootCmd = &cobra.Command{ Use: "eksDistroCo...
56
eks-distro-build-tooling
aws
Go
package cmd import ( "fmt" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/consumerUpdater" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/eksDistroRelease" ) var ( updateConsumerCommand = &cobr...
45
eks-distro-build-tooling
aws
Go
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
163
eks-distro-build-tooling
aws
Go
package main import ( "os" "os/signal" "syscall" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/cmd/eksGoTool/cmd" ) func main() { sigChannel := make(chan os.Signal, 1) signal.Notify(sigChannel, syscall.SIGINT, syscall.SIGTERM) go func() { <-sigChannel os.Exit(-1) }() if cm...
23
eks-distro-build-tooling
aws
Go
package cmd import "github.com/spf13/cobra" var ( backportCmd = &cobra.Command{ Use: "backport", Short: "Commit backport automation", Long: "Tool for backporting commits and managing the backport process in version control", } ) func init() { rootCmd.AddCommand(backportCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "fmt" "log" "strings" "time" gogithub "github.com/google/go-github/v48/github" "github.com/spf13/cobra" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/constants" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" "g...
158
eks-distro-build-tooling
aws
Go
package cmd import ( "fmt" "log" "strings" "time" gogithub "github.com/google/go-github/v48/github" "github.com/spf13/cobra" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/constants" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" "g...
133
eks-distro-build-tooling
aws
Go
package cmd import ( "context" "fmt" "log" "path/filepath" "strings" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/aws/eks-distro-build-tooling/tools/pkg/logger" ) const ( repositoryOwnerFlag = "owner" repositoryFlag = "repository" githubEmailFlag = "githubEmail" commitBranchFla...
95
eks-distro-build-tooling
aws
Go
package constants const ( AwsOrgName = "aws" EksdBuildToolingRepoName = "eks-distro-build-tooling" EksDistroBotName = "eks-distro-bot" EksDistroPrBotName = "eks-distro-pr-bot" EksGoSupportedVersionsPath = "projects/golang/go/MAINTAINED_EOL_VERSIONS" GolangOrgName ...
15
eks-distro-build-tooling
aws
Go
package consumerUpdater import ( "bytes" "fmt" "os" "path/filepath" "regexp" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/eksDistroRelease" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/constants" "github.com/aws/eks-distro-build-tooling/...
209
eks-distro-build-tooling
aws
Go
package consumerUpdater import "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/eksDistroRelease" func NewFactory(releases []*eksDistroRelease.Release) *Factory { var consumers []Consumer consumers = append(consumers, NewBottleRocketUpdater(releases)) return &Factory{ consumerUpd...
21
eks-distro-build-tooling
aws
Go
package consumerUpdater type Consumer interface { Info() ConsumerInfo UpdateAll() error Updaters() []Updater NotifyAll() error Notifiers() []Notifier } type Notifier interface { Notify() error } type Updater interface { Update() error } type ConsumerInfo struct { Name string }
22
eks-distro-build-tooling
aws
Go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/consumerUpdater (interfaces: Consumer,Updater,Notifier) // Package mocks is a generated GoMock package. package mocks import ( reflect "reflect" consumerUpdater "github.com/aws/eks-...
180
eks-distro-build-tooling
aws
Go
package dependencyUpdater import ( "fmt" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/eksDistroRelease" ) const ( etcdName = "etcd" ) func NewEtcdDependencyUpdater(releases []*eksDistroRelease.Release) Dependency { return &EtcdUpdater{ updaters: etcdUpdaters(releases), et...
77
eks-distro-build-tooling
aws
Go
package dependencyUpdater import "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/eksDistroRelease" func NewFactory(releases []*eksDistroRelease.Release) *Factory { var dependencies []Dependency dependencies = append(dependencies, NewEtcdDependencyUpdater(releases)) return &Factory...
21
eks-distro-build-tooling
aws
Go
package dependencyUpdater type Dependency interface { Info() DependencyInfo UpdateAll() error Updaters() []Updater } type Updater interface { Update() error } type DependencyInfo struct { Name string }
16
eks-distro-build-tooling
aws
Go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/dependencyUpdater (interfaces: Dependency,Updater) // Package mocks is a generated GoMock package. package mocks import ( reflect "reflect" dependencyUpdater "github.com/aws/eks-dis...
115
eks-distro-build-tooling
aws
Go
package eksDistroRelease import ( "fmt" "io" "net/http" "sigs.k8s.io/yaml" "strconv" "strings" "github.com/aws/eks-distro-build-tooling/release/api/v1alpha1" "github.com/aws/eks-distro-build-tooling/tools/pkg/logger" ) const ( expectedStatusCode = 200 eksDistroReleaseManifestUriTemplate = "https://distro....
182
eks-distro-build-tooling
aws
Go
package eksDistroRelease_test import ( "testing" "github.com/aws/eks-distro-build-tooling/release/api/v1alpha1" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/eksDistroRelease" ) func TestIssueManagerCreateIssueSuccess(t *testing.T) { releaseObject, err := eksDistroRelease.NewE...
34
eks-distro-build-tooling
aws
Go
package externalplugin import ( "fmt" "sync" "github.com/sirupsen/logrus" "k8s.io/test-infra/prow/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/constants" ) func (s *Server) backportGolang(logger *logrus.Entry, requestor string, comment *github.IssueComment, issue *gi...
44
eks-distro-build-tooling
aws
Go
package externalplugin import ( "fmt" "regexp" "sync" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/constants" "github.com/sirupsen/logrus" "k8s.io/test-infra/prow/github" ) type backportRequest struct { project string org string repo string issNum int } // Follo...
78
eks-distro-build-tooling
aws
Go
package externalplugin import ( "fmt" "regexp" "strconv" "sync" "github.com/sirupsen/logrus" "k8s.io/test-infra/prow/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/constants" ) type golangPatchReleaseRequest struct { org string repo string issNum int } // Cu...
90
eks-distro-build-tooling
aws
Go
package externalplugin import ( "encoding/json" "fmt" "net/http" "regexp" "sync" "github.com/sirupsen/logrus" "k8s.io/test-infra/prow/config" "k8s.io/test-infra/prow/git/v2" "k8s.io/test-infra/prow/github" "k8s.io/test-infra/prow/pluginhelp" "k8s.io/test-infra/prow/plugins" "github.com/aws/eks-distro-bui...
217
eks-distro-build-tooling
aws
Go
package externalplugin import ( "fmt" "reflect" "sync" "testing" "github.com/sirupsen/logrus" "k8s.io/test-infra/prow/github" ) var commentFormat = "%s/%s#%d %s" type fghc struct { sync.Mutex iss *github.Issue isMember bool comments []string iComments []github.IssueComment iLabels []github.L...
235
eks-distro-build-tooling
aws
Go
package git import "fmt" type RepositoryDoesNotExistError struct { repository string owner string Err error } func (e *RepositoryDoesNotExistError) Error() string { return fmt.Sprintf("repository %s with owner %s not found: %s", e.repository, e.owner, e.Err) } type RepositoryIsEmptyError struct { R...
37
eks-distro-build-tooling
aws
Go
package git import "context" type Client interface { Add(filename string) error Remove(filename string) error Clone(ctx context.Context) error Commit(message string, opts ...CommitOpt) error Push(ctx context.Context) error Pull(ctx context.Context, branch string) error Init() error Branch(name string) error ...
16
eks-distro-build-tooling
aws
Go
package git import ( "context" "errors" "fmt" "os" "strings" "time" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/memfs" gogit "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" "github....
518
eks-distro-build-tooling
aws
Go
package git_test import ( "context" "fmt" "reflect" "testing" goGit "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" "github.com/go-git/go-git/v5/plumbing/transport" "github.com/go-git/go-git/v5/plumbing/t...
349
eks-distro-build-tooling
aws
Go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/git (interfaces: Client,GoGit) // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" git "github.com/aws/eks-distro-build-tooli...
486
eks-distro-build-tooling
aws
Go
package github import ( "context" "fmt" "github.com/google/go-github/v48/github" "golang.org/x/oauth2" ) type Client struct { Git GitClient Repositories RepoClient PullRequests PullRequestClient Issues IssueClient } type GitClient interface { GetRef(ctx context.Context, owner string, repo st...
57
eks-distro-build-tooling
aws
Go
package github const ( SecondaryRateLimitResponse = "You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later." SecondaryRateLimitStatusCode = 403 ResourceGoneStatusCode = 410 IssuesDisabledForRepoResponse = "Issues are disabled for thi...
10
eks-distro-build-tooling
aws
Go
package github_test import ( "fmt" "os" "testing" "github.com/stretchr/testify/assert" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" ) const ( TestPatValue = "abcdefghijklmnopqrstuvwxyz" ) func TestGithubPATAccessFailsUnset(t *testing.T) { err := os.Unsetenv(github...
45
eks-distro-build-tooling
aws
Go
package github import ( "fmt" "os" ) const ( PersonalAccessTokenEnvVar = "GITHUB_TOKEN" ) func GetGithubToken() (string, error){ t, ok := os.LookupEnv(PersonalAccessTokenEnvVar); if !ok { return "", fmt.Errorf("Github Token environment variable %s not set", PersonalAccessTokenEnvVar) } if t == "" { return ...
20
eks-distro-build-tooling
aws
Go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github (interfaces: GitClient,IssueClient,RepoClient,PullRequestClient) // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" g...
299
eks-distro-build-tooling
aws
Go
package issueManager import ( "context" "fmt" "io" "strings" "time" gogithub "github.com/google/go-github/v48/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/logger" "github.com/...
131
eks-distro-build-tooling
aws
Go
package issueManager_test import ( "context" "io" "net/http" "strings" "testing" "github.com/golang/mock/gomock" gogithub "github.com/google/go-github/v48/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" githubMocks "github.com/aws/eks-distro-build-tooling/too...
157
eks-distro-build-tooling
aws
Go
/* Package logger implements a simple way to init a global logger and access it through a logr.Logger interface. Message: All messages should start with a capital letter. Log level: The loggers only support verbosity levels (V-levels) instead of semantic levels. Level zero, the default, matters most. Increasing lev...
43
eks-distro-build-tooling
aws
Go
package logger import ( "fmt" "time" "github.com/go-logr/zapr" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) // InitZap creates a zap logger with the provided verbosity level // and sets it as the package logger. // 0 is the least verbose and 10 the most verbose. // The package logger can only be init once, so ...
54
eks-distro-build-tooling
aws
Go
package metrics import ( "fmt" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/cloudwatch" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/logger" ) func New(cloudwatchClient cloudwatch.CloudWatch) *MetricPublisher { return &MetricPublisher{ cloudwat...
42
eks-distro-build-tooling
aws
Go
package prmanager import ( "context" "errors" "fmt" "strings" "time" gogithub "github.com/google/go-github/v48/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/logger" "github.com...
248
eks-distro-build-tooling
aws
Go
package prmanager_test import ( "context" "errors" "net/http" "testing" "time" "github.com/golang/mock/gomock" gogithub "github.com/google/go-github/v48/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" githubMocks "github.com/aws/eks-distro-build-tooling/tools...
266
eks-distro-build-tooling
aws
Go
package repoManager import ( "context" "fmt" "io" "strings" gogithub "github.com/google/go-github/v48/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/logger" "github.com/aws/eks-d...
76
eks-distro-build-tooling
aws
Go
package repoManager_test import ( "context" "io" "net/http" "strings" "testing" "github.com/golang/mock/gomock" gogithub "github.com/google/go-github/v48/github" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/github" githubMocks "github.com/aws/eks-distro-build-tooling/tool...
115
eks-distro-build-tooling
aws
Go
package retrier import ( "math" "time" "github.com/aws/eks-distro-build-tooling/tools/eksDistroBuildToolingOpsTools/pkg/logger" ) type Retrier struct { retryPolicy RetryPolicy timeout time.Duration backoffFactor *float32 } type ( // RetryPolicy allows to customize the retrying logic. The boolean retr...
110
eks-distro-build-tooling
aws
Go
package version var gitVersion string type Info struct { GitVersion string } func Get() Info { return Info{ GitVersion: gitVersion, } }
13
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var cleanCmd = &cobra.Command{ Use: "clean", Short: "", Long: "", } func init() { rootCmd.AddCommand(cleanCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var cleandocsCommand = &cobra.Command{ Use: "docs", Short: "", Long: "", } func init() { cleanCmd.AddCommand(cleandocsCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var cleanInstallCmd = &cobra.Command{ Use: "install", Short: "", Long: "", } func init() { cleanCmd.AddCommand(cleanInstallCmd) }
16
eks-distro-build-tooling
aws
Go
1
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var cleanYumCmd = &cobra.Command{ Use: "yum", Short: "", Long: "", } func init() { cleanCmd.AddCommand(cleanYumCmd) }
16
eks-distro-build-tooling
aws
Go
1
eks-distro-build-tooling
aws
Go
1
eks-distro-build-tooling
aws
Go
1
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var installCmd = &cobra.Command{ Use: "install", Short: "", Long: "", } func init() { rootCmd.AddCommand(installCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var installBinaryCmd = &cobra.Command{ Use: "binary", Short: "", Long: "", } func init() { installCmd.AddCommand(installBinaryCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var installDepsForBinaryCmd = &cobra.Command{ Use: "deps", Short: "", Long: "", } func init() { installCmd.AddCommand(installDepsForBinaryCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var installRpmCmd = &cobra.Command{ Use: "rpm", Short: "", Long: "", } func init() { installCmd.AddCommand(installRpmCmd) }
16
eks-distro-build-tooling
aws
Go
package main import ( "os" "os/signal" "syscall" "github.com/aws/eks-distro-build-tooling/slim-jim/cmd/slim-jim/cmd" ) func main() { sigChannel := make(chan os.Signal, 1) signal.Notify(sigChannel, syscall.SIGINT, syscall.SIGTERM) go func() { <-sigChannel os.Exit(-1) }() if cmd.Execute() == nil { os.Ex...
23
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var removeCmd = &cobra.Command{ Use: "remove", Short: "", Long: "", } func init() { rootCmd.AddCommand(removeCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var removePackageCmd = &cobra.Command{ Use: "package", Short: "", Long: "", } func init() { removeCmd.AddCommand(removePackageCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "context" "fmt" "log" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/aws/eks-distro-build-tooling/tools/minimalImageBuildTool/pkg/logger" ) var rootCmd = &cobra.Command{ Use: "minimal-image-build", Short: "Minimial Image CLI", Long: `U...
45
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var validateCmd = &cobra.Command{ Use: "validate", Short: "Validate Libraries and Symlinks", Long: "", } func init() { rootCmd.AddCommand(validateCmd) }
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var validateLibrariesCmd = &cobra.Command{ Use: "libraries", Short: "Validate all executables and libraries have all dependencies", Long: "Validate all executables and libraries have all dependencies", } func init() { validateCmd.AddCommand(validateLibrariesCmd...
16
eks-distro-build-tooling
aws
Go
package cmd import ( "github.com/spf13/cobra" ) var validateSymlinksCmd = &cobra.Command{ Use: "symlinks", Short: "Validate all symlinks", Long: "Validate all symlinks", } func init() { validateCmd.AddCommand(validateSymlinksCmd) }
16
eks-distro-build-tooling
aws
Go
1
eks-distro-build-tooling
aws
Go
1