UNPKG

swarm-pilot

Version:
547 lines (546 loc) 22.6 kB
import { Context, Ref } from "effect"; declare const ServiceInspectState_base: Context.TagClass<ServiceInspectState, "ServiceInspectState", Ref.Ref<readonly { readonly ID: string; readonly Version: { readonly Index: number; }; readonly CreatedAt: string; readonly UpdatedAt: string; readonly Spec?: { readonly Labels: { readonly [x: string]: string; }; readonly Name?: string | undefined; readonly TaskTemplate?: { readonly Resources?: { readonly Limits?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; readonly Reservations?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; } | undefined; readonly ContainerSpec?: { readonly Labels: { readonly [x: string]: string; }; readonly Image: string; readonly Args?: readonly string[] | undefined; readonly Privileges?: { readonly CredentialSpec?: string | null | undefined; readonly SELinuxContext?: string | null | undefined; readonly NoNewPrivileges?: boolean | undefined; } | undefined; readonly Mounts?: readonly { readonly Type?: string | undefined; readonly Source?: string | undefined; readonly Target?: string | undefined; }[] | undefined; readonly StopGracePeriod?: number | undefined; readonly DNSConfig?: any; readonly Isolation?: string | undefined; } | undefined; readonly RestartPolicy?: { readonly Condition?: string | undefined; readonly Delay?: number | undefined; readonly MaxAttempts?: number | undefined; } | undefined; readonly Placement?: { readonly Constraints?: readonly string[] | undefined; readonly Preferences?: readonly any[] | undefined; readonly Platforms?: readonly any[] | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly ForceUpdate?: number | undefined; readonly Runtime?: string | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly Mode: { readonly Global: {}; } | { readonly Replicated: { readonly Replicas: number; }; }; readonly UpdateConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly RollbackConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly EndpointSpec?: { readonly Mode?: string | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; } | undefined; } | undefined; readonly PreviousSpec?: { readonly Labels: { readonly [x: string]: string; }; readonly Name?: string | undefined; readonly TaskTemplate?: { readonly Resources?: { readonly Limits?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; readonly Reservations?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; } | undefined; readonly ContainerSpec?: { readonly Labels: { readonly [x: string]: string; }; readonly Image: string; readonly Args?: readonly string[] | undefined; readonly Privileges?: { readonly CredentialSpec?: string | null | undefined; readonly SELinuxContext?: string | null | undefined; readonly NoNewPrivileges?: boolean | undefined; } | undefined; readonly Mounts?: readonly { readonly Type?: string | undefined; readonly Source?: string | undefined; readonly Target?: string | undefined; }[] | undefined; readonly StopGracePeriod?: number | undefined; readonly DNSConfig?: any; readonly Isolation?: string | undefined; } | undefined; readonly RestartPolicy?: { readonly Condition?: string | undefined; readonly Delay?: number | undefined; readonly MaxAttempts?: number | undefined; } | undefined; readonly Placement?: { readonly Constraints?: readonly string[] | undefined; readonly Preferences?: readonly any[] | undefined; readonly Platforms?: readonly any[] | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly ForceUpdate?: number | undefined; readonly Runtime?: string | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly Mode: { readonly Global: {}; } | { readonly Replicated: { readonly Replicas: number; }; }; readonly UpdateConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly RollbackConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly EndpointSpec?: { readonly Mode?: string | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; } | undefined; } | undefined; readonly Endpoint?: { readonly Spec?: { readonly Mode?: string | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; } | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; readonly VirtualIPs?: readonly { readonly Addr: string; readonly NetworkID: string; }[] | undefined; } | undefined; readonly UpdateStatus?: { readonly State?: string | undefined; readonly Message?: string | undefined; readonly StartedAt?: string | undefined; readonly CompletedAt?: string | undefined; } | undefined; }[]>>; export declare class ServiceInspectState extends ServiceInspectState_base { } export declare const service_inspect_init: import("effect/Effect").Effect<Ref.Ref<readonly { readonly ID: string; readonly Version: { readonly Index: number; }; readonly CreatedAt: string; readonly UpdatedAt: string; readonly Spec?: { readonly Labels: { readonly [x: string]: string; }; readonly Name?: string | undefined; readonly TaskTemplate?: { readonly Resources?: { readonly Limits?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; readonly Reservations?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; } | undefined; readonly ContainerSpec?: { readonly Labels: { readonly [x: string]: string; }; readonly Image: string; readonly Args?: readonly string[] | undefined; readonly Privileges?: { readonly CredentialSpec?: string | null | undefined; readonly SELinuxContext?: string | null | undefined; readonly NoNewPrivileges?: boolean | undefined; } | undefined; readonly Mounts?: readonly { readonly Type?: string | undefined; readonly Source?: string | undefined; readonly Target?: string | undefined; }[] | undefined; readonly StopGracePeriod?: number | undefined; readonly DNSConfig?: any; readonly Isolation?: string | undefined; } | undefined; readonly RestartPolicy?: { readonly Condition?: string | undefined; readonly Delay?: number | undefined; readonly MaxAttempts?: number | undefined; } | undefined; readonly Placement?: { readonly Constraints?: readonly string[] | undefined; readonly Preferences?: readonly any[] | undefined; readonly Platforms?: readonly any[] | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly ForceUpdate?: number | undefined; readonly Runtime?: string | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly Mode: { readonly Global: {}; } | { readonly Replicated: { readonly Replicas: number; }; }; readonly UpdateConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly RollbackConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly EndpointSpec?: { readonly Mode?: string | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; } | undefined; } | undefined; readonly PreviousSpec?: { readonly Labels: { readonly [x: string]: string; }; readonly Name?: string | undefined; readonly TaskTemplate?: { readonly Resources?: { readonly Limits?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; readonly Reservations?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; } | undefined; readonly ContainerSpec?: { readonly Labels: { readonly [x: string]: string; }; readonly Image: string; readonly Args?: readonly string[] | undefined; readonly Privileges?: { readonly CredentialSpec?: string | null | undefined; readonly SELinuxContext?: string | null | undefined; readonly NoNewPrivileges?: boolean | undefined; } | undefined; readonly Mounts?: readonly { readonly Type?: string | undefined; readonly Source?: string | undefined; readonly Target?: string | undefined; }[] | undefined; readonly StopGracePeriod?: number | undefined; readonly DNSConfig?: any; readonly Isolation?: string | undefined; } | undefined; readonly RestartPolicy?: { readonly Condition?: string | undefined; readonly Delay?: number | undefined; readonly MaxAttempts?: number | undefined; } | undefined; readonly Placement?: { readonly Constraints?: readonly string[] | undefined; readonly Preferences?: readonly any[] | undefined; readonly Platforms?: readonly any[] | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly ForceUpdate?: number | undefined; readonly Runtime?: string | undefined; } | undefined; readonly Networks?: readonly { readonly Target: string; readonly Aliases?: readonly string[] | undefined; }[] | undefined; readonly Mode: { readonly Global: {}; } | { readonly Replicated: { readonly Replicas: number; }; }; readonly UpdateConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly RollbackConfig?: { readonly Parallelism?: number | undefined; readonly FailureAction?: string | undefined; readonly Monitor?: number | undefined; readonly MaxFailureRatio?: number | undefined; readonly Order?: string | undefined; } | undefined; readonly EndpointSpec?: { readonly Mode?: string | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; } | undefined; } | undefined; readonly Endpoint?: { readonly Spec?: { readonly Mode?: string | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; } | undefined; readonly Ports?: readonly { readonly Name?: string | undefined; readonly Protocol?: string | undefined; readonly TargetPort: number; readonly PublishedPort?: number | undefined; readonly PublishMode?: string | undefined; }[] | undefined; readonly VirtualIPs?: readonly { readonly Addr: string; readonly NetworkID: string; }[] | undefined; } | undefined; readonly UpdateStatus?: { readonly State?: string | undefined; readonly Message?: string | undefined; readonly StartedAt?: string | undefined; readonly CompletedAt?: string | undefined; } | undefined; }[]>, never, never>; declare const NodeInspectState_base: Context.TagClass<NodeInspectState, "NodeInspectState", Ref.Ref<readonly { readonly ID: string; readonly Version: { readonly Index: number; }; readonly CreatedAt: string; readonly UpdatedAt: string; readonly Spec?: { readonly Labels: { readonly [x: string]: string; }; readonly Role?: string | undefined; readonly Availability?: string | undefined; } | undefined; readonly Description?: { readonly Hostname?: string | undefined; readonly Platform?: { readonly Architecture?: string | undefined; readonly OS?: string | undefined; } | undefined; readonly Resources?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; readonly Engine?: { readonly Labels?: { readonly [x: string]: string; } | undefined; readonly EngineVersion?: string | undefined; readonly Plugins: readonly { readonly Type?: string | undefined; readonly Name?: string | undefined; }[]; } | undefined; readonly TLSInfo?: { readonly TrustRoot?: string | undefined; readonly CertIssuerSubject?: string | undefined; readonly CertIssuerPublicKey?: string | undefined; } | undefined; readonly CSIInfo: readonly { readonly PluginName?: string | undefined; readonly NodeID?: string | undefined; }[]; } | undefined; readonly Status?: { readonly State?: string | undefined; readonly Message?: string | undefined; readonly Addr?: string | undefined; } | undefined; readonly ManagerStatus?: { readonly Addr?: string | undefined; readonly Leader?: boolean | undefined; readonly Reachability?: string | undefined; } | undefined; }[]>>; export declare class NodeInspectState extends NodeInspectState_base { } export declare const node_inspect_init: import("effect/Effect").Effect<Ref.Ref<readonly { readonly ID: string; readonly Version: { readonly Index: number; }; readonly CreatedAt: string; readonly UpdatedAt: string; readonly Spec?: { readonly Labels: { readonly [x: string]: string; }; readonly Role?: string | undefined; readonly Availability?: string | undefined; } | undefined; readonly Description?: { readonly Hostname?: string | undefined; readonly Platform?: { readonly Architecture?: string | undefined; readonly OS?: string | undefined; } | undefined; readonly Resources?: { readonly NanoCPUs?: number | undefined; readonly MemoryBytes?: number | undefined; } | undefined; readonly Engine?: { readonly Labels?: { readonly [x: string]: string; } | undefined; readonly EngineVersion?: string | undefined; readonly Plugins: readonly { readonly Type?: string | undefined; readonly Name?: string | undefined; }[]; } | undefined; readonly TLSInfo?: { readonly TrustRoot?: string | undefined; readonly CertIssuerSubject?: string | undefined; readonly CertIssuerPublicKey?: string | undefined; } | undefined; readonly CSIInfo: readonly { readonly PluginName?: string | undefined; readonly NodeID?: string | undefined; }[]; } | undefined; readonly Status?: { readonly State?: string | undefined; readonly Message?: string | undefined; readonly Addr?: string | undefined; } | undefined; readonly ManagerStatus?: { readonly Addr?: string | undefined; readonly Leader?: boolean | undefined; readonly Reachability?: string | undefined; } | undefined; }[]>, never, never>; export {};