@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
32 lines • 830 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
/**
* The response from the helm repo commands.
*/
export class Repository {
name;
url;
/**
* Constructs a new Repository.
*
* @param name the name of the repository.
* @param url the url of the repository.
* @throws Error if any of the arguments are null or blank.
*/
constructor(name, url) {
this.name = name;
this.url = url;
if (!name) {
throw new Error('name must not be null');
}
if (!url) {
throw new Error('url must not be null');
}
if (!name.trim()) {
throw new Error('name must not be blank');
}
if (!url.trim()) {
throw new Error('url must not be blank');
}
}
}
//# sourceMappingURL=repository.js.map