vercel
Vercel module provides a simple way to deploy, list and remove deployments from vercelInstallation
dagger install github.com/slumbering/daggerverse/vercel@4c03c6d06eb118641168dcc3c6a9b991d935f411
Entrypoint
Return Type
Options !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
currentWorkdir | Directory ! | - | No description provided |
token | Secret ! | - | No description provided |
deploymentUrl | String | - | No description provided |
Example
Function Options.Constructor is not accessible from the vercel module
Function Options.Constructor is not accessible from the vercel module
Function Options.Constructor is not accessible from the vercel module
Function Options.Constructor is not accessible from the vercel module
Entrypoint
Return Type
Vercel
Example
dagger -m github.com/slumbering/daggerverse/vercel@4c03c6d06eb118641168dcc3c6a9b991d935f411 call \
func (m *myModule) example() *Vercel {
return dag.
Vercel()
}
@function
def example() -> dag.Vercel:
return (
dag.vercel()
)
@func()
example(): Vercel {
return dag
.vercel()
}
Types
Options 🔗
currentWorkdir() 🔗
Return Type
Directory !
Example
Function VercelOptions.currentWorkdir is not accessible from the vercel module
Function VercelOptions.currentWorkdir is not accessible from the vercel module
Function VercelOptions.currentWorkdir is not accessible from the vercel module
Function VercelOptions.currentWorkdir is not accessible from the vercel module
token() 🔗
Return Type
Secret !
Example
Function VercelOptions.token is not accessible from the vercel module
Function VercelOptions.token is not accessible from the vercel module
Function VercelOptions.token is not accessible from the vercel module
Function VercelOptions.token is not accessible from the vercel module
deploymentUrl() 🔗
Return Type
String !
Example
Function VercelOptions.deploymentUrl is not accessible from the vercel module
Function VercelOptions.deploymentUrl is not accessible from the vercel module
Function VercelOptions.deploymentUrl is not accessible from the vercel module
Function VercelOptions.deploymentUrl is not accessible from the vercel module
base() 🔗
Return Type
Container !
Example
Function VercelOptions.base is not accessible from the vercel module
Function VercelOptions.base is not accessible from the vercel module
Function VercelOptions.base is not accessible from the vercel module
Function VercelOptions.base is not accessible from the vercel module
Vercel 🔗
vercelDeploy() 🔗
Deploy the current directory to vercel
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
currentWorkdir | Directory ! | - | No description provided |
token | Secret ! | - | No description provided |
Example
dagger -m github.com/slumbering/daggerverse/vercel@4c03c6d06eb118641168dcc3c6a9b991d935f411 call \
vercel-deploy --current-workdir DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, currentWorkdir *Directory, token *Secret) string {
return dag.
Vercel().
VercelDeploy(ctx, currentWorkdir, token)
}
@function
async def example(current_workdir: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.vercel()
.vercel_deploy(current_workdir, token)
)
@func()
async example(currentWorkdir: Directory, token: Secret): Promise<string> {
return dag
.vercel()
.vercelDeploy(currentWorkdir, token)
}
vercelList() 🔗
List all deployments in vercel
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
currentWorkdir | Directory ! | - | No description provided |
token | Secret ! | - | No description provided |
Example
dagger -m github.com/slumbering/daggerverse/vercel@4c03c6d06eb118641168dcc3c6a9b991d935f411 call \
vercel-list --current-workdir DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, currentWorkdir *Directory, token *Secret) string {
return dag.
Vercel().
VercelList(ctx, currentWorkdir, token)
}
@function
async def example(current_workdir: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.vercel()
.vercel_list(current_workdir, token)
)
@func()
async example(currentWorkdir: Directory, token: Secret): Promise<string> {
return dag
.vercel()
.vercelList(currentWorkdir, token)
}
vercelRemove() 🔗
Remove a deployment from vercel
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
currentWorkdir | Directory ! | - | No description provided |
deploymentUrl | String ! | - | No description provided |
token | Secret ! | - | No description provided |
Example
dagger -m github.com/slumbering/daggerverse/vercel@4c03c6d06eb118641168dcc3c6a9b991d935f411 call \
vercel-remove --current-workdir DIR_PATH --deployment-url string --token env:MYSECRET
func (m *myModule) example(ctx context.Context, currentWorkdir *Directory, deploymentUrl string, token *Secret) string {
return dag.
Vercel().
VercelRemove(ctx, currentWorkdir, deploymentUrl, token)
}
@function
async def example(current_workdir: dagger.Directory, deployment_url: str, token: dagger.Secret) -> str:
return await (
dag.vercel()
.vercel_remove(current_workdir, deployment_url, token)
)
@func()
async example(currentWorkdir: Directory, deploymentUrl: string, token: Secret): Promise<string> {
return dag
.vercel()
.vercelRemove(currentWorkdir, deploymentUrl, token)
}