Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for encodeDockerConfigFieldAuth (0.35 sec)

  1. pkg/credentialprovider/config.go

    func (ident DockerConfigEntry) MarshalJSON() ([]byte, error) {
    	toEncode := dockerConfigEntryWithAuth{ident.Username, ident.Password, ident.Email, ""}
    	toEncode.Auth = encodeDockerConfigFieldAuth(ident.Username, ident.Password)
    
    	return json.Marshal(toEncode)
    }
    
    // decodeDockerConfigFieldAuth deserializes the "auth" field from dockercfg into a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. pkg/credentialprovider/config_test.go

    		{
    			input:    base64.RawStdEncoding.EncodeToString([]byte("foo:bar")),
    			username: "foo",
    			password: "bar",
    		},
    
    		// the input is encoded with encodeDockerConfigFieldAuth (standard encoding)
    		{
    			input:    encodeDockerConfigFieldAuth("foo", "bar"),
    			username: "foo",
    			password: "bar",
    		},
    
    		// good base64 data, but no colon separating username & password
    		{
    			input: "cGFudHM=",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 10.7K bytes
    - Viewed (0)
Back to top