private-git
A module to help you easily perform clone, push, and pull operations on your private git.Installation
dagger install github.com/seungyeop-lee/daggerverse/private-git@v0.2.1Entrypoint
Return Type
PrivateGit !Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
func (m *MyModule) Example() *dagger.PrivateGit  {
	return dag.
			PrivateGit()
}@function
def example() -> dagger.PrivateGit:
	return (
		dag.private_git()
	)@func()
example(): PrivateGit {
	return dag
		.privateGit()
}Types
PrivateGit 🔗
PrivateGit dagger module
repo() 🔗
Set up an existing repository folder.
Return Type
PrivateGitRepo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| dir | Directory ! | - | No description provided | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 repo --dir DIR_PATHfunc (m *MyModule) Example(dir *dagger.Directory) *dagger.PrivateGitRepo  {
	return dag.
			PrivateGit().
			Repo(dir)
}@function
def example(dir: dagger.Directory) -> dagger.PrivateGitRepo:
	return (
		dag.private_git()
		.repo(dir)
	)@func()
example(dir: Directory): PrivateGitRepo {
	return dag
		.privateGit()
		.repo(dir)
}withSshKey() 🔗
Set the ssh key.
Note: Recommend using RSA-formatted private key files. Cannot use OPENSSH-formatted private key files. https://github.com/dagger/dagger/issues/7220
Return Type
PrivateGitSsh !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| sshKey | Secret ! | - | ssk key file | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-ssh-key --ssh-key env:MYSECRETfunc (m *MyModule) Example(sshKey *dagger.Secret) *dagger.PrivateGitSsh  {
	return dag.
			PrivateGit().
			WithSshKey(sshKey)
}@function
def example(ssh_key: dagger.Secret) -> dagger.PrivateGitSsh:
	return (
		dag.private_git()
		.with_ssh_key(ssh_key)
	)@func()
example(sshKey: Secret): PrivateGitSsh {
	return dag
		.privateGit()
		.withSshKey(sshKey)
}withUserPassword() 🔗
Set up user and password information.
Return Type
PrivateGitHttp !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| username | String ! | - | No description provided | 
| password | Secret ! | - | No description provided | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRETfunc (m *MyModule) Example(username string, password *dagger.Secret) *dagger.PrivateGitHttp  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password)
}@function
def example(username: str, password: dagger.Secret) -> dagger.PrivateGitHttp:
	return (
		dag.private_git()
		.with_user_password(username, password)
	)@func()
example(username: string, password: Secret): PrivateGitHttp {
	return dag
		.privateGit()
		.withUserPassword(username, password)
}PrivateGitRepo 🔗
Working with private Git repositories
directory() 🔗
Returns the repository.
Return Type
Directory !Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRET \
 with-repo-url --web-url string \
 clone \
 directoryfunc (m *MyModule) Example(username string, password *dagger.Secret, webUrl string) *dagger.Directory  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password).
			WithRepoUrl(webUrl).
			Clone().
			Directory()
}@function
def example(username: str, password: dagger.Secret, web_url: str) -> dagger.Directory:
	return (
		dag.private_git()
		.with_user_password(username, password)
		.with_repo_url(web_url)
		.clone()
		.directory()
	)@func()
example(username: string, password: Secret, webUrl: string): Directory {
	return dag
		.privateGit()
		.withUserPassword(username, password)
		.withRepoUrl(webUrl)
		.clone()
		.directory()
}setConfig() 🔗
Set the user’s name and email.
Return Type
PrivateGitRepo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| userName | String ! | - | No description provided | 
| userEmail | String ! | - | No description provided | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRET \
 with-repo-url --web-url string \
 clone \
 set-config --user-name string --user-email stringfunc (m *MyModule) Example(username string, password *dagger.Secret, webUrl string, userName string, userEmail string) *dagger.PrivateGitRepo  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password).
			WithRepoUrl(webUrl).
			Clone().
			SetConfig(userName, userEmail)
}@function
def example(username: str, password: dagger.Secret, web_url: str, user_name: str, user_email: str) -> dagger.PrivateGitRepo:
	return (
		dag.private_git()
		.with_user_password(username, password)
		.with_repo_url(web_url)
		.clone()
		.set_config(user_name, user_email)
	)@func()
example(username: string, password: Secret, webUrl: string, userName: string, userEmail: string): PrivateGitRepo {
	return dag
		.privateGit()
		.withUserPassword(username, password)
		.withRepoUrl(webUrl)
		.clone()
		.setConfig(userName, userEmail)
}push() 🔗
Push the repository.
Return Type
Container !Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRET \
 with-repo-url --web-url string \
 clone \
 pushfunc (m *MyModule) Example(username string, password *dagger.Secret, webUrl string) *dagger.Container  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password).
			WithRepoUrl(webUrl).
			Clone().
			Push()
}@function
def example(username: str, password: dagger.Secret, web_url: str) -> dagger.Container:
	return (
		dag.private_git()
		.with_user_password(username, password)
		.with_repo_url(web_url)
		.clone()
		.push()
	)@func()
