Skip to main content
Home

@gin/core@0.3.5
Built and signed on GitHub Actions

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
70%
Published
3 weeks ago (0.3.5)

This package provides the core functionality of the Gin framework, a type safe template engine for Kubernetes.

Getting started

The following is a basic example that makes use of a reusable component from the Gin standard library to deploy a web application. Running this code will produce a corresponding Deployment, Service, and Ingress resource.

// webapp.ts
import { Gin } from "jsr:@gin/core";
import { WebApp } from "jsr:@gin/webapp-v1alpha1";

new Gin().run((gin) => {
  gin.emit<WebApp>({
    apiVersion: "webapp.gin.jsr.io/v1alpha1",
    kind: "WebApp",
    metadata: {
      name: "example-webapp",
      namespace: "default",
    },
    spec: {
      image: "nginxinc/nginx-unprivileged:stable-alpine",
      replicas: 3,
      host: "example.com",
      clusterIssuer: "letsencrypt-prod",
    },
  });
});

You can add the -m option to keep Gin metadata attached to the Kubernetes resources in tact, which is useful for debugging when you need to understand how a resource in the final output was generated. Also add the -p option to emit Gin custom resources as well.

Check out the Gin packages on JSR.io.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@gin/core

Import symbol

import * as core from "@gin/core";
or

Import directly with a jsr specifier

import * as core from "jsr:@gin/core";

Add Package

pnpm i jsr:@gin/core
or (using pnpm 10.8 or older)
pnpm dlx jsr add @gin/core

Import symbol

import * as core from "@gin/core";

Add Package

yarn add jsr:@gin/core
or (using Yarn 4.8 or older)
yarn dlx jsr add @gin/core

Import symbol

import * as core from "@gin/core";

Add Package

vlt install jsr:@gin/core

Import symbol

import * as core from "@gin/core";

Add Package

npx jsr add @gin/core

Import symbol

import * as core from "@gin/core";

Add Package

bunx jsr add @gin/core

Import symbol

import * as core from "@gin/core";