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 ¶
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 ¶
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.