phala 1.1.7 → 1.1.9
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/README.md +91 -784
- package/dist/api/index.d.ts +10 -1
- package/dist/api/index.js +29 -29
- package/dist/index.js +163 -162
- package/package.json +2 -10
package/dist/api/index.d.ts
CHANGED
|
@@ -911,6 +911,9 @@ interface ContainerLogsOptions extends SerialLogsOptions {
|
|
|
911
911
|
*/
|
|
912
912
|
matchContainerIdPrefix?: boolean;
|
|
913
913
|
}
|
|
914
|
+
type CvmLogChannel = "serial" | "stdout" | "stderr";
|
|
915
|
+
/** Get CVM-level (syslog) log endpoint URL for a given channel */
|
|
916
|
+
declare function getCvmLogEndpoint(appId: string, channel: CvmLogChannel): Promise<string>;
|
|
914
917
|
/** Fetch serial logs from a CVM */
|
|
915
918
|
declare function fetchSerialLogs(appId: string, options?: SerialLogsOptions): Promise<string>;
|
|
916
919
|
/**
|
|
@@ -936,5 +939,11 @@ declare function streamSerialLogs(appId: string, onData: (data: string) => void,
|
|
|
936
939
|
* otherwise streams from the first container with a log endpoint.
|
|
937
940
|
*/
|
|
938
941
|
declare function streamContainerLogs(appId: string, onData: (data: string) => void, options?: ContainerLogsOptions, signal?: AbortSignal): Promise<void>;
|
|
942
|
+
/** Fetch CVM-level channel logs (serial/stdout/stderr) */
|
|
943
|
+
declare function fetchCvmChannelLogs(appId: string, channel: CvmLogChannel, options?: SerialLogsOptions): Promise<string>;
|
|
944
|
+
/** Stream CVM-level channel logs (serial/stdout/stderr) */
|
|
945
|
+
declare function streamCvmChannelLogs(appId: string, channel: CvmLogChannel, onData: (data: string) => void, options?: SerialLogsOptions, signal?: AbortSignal): Promise<void>;
|
|
946
|
+
/** Get CVM status string (e.g. "running", "stopped") */
|
|
947
|
+
declare function getCvmStatus(appId: string): Promise<string>;
|
|
939
948
|
|
|
940
|
-
export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type CvmComposeConfigResponse, type CvmListResponse, type DockerConfig, type EncryptedEnvItem, type GetCvmNetworkResponse, type Image, type KmsListItem, type LogChannel, type LogEntry, type PostCvmResponse, type PubkeyResponse, type ReplicateCvmResponse, type ResizeCvmPayload, type SerialLogsOptions, type TCBEventLogEntry, type TCBInfo, type TEEPod, type TeepodResponse, type UpgradeResponse, type UserInfoResponse, type VMConfig, composeFileSchema, createCvm, cvmAttestationResponseSchema, dockerConfigSchema, encryptedEnvItemSchema, fetchContainerLogs, fetchContainerLogsEntries, fetchSerialLogs, getCvmAttestation, getCvmByAppId, getCvmComposeConfig, getCvmNetwork, getCvmNetworkResponseSchema, getPubkeyFromCvm, getTeepods, imageSchema, postCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamSerialLogs, teepodSchema, upgradeCvm };
|
|
949
|
+
export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type CvmComposeConfigResponse, type CvmListResponse, type CvmLogChannel, type DockerConfig, type EncryptedEnvItem, type GetCvmNetworkResponse, type Image, type KmsListItem, type LogChannel, type LogEntry, type PostCvmResponse, type PubkeyResponse, type ReplicateCvmResponse, type ResizeCvmPayload, type SerialLogsOptions, type TCBEventLogEntry, type TCBInfo, type TEEPod, type TeepodResponse, type UpgradeResponse, type UserInfoResponse, type VMConfig, composeFileSchema, createCvm, cvmAttestationResponseSchema, dockerConfigSchema, encryptedEnvItemSchema, fetchContainerLogs, fetchContainerLogsEntries, fetchCvmChannelLogs, fetchSerialLogs, getCvmAttestation, getCvmByAppId, getCvmComposeConfig, getCvmLogEndpoint, getCvmNetwork, getCvmNetworkResponseSchema, getCvmStatus, getPubkeyFromCvm, getTeepods, imageSchema, postCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamCvmChannelLogs, streamSerialLogs, teepodSchema, upgradeCvm };
|