Skip to content

Latest commit

 

History

History

spicedb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kubernetes-models/spicedb

SpiceDB models.

Installation

Install with npm.

npm install @kubernetes-models/spicedb

Usage

import { SpiceDBCluster } from '@kubernetes-models/spicedb/authzed.com/v1alpha1/SpiceDBCluster';

// create the spiceDB cluster
const cluster = new SpiceDBCluster({
  metadata: {
    name: "dev"
  },
  spec: {
    channel: 'stable',
    version: 'v1.14.0',
    config: {
      datastoreEngine: 'memory',
    },
    secretName: 'dev-spicedb-secret',
  },
});

// Validate against JSON schema
cluster.validate();

License

MIT