@distilled.cloud/kubernetes 0.7.12 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +2 -2
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +2 -2
- package/lib/retry.js.map +1 -1
- package/package.json +5 -5
- package/src/credentials.ts +2 -2
- package/src/retry.ts +2 -2
package/lib/credentials.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Layer from "effect/Layer";
|
|
2
2
|
import * as Redacted from "effect/Redacted";
|
|
3
|
-
import * as
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
4
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
5
|
export interface Config {
|
|
6
6
|
/**
|
|
@@ -19,7 +19,7 @@ export interface Config {
|
|
|
19
19
|
*/
|
|
20
20
|
readonly apiBaseUrl: string;
|
|
21
21
|
}
|
|
22
|
-
declare const Credentials_base:
|
|
22
|
+
declare const Credentials_base: Context.ServiceClass<Credentials, "KubernetesCredentials", Config>;
|
|
23
23
|
export declare class Credentials extends Credentials_base {
|
|
24
24
|
}
|
|
25
25
|
/**
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,WAAW,MAAM;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE1C;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,8CAyB9B,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
5
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
|
-
export class Credentials extends
|
|
6
|
+
export class Credentials extends Context.Service()("KubernetesCredentials") {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Build a credentials layer from environment variables.
|
package/lib/credentials.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAqB3D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,uBAAuB,CACxB;CAAG;AAEJ;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAElD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EACL,qDAAqD;gBACrD,uDAAuD;SAC1D,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EACL,uDAAuD;gBACvD,2DAA2D;gBAC3D,iEAAiE;SACpE,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;AACrD,CAAC,CAAC,CACH,CAAC"}
|
package/lib/errors.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
13
13
|
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
14
14
|
import * as Schema from "effect/Schema";
|
|
15
|
-
declare const UnknownKubernetesError_base: Schema.
|
|
15
|
+
declare const UnknownKubernetesError_base: Schema.Class<UnknownKubernetesError, Schema.TaggedStruct<"UnknownKubernetesError", {
|
|
16
16
|
readonly reason: Schema.optional<Schema.String>;
|
|
17
17
|
readonly message: Schema.optional<Schema.String>;
|
|
18
18
|
readonly body: Schema.Unknown;
|
|
@@ -28,7 +28,7 @@ declare const UnknownKubernetesError_base: Schema.ErrorClass<UnknownKubernetesEr
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class UnknownKubernetesError extends UnknownKubernetesError_base {
|
|
30
30
|
}
|
|
31
|
-
declare const KubernetesParseError_base: Schema.
|
|
31
|
+
declare const KubernetesParseError_base: Schema.Class<KubernetesParseError, Schema.TaggedStruct<"KubernetesParseError", {
|
|
32
32
|
readonly body: Schema.Unknown;
|
|
33
33
|
readonly cause: Schema.Unknown;
|
|
34
34
|
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
package/lib/retry.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Kubernetes retry configuration.
|
|
3
3
|
*/
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
|
-
import * as
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
6
|
export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
|
|
7
7
|
import type { Policy } from "@distilled.cloud/core/retry";
|
|
8
|
-
declare const Retry_base:
|
|
8
|
+
declare const Retry_base: Context.ServiceClass<Retry, "KubernetesRetry", Policy>;
|
|
9
9
|
/**
|
|
10
10
|
* Context tag for configuring retry behavior of Kubernetes API calls.
|
|
11
11
|
*/
|
package/lib/retry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;;AAE1D;;GAEG;AACH,qBAAa,KAAM,SAAQ,UAE1B;CAAG;AAEJ;;GAEG;AACH,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,IAAI,mFAEhB,CAAC"}
|
package/lib/retry.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
|
-
import * as
|
|
6
|
+
import * as Context from "effect/Context";
|
|
7
7
|
export { makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
|
|
8
8
|
/**
|
|
9
9
|
* Context tag for configuring retry behavior of Kubernetes API calls.
|
|
10
10
|
*/
|
|
11
|
-
export class Retry extends
|
|
11
|
+
export class Retry extends Context.Service()("KubernetesRetry") {
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Provides a custom retry policy to all Kubernetes API calls.
|
package/lib/retry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAIL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAGrC;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,OAAO,CAAC,OAAO,EAAiB,CACzD,iBAAiB,CAClB;CAAG;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,gBAAwB,EAAE,EAAE,CACjD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/kubernetes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
"fmt": "oxfmt --write src",
|
|
67
67
|
"lint": "oxlint --fix src",
|
|
68
68
|
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
69
|
-
"test": "bunx vitest run test",
|
|
69
|
+
"test": "bunx vitest run test --exclude specs",
|
|
70
70
|
"publish:npm": "bun run build && bun publish --access public",
|
|
71
71
|
"generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
|
|
72
72
|
"specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/kubernetes && git -C specs/kubernetes checkout -- .",
|
|
73
73
|
"specs:update": "git -C specs/kubernetes fetch && git -C specs/kubernetes checkout master && git -C specs/kubernetes pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
77
|
-
"effect": "4.0.0-beta.
|
|
76
|
+
"@distilled.cloud/core": "0.9.0",
|
|
77
|
+
"effect": "4.0.0-beta.46"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.3.0",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"vitest": "^3.2.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"effect": "4.0.0-beta.
|
|
86
|
+
"effect": "4.0.0-beta.46"
|
|
87
87
|
}
|
|
88
88
|
}
|
package/src/credentials.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
5
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
6
|
|
|
7
7
|
export interface Config {
|
|
@@ -23,7 +23,7 @@ export interface Config {
|
|
|
23
23
|
readonly apiBaseUrl: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class Credentials extends
|
|
26
|
+
export class Credentials extends Context.Service<Credentials, Config>()(
|
|
27
27
|
"KubernetesCredentials",
|
|
28
28
|
) {}
|
|
29
29
|
|
package/src/retry.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
|
-
import * as
|
|
6
|
+
import * as Context from "effect/Context";
|
|
7
7
|
export {
|
|
8
8
|
type Options,
|
|
9
9
|
type Factory,
|
|
@@ -19,7 +19,7 @@ import type { Policy } from "@distilled.cloud/core/retry";
|
|
|
19
19
|
/**
|
|
20
20
|
* Context tag for configuring retry behavior of Kubernetes API calls.
|
|
21
21
|
*/
|
|
22
|
-
export class Retry extends
|
|
22
|
+
export class Retry extends Context.Service<Retry, Policy>()(
|
|
23
23
|
"KubernetesRetry",
|
|
24
24
|
) {}
|
|
25
25
|
|