Skip to content

K8sHttpClient

6 exports Added in v1.0.0 Source

Constructors

Signature

declare const makeCreatePod: Effect<(...args: [spec: Pod]) => Effect, unknown, unknown>;

makeGetPods

Added in v1.0.0 Source

Signature

declare const makeGetPods: (options?: {
  readonly labelSelector?: string;
  readonly namespace?: string;
}) => Effect.Effect<
  Effect.Effect<Map<string, Pod>, HttpClientError.HttpClientError | ParseResult.ParseError, never>,
  never,
  K8sHttpClient
>;

Layers

layer

Added in v1.0.0 Source

Signature

declare const layer: Layer.Layer<
  K8sHttpClient,
  never,
  HttpClient.HttpClient | FileSystem.FileSystem
>;

Schemas

Pod

Added in v1.0.0 Source

Signature

declare class Pod extends ReadonlySide<
  {
    readonly status: typeof PodStatus;
  },
  "Type"
> {
  constructor(
    ...args: [
      props: ReadonlyMakeIn<{
        readonly status: typeof PodStatus;
      }>,
      options?: MakeOptions,
    ]
  );
  isReady: boolean;
  isReadyOrInitializing: boolean;
}

PodStatus

Added in v1.0.0 Source

Signature

declare class PodStatus extends ReadonlySide<
  {
    readonly conditions: $Array<
      Struct<{
        readonly lastTransitionTime: NullOr<String>;
        readonly status: String;
        readonly type: String;
      }>
    >;
    readonly hostIP: String;
    readonly phase: String;
    readonly podIP: String;
  },
  "Type"
> {
  constructor(
    ...args: [
      props: ReadonlyMakeIn<{
        readonly conditions: $Array<
          Struct<{
            readonly lastTransitionTime: NullOr<String>;
            readonly status: String;
            readonly type: String;
          }>
        >;
        readonly hostIP: String;
        readonly phase: String;
        readonly podIP: String;
      }>,
      options?: MakeOptions,
    ]
  );
}

Tags

Signature

declare class K8sHttpClient extends any {
  constructor();
}