Beispiel #1
0
 /**
  * Adds a username-password credential to use to push/pull the image. This is a shorthand for
  * {@code addCredentialRetriever(() => Optional.of(Credential.basic(username, password)))}.
  *
  * @param username the username
  * @param password the password
  * @return this
  */
 public RegistryImage AddCredential(string username, string password)
 {
     AddCredentialRetriever(() => Maybe.Of(Credential.From(username, password)));
     return(this);
 }
Beispiel #2
0
 public void AddCredential(string username, string password)
 {
     this.Credential = Credential.From(username, password);
 }