Dagger
Search

github

Get GitHub command-line interface.

Installation

dagger install github.com/camptocamp/daggerverse/github@v0.1.2

Entrypoint

Return Type
Github !
Arguments
NameTypeDescription
versionString !GitHub version to get
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
platformScalar -Platform to get GitHub for
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
platformScalar -Platform to get GitHub for
prefixString -Filesystem prefix under which to install GitHub
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
containerContainer !-Container in which to install GitHub
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
containerContainer !-Base container
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/github@0a02fb5dfdbc8fefc0daff7f401aa6fe3b24203b 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()
}