MCPcopy Index your code
hub / github.com/devspace-sh/devspace / newDockerConfigEntry

Function newDockerConfigEntry

pkg/devspace/pullsecrets/registry.go:172–177  ·  view source on GitHub ↗
(authToken, email string)

Source from the content-addressed store, hash-verified

170}
171
172func newDockerConfigEntry(authToken, email string) DockerConfigEntry {
173 return DockerConfigEntry{
174 Auth: base64.StdEncoding.EncodeToString([]byte(authToken)),
175 Email: email,
176 }
177}
178
179func hasChanges(existing, updated DockerConfigEntry) bool {
180 return existing.Auth != updated.Auth || existing.Email != updated.Email

Callers 2

CreatePullSecretMethod · 0.85
newPullSecretFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected