github
No long description provided.
Installation
dagger install github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@v0.1.0Entrypoint
Return Type
Github !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| url | String | - | The url for the Github repo to fetch. Only supports git cloning via https! |
| branch | String | "main" | The branch of the Github repo to fetch. |
Example
dagger -m github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@04f4a11802b3766cbf69a81489ead485697eb1e6 call \
func (m *MyModule) Example() *dagger.Github {
return dag.
Github()
}@function
def example() -> dagger.Github:
return (
dag.github()
)@func()
example(): Github {
return dag
.github()
}Types
Github 🔗
url() 🔗
Return Type
String ! Example
dagger -m github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@04f4a11802b3766cbf69a81489ead485697eb1e6 call \
urlfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Github().
Url(ctx)
}@function
async def example() -> str:
return await (
dag.github()
.url()
)@func()
async example(): Promise<string> {
return dag
.github()
.url()
}branch() 🔗
Return Type
String ! Example
dagger -m github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@04f4a11802b3766cbf69a81489ead485697eb1e6 call \
branchfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Github().
Branch(ctx)
}@function
async def example() -> str:
return await (
dag.github()
.branch()
)@func()
async example(): Promise<string> {
return dag
.github()
.branch()
}withUrl() 🔗
Return Type
Github !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| addr | String ! | - | No description provided |
Example
dagger -m github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@04f4a11802b3766cbf69a81489ead485697eb1e6 call \
with-url --addr stringfunc (m *MyModule) Example(addr string) *dagger.Github {
return dag.
Github().
WithUrl(addr)
}@function
def example(addr: str) -> dagger.Github:
return (
dag.github()
.with_url(addr)
)@func()
example(addr: string): Github {
return dag
.github()
.withUrl(addr)
}withBranch() 🔗
Return Type
Github !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| branch | String ! | - | No description provided |
Example
dagger -m github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@04f4a11802b3766cbf69a81489ead485697eb1e6 call \
with-branch --branch stringfunc (m *MyModule) Example(branch string) *dagger.Github {
return dag.
Github().
WithBranch(branch)
}@function
def example(branch: str) -> dagger.Github:
return (
dag.github()
.with_branch(branch)
)@func()
example(branch: string): Github {
return dag
.github()
.withBranch(branch)
}container() 🔗
very opinionated regarding where repo is stored, if users are allowed to choose path opens potential for malicious input
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret ! | - | No description provided |
Example
dagger -m github.com/Clarity-Innovation-Technology-Inc/daggerverse/github@04f4a11802b3766cbf69a81489ead485697eb1e6 call \
container --token env:MYSECRETfunc (m *MyModule) Example(token *dagger.Secret) *dagger.Container {
return dag.
Github().
Container(token)
}@function
def example(token: dagger.Secret) -> dagger.Container:
return (
dag.github()
.container(token)
)@func()
example(token: Secret): Container {
return dag
.github()
.container(token)
}