harbor-satellite
No long description provided.
Installation
dagger install github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb
Entrypoint
Return Type
HarborSatellite
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
func (m *myModule) example() *HarborSatellite {
return dag.
HarborSatellite()
}
@function
def example() -> dag.HarborSatellite:
return (
dag.harbor_satellite()
)
@func()
example(): HarborSatellite {
return dag
.harborSatellite()
}
Types
HarborSatellite 🔗
attach() 🔗
Attach would attach a docker as a service to the container provided.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
dockerVersion | String ! | - | No description provided |
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
attach --container IMAGE:TAG --docker-version string
func (m *myModule) example(container *Container, dockerVersion string) *Container {
return dag.
HarborSatellite().
Attach(container, dockerVersion)
}
@function
def example(container: dagger.Container, docker_version: str) -> dagger.Container:
return (
dag.harbor_satellite()
.attach(container, docker_version)
)
@func()
example(container: Container, dockerVersion: string): Container {
return dag
.harborSatellite()
.attach(container, dockerVersion)
}
service() 🔗
Get a Service container running dockerd
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dockerVersion | String | "24.0" | No description provided |
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
service
func (m *myModule) example() *Service {
return dag.
HarborSatellite().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.harbor_satellite()
.service()
)
@func()
example(): Service {
return dag
.harborSatellite()
.service()
}
executeTestsForGroundControl() 🔗
Would execute the tests for the ground control. Source should be the path to the path to main.go file.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
execute-tests-for-ground-control --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
HarborSatellite().
ExecuteTestsForGroundControl(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.harbor_satellite()
.execute_tests_for_ground_control(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.harborSatellite()
.executeTestsForGroundControl(source)
}
build() 🔗
Build function would start the build process for the name provided. Source should be the path to the main.go file.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
name | String ! | - | No description provided |
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
build --source DIR_PATH --name string
func (m *myModule) example(source *Directory, name string) *Directory {
return dag.
HarborSatellite().
Build(source, name)
}
@function
def example(source: dagger.Directory, name: str) -> dagger.Directory:
return (
dag.harbor_satellite()
.build(source, name)
)
@func()
example(source: Directory, name: string): Directory {
return dag
.harborSatellite()
.build(source, name)
}
release() 🔗
Release function would release the build to the github with the tags provided. Directory should be “.” for both the satellite and the ground control.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directory | Directory ! | - | No description provided |
token | String ! | - | No description provided |
name | String ! | - | No description provided |
releaseType | String | "patch" | No description provided |
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
release --directory DIR_PATH --token string --name string
func (m *myModule) example(ctx context.Context, directory *Directory, token string, name string) string {
return dag.
HarborSatellite().
Release(ctx, directory, token, name)
}
@function
async def example(directory: dagger.Directory, token: str, name: str) -> str:
return await (
dag.harbor_satellite()
.release(directory, token, name)
)
@func()
async example(directory: Directory, token: string, name: string): Promise<string> {
return dag
.harborSatellite()
.release(directory, token, name)
}
executeTestsForSatellite() 🔗
Would execute the tests for the satellite. Source should be the path to the path to main.go file.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/container-registry/harbor-satellite@02ba3746c85f387b041e07be0aa66b59471635bb call \
execute-tests-for-satellite --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
HarborSatellite().
ExecuteTestsForSatellite(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.harbor_satellite()
.execute_tests_for_satellite(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.harborSatellite()
.executeTestsForSatellite(source)
}