Skip to content

Commit

Permalink
SK-1628: add scaffolding for v2 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
“amith-skyflow” committed Sep 4, 2024
1 parent e82e09e commit cbcda7d
Show file tree
Hide file tree
Showing 58 changed files with 473 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions v2/error/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//imports

class SkyflowError {

constructor() {

}

}
27 changes: 27 additions & 0 deletions v2/management/controller/policy/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//imports

class Policy {

constructor() {

}

public createPolicy() {

}

public update() {

}

public delete() {

}

public get() {

}

}

export default Policy;
27 changes: 27 additions & 0 deletions v2/management/controller/role/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//imports

class Role {

constructor() {

}

public createRole() {

}

public update() {

}

public delete() {

}

public get() {

}

}

export default Role;
27 changes: 27 additions & 0 deletions v2/management/controller/vault/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//imports

class Vault {

constructor() {

}

public createVault() {

}

public update() {

}

public delete() {

}

public get() {

}

}

export default Vault;
15 changes: 15 additions & 0 deletions v2/management/model/config/management/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class ManagementConfig {

//fields

constructor() {

}

//getters and setters

}

export default ManagementConfig;
15 changes: 15 additions & 0 deletions v2/management/model/request/create-vault/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class CreateVaultRequest {

//fields

constructor() {

}

//getters and setters

}

export default CreateVaultRequest;
15 changes: 15 additions & 0 deletions v2/management/model/request/delete-policy/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class DeletePolicyRequest {

//fields

constructor() {

}

//getters and setters

}

export default DeletePolicyRequest;
15 changes: 15 additions & 0 deletions v2/management/model/response/create-vault/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class CreateVaultResponse {

//fields

constructor() {

}

//getters and setters

}

export default CreateVaultResponse;
15 changes: 15 additions & 0 deletions v2/management/model/response/delete-policy/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class DeletePolicyResponse {

//fields

constructor() {

}

//getters and setters

}

export default DeletePolicyResponse;
11 changes: 11 additions & 0 deletions v2/management/skyflow/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { SkyflowConfig } from "../types";

class Skyflow {

constructor(config: SkyflowConfig) {

}

}

export default Skyflow;
7 changes: 7 additions & 0 deletions v2/management/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { LogLevel } from "../../utils/common";
import ManagementConfig from "../model/config/management";

export interface SkyflowConfig {
managementConfig: ManagementConfig[],
logLevel?: LogLevel,
}
9 changes: 9 additions & 0 deletions v2/utils/common/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//common code between vault & management

export enum LogLevel {
WARN = 'WARN',
INFO = 'INFO',
DEBUG = 'DEBUG',
ERROR = 'ERROR',
OFF = 'OFF'
}
1 change: 1 addition & 0 deletions v2/utils/helper/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//helper functions
1 change: 1 addition & 0 deletions v2/validations/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// add client config validations & request validations
15 changes: 15 additions & 0 deletions v2/vault/controller/audit/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class Audit {

constructor() {

}

public list() {
return this;
}

}

export default Audit;
19 changes: 19 additions & 0 deletions v2/vault/controller/binlookup/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//imports

class BinLookUp {

constructor() {

}

public lookUpBin() {
return this;
}

public get() {

}

}

export default BinLookUp;
15 changes: 15 additions & 0 deletions v2/vault/controller/connections/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class Connection {

constructor() {

}

public invoke() {

}

}

export default Connection;
35 changes: 35 additions & 0 deletions v2/vault/controller/data/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//imports

class Data {

constructor() {

}

public insert() {

}

public update() {

}

public delete() {

}

public get() {

}

public detokenize() {

}

public uploadFile(){

}

}

export default Data;
23 changes: 23 additions & 0 deletions v2/vault/controller/detect/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//imports

class Detect {

constructor() {

}

public deIdentify() {
return this;
}

public text() {

}

public file() {

}

}

export default Detect;
15 changes: 15 additions & 0 deletions v2/vault/controller/query/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class Query {

constructor() {

}

public query() {

}

}

export default Query;
15 changes: 15 additions & 0 deletions v2/vault/model/config/connection/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class ConnectionConfig {

//fields

constructor() {

}

//getters and setters

}

export default ConnectionConfig;
15 changes: 15 additions & 0 deletions v2/vault/model/config/vault/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class VaultConfig {

//fields

constructor() {

}

//getters and setters

}

export default VaultConfig;
15 changes: 15 additions & 0 deletions v2/vault/model/credentials/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//imports

class Credentials {

//fields

constructor() {

}

//getters and setters

}

export default Credentials;
Loading

0 comments on commit cbcda7d

Please sign in to comment.