harbor-satellite
No long description provided.
Installation
dagger install github.com/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177Entrypoint
Return Type
HarborSatellite Example
dagger -m github.com/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
func (m *MyModule) Example() *dagger.HarborSatellite {
return dag.
HarborSatellite()
}@function
def example() -> dagger.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/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
attach --container IMAGE:TAG --docker-version stringfunc (m *MyModule) Example(container *dagger.Container, dockerVersion string) *dagger.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/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
servicefunc (m *MyModule) Example() *dagger.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/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
execute-tests-for-ground-control --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.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/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
build --source DIR_PATH --name stringfunc (m *MyModule) Example(source *dagger.Directory, name string) *dagger.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/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
release --directory DIR_PATH --token string --name stringfunc (m *MyModule) Example(ctx context.Context, directory *dagger.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/Mehul-Kumar-27/harbor-satellite@22d3e842543a44d9abd4e644d15c32f472a8c177 call \
execute-tests-for-satellite --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.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)
}