example(username: string, password: Secret, webUrl: string): Container {
	return dag
		.privateGit()
		.withUserPassword(username, password)
		.withRepoUrl(webUrl)
		.clone()
		.push()
}pull() 🔗
Pull the repository.
Return Type
Directory !Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRET \
 with-repo-url --web-url string \
 clone \
 pullfunc (m *MyModule) Example(username string, password *dagger.Secret, webUrl string) *dagger.Directory  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password).
			WithRepoUrl(webUrl).
			Clone().
			Pull()
}@function
def example(username: str, password: dagger.Secret, web_url: str) -> dagger.Directory:
	return (
		dag.private_git()
		.with_user_password(username, password)
		.with_repo_url(web_url)
		.clone()
		.pull()
	)@func()
example(username: string, password: Secret, webUrl: string): Directory {
	return dag
		.privateGit()
		.withUserPassword(username, password)
		.withRepoUrl(webUrl)
		.clone()
		.pull()
}PrivateGitSsh 🔗
PrivateGit with SSH settings
withRepoUrl() 🔗
Set the SSH URL of the target repository.
Return Type
PrivateGitRepoUrl !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| sshUrl | String ! | - | No description provided | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-ssh-key --ssh-key env:MYSECRET \
 with-repo-url --ssh-url stringfunc (m *MyModule) Example(sshKey *dagger.Secret, sshUrl string) *dagger.PrivateGitRepoUrl  {
	return dag.
			PrivateGit().
			WithSshKey(sshKey).
			WithRepoUrl(sshUrl)
}@function
def example(ssh_key: dagger.Secret, ssh_url: str) -> dagger.PrivateGitRepoUrl:
	return (
		dag.private_git()
		.with_ssh_key(ssh_key)
		.with_repo_url(ssh_url)
	)@func()
example(sshKey: Secret, sshUrl: string): PrivateGitRepoUrl {
	return dag
		.privateGit()
		.withSshKey(sshKey)
		.withRepoUrl(sshUrl)
}repo() 🔗
Set up an existing repository folder.
Return Type
PrivateGitRepo !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| dir | Directory ! | - | No description provided | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-ssh-key --ssh-key env:MYSECRET \
 repo --dir DIR_PATHfunc (m *MyModule) Example(sshKey *dagger.Secret, dir *dagger.Directory) *dagger.PrivateGitRepo  {
	return dag.
			PrivateGit().
			WithSshKey(sshKey).
			Repo(dir)
}@function
def example(ssh_key: dagger.Secret, dir: dagger.Directory) -> dagger.PrivateGitRepo:
	return (
		dag.private_git()
		.with_ssh_key(ssh_key)
		.repo(dir)
	)@func()
example(sshKey: Secret, dir: Directory): PrivateGitRepo {
	return dag
		.privateGit()
		.withSshKey(sshKey)
		.repo(dir)
}PrivateGitHttp 🔗
PrivateGit with user and password information added
withRepoUrl() 🔗
Set the Web URL of the target repository.
Return Type
PrivateGitRepoUrl !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| webUrl | String ! | - | No description provided | 
Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRET \
 with-repo-url --web-url stringfunc (m *MyModule) Example(username string, password *dagger.Secret, webUrl string) *dagger.PrivateGitRepoUrl  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password).
			WithRepoUrl(webUrl)
}@function
def example(username: str, password: dagger.Secret, web_url: str) -> dagger.PrivateGitRepoUrl:
	return (
		dag.private_git()
		.with_user_password(username, password)
		.with_repo_url(web_url)
	)@func()
example(username: string, password: Secret, webUrl: string): PrivateGitRepoUrl {
	return dag
		.privateGit()
		.withUserPassword(username, password)
		.withRepoUrl(webUrl)
}PrivateGitRepoUrl 🔗
PrivateGit with target Repositorydml URL information added
clone() 🔗
Clone the Git repository.
Return Type
PrivateGitRepo !Example
dagger -m github.com/seungyeop-lee/daggerverse/private-git@78ef19f96d30a4c71490f87d07c317cd9a2c05cd call \
 with-user-password --username string --password env:MYSECRET \
 with-repo-url --web-url string \
 clonefunc (m *MyModule) Example(username string, password *dagger.Secret, webUrl string) *dagger.PrivateGitRepo  {
	return dag.
			PrivateGit().
			WithUserPassword(username, password).
			WithRepoUrl(webUrl).
			Clone()
}@function
def example(username: str, password: dagger.Secret, web_url: str) -> dagger.PrivateGitRepo:
	return (
		dag.private_git()
		.with_user_password(username, password)
		.with_repo_url(web_url)
		.clone()
	)@func()
example(username: string, password: Secret, webUrl: string): PrivateGitRepo {
	return dag
		.privateGit()
		.withUserPassword(username, password)
		.withRepoUrl(webUrl)
		.clone()
}