github
Get GitHub command-line interface.Installation
dagger install github.com/camptocamp/daggerverse/github@v0.1.1
Entrypoint
Return Type
Github !
Arguments
Name | Type | Description |
---|---|---|
version | String ! | GitHub version to get |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string
func (m *myModule) example(version string) *Github {
return dag.
Github(version)
}
@function
def example(version: str) -> dag.Github:
return (
dag.github(version)
)
@func()
example(version: string): Github {
return dag
.github(version)
}
Types
Github 🔗
GitHub
binary() 🔗
Get GitHub executable binary
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get GitHub for |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string binary
func (m *myModule) example(version string) *File {
return dag.
Github(version).
Binary()
}
@function
def example(version: str) -> dagger.File:
return (
dag.github(version)
.binary()
)
@func()
example(version: string): File {
return dag
.github(version)
.binary()
}
overlay() 🔗
Get a root filesystem overlay with GitHub
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get GitHub for |
prefix | String | - | Filesystem prefix under which to install GitHub |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string overlay
func (m *myModule) example(version string) *Directory {
return dag.
Github(version).
Overlay()
}
@function
def example(version: str) -> dagger.Directory:
return (
dag.github(version)
.overlay()
)
@func()
example(version: string): Directory {
return dag
.github(version)
.overlay()
}
installation() 🔗
Install GitHub in a container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install GitHub |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string installation --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container {
return dag.
Github(version).
Installation(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
return (
dag.github(version)
.installation(container)
)
@func()
example(version: string, container: Container): Container {
return dag
.github(version)
.installation(container)
}
container() 🔗
Get a GitHub container from a base container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Base container |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string container --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container {
return dag.
Github(version).
Container(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
return (
dag.github(version)
.container(container)
)
@func()
example(version: string, container: Container): Container {
return dag
.github(version)
.container(container)
}
redhatContainer() 🔗
Get a Red Hat Universal Base Image container with GitHub
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string redhat-container
func (m *myModule) example(version string) *Container {
return dag.
Github(version).
RedhatContainer()
}
@function
def example(version: str) -> dagger.Container:
return (
dag.github(version)
.redhat_container()
)
@func()
example(version: string): Container {
return dag
.github(version)
.redhatContainer()
}
redhatMinimalContainer() 🔗
Get a Red Hat Minimal Universal Base Image container with GitHub
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string redhat-minimal-container
func (m *myModule) example(version string) *Container {
return dag.
Github(version).
RedhatMinimalContainer()
}
@function
def example(version: str) -> dagger.Container:
return (
dag.github(version)
.redhat_minimal_container()
)
@func()
example(version: string): Container {
return dag
.github(version)
.redhatMinimalContainer()
}
redhatMicroContainer() 🔗
Get a Red Hat Micro Universal Base Image container with GitHub
Features requiring Git will not work.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/github@7e39d856e1626d94a012f2f1b05e238beeba1004 call \
--version string redhat-micro-container
func (m *myModule) example(version string) *Container {
return dag.
Github(version).
RedhatMicroContainer()
}
@function
def example(version: str) -> dagger.Container:
return (
dag.github(version)
.redhat_micro_container()
)
@func()
example(version: string): Container {
return dag
.github(version)
.redhatMicroContainer()
}