Documentation ¶
Index ¶
Constants ¶
View Source
const (
// InvalidCredsError is the error string returned when using MakeSecretWithInvalidCreds().
InvalidCredsError = "unexpected end of JSON input"
)
Variables ¶
View Source
var ( // Secret is a reference to the Secret created by either MakeSecretWithCreds() and // MakeSecretWithInvalidCreds(). Secret = &v1.ObjectReference{ APIVersion: "v1", Kind: "Secret", Namespace: "secret-namespace", Name: "secret-name", } // SecretKey is the key in the Secret data that contains the JSON credential token. SecretKey = "key.json" )
Functions ¶
func MakeSecretWithCreds ¶
MakeSecretWithCreds makes a Secret that can successfully be passed through GetCredentials. Only tests should be calling this.
func MakeSecretWithInvalidCreds ¶
MakeSecretWithInvalidCreds makes a Secret that fails to pass GetCredential. Only tests should be calling this.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.