Help us shape the future of Go! Take the 2026 Go Developer Survey

nocredentials

package
v8.149.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package nocredentials runs an engine package's tests with no credential store a laptop has: an engine acts only with the clients its caller builds from tokens, so every case passes when each store fails on any access.

Index

Constants

This section is empty.

Variables

View Source
var Readers = []string{
	"github.com/giantswarm/devctl/v8/pkg/authstore",
	"github.com/giantswarm/devctl/v8/internal/laptop",
	"github.com/zalando/go-keyring",
	"github.com/docker/cli/cli/config",
	"k8s.io/client-go/tools/clientcmd",
}

Readers are the packages that read a credential store or a kubeconfig; an engine package imports none of them.

Functions

func Main

func Main(m *testing.M)

Main is a TestMain: it checks that the package in the working directory imports none of Readers, makes every credential store fail on any access, and runs the tests. devctl's keyring file, the docker configuration and KUBECONFIG sit below a regular file, so any read, write or lock of them fails; the GitHub token variables are unset.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL