Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/cli/src/utils/mod.ts>API

Netzo - roll out internal tools faster
Go to Latest
class API
import { API } from "https://deno.land/x/netzo@v0.1.85/cli/src/utils/mod.ts";

Constructors

new
API(authorization: string, endpoint: string)

Methods

getDeployments(projectId: string): Promise<Deployment[] | null>
getLogs(projectId: string, deploymentId: string): AsyncIterable<Logs>
getProject(id: string): Promise<Project | null>
getProjectByUid(projectUid: string): Promise<Project | null>
getTemplateByUid(templateUid: string): Promise<Template | null>
gitHubActionsDeploy(
projectId: string,
request: GitHubActionsDeploymentRequest,
files: Uint8Array[],
): AsyncIterable<DeploymentProgress>
projectNegotiateAssets(id: string, manifest: { entries: Record<string, ManifestEntry>; }): Promise<string[]>
pushDeploy(
projectId: string,
request: PushDeploymentRequest,
files: Uint8Array[],
): AsyncIterable<DeploymentProgress>
pushDeployJson(projectId: string, body: Pick<Project, "deploymentId" | "configuration" | "fs">): AsyncIterable<DeploymentProgress>

Static Methods

fromApiKey(apiKey: string)