@actions/cache 4.0.0 → 4.0.2

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.
@@ -1,71 +0,0 @@
1
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
- import type { IBinaryReader } from "@protobuf-ts/runtime";
5
- import type { PartialMessage } from "@protobuf-ts/runtime";
6
- import { MessageType } from "@protobuf-ts/runtime";
7
- import { Timestamp } from "../../../google/protobuf/timestamp";
8
- /**
9
- * @generated from protobuf message github.actions.results.entities.v1.CacheEntry
10
- */
11
- export interface CacheEntry {
12
- /**
13
- * An explicit key for a cache entry
14
- *
15
- * @generated from protobuf field: string key = 1;
16
- */
17
- key: string;
18
- /**
19
- * SHA256 hex digest of the cache archive
20
- *
21
- * @generated from protobuf field: string hash = 2;
22
- */
23
- hash: string;
24
- /**
25
- * Cache entry size in bytes
26
- *
27
- * @generated from protobuf field: int64 size_bytes = 3;
28
- */
29
- sizeBytes: string;
30
- /**
31
- * Access scope
32
- *
33
- * @generated from protobuf field: string scope = 4;
34
- */
35
- scope: string;
36
- /**
37
- * Version SHA256 hex digest
38
- *
39
- * @generated from protobuf field: string version = 5;
40
- */
41
- version: string;
42
- /**
43
- * When the cache entry was created
44
- *
45
- * @generated from protobuf field: google.protobuf.Timestamp created_at = 6;
46
- */
47
- createdAt?: Timestamp;
48
- /**
49
- * When the cache entry was last accessed
50
- *
51
- * @generated from protobuf field: google.protobuf.Timestamp last_accessed_at = 7;
52
- */
53
- lastAccessedAt?: Timestamp;
54
- /**
55
- * When the cache entry is set to expire
56
- *
57
- * @generated from protobuf field: google.protobuf.Timestamp expires_at = 8;
58
- */
59
- expiresAt?: Timestamp;
60
- }
61
- declare class CacheEntry$Type extends MessageType<CacheEntry> {
62
- constructor();
63
- create(value?: PartialMessage<CacheEntry>): CacheEntry;
64
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CacheEntry): CacheEntry;
65
- internalBinaryWrite(message: CacheEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
66
- }
67
- /**
68
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheEntry
69
- */
70
- export declare const CacheEntry: CacheEntry$Type;
71
- export {};
@@ -1,106 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CacheEntry = void 0;
4
- const runtime_1 = require("@protobuf-ts/runtime");
5
- const runtime_2 = require("@protobuf-ts/runtime");
6
- const runtime_3 = require("@protobuf-ts/runtime");
7
- const runtime_4 = require("@protobuf-ts/runtime");
8
- const runtime_5 = require("@protobuf-ts/runtime");
9
- const timestamp_1 = require("../../../google/protobuf/timestamp");
10
- // @generated message type with reflection information, may provide speed optimized methods
11
- class CacheEntry$Type extends runtime_5.MessageType {
12
- constructor() {
13
- super("github.actions.results.entities.v1.CacheEntry", [
14
- { no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
15
- { no: 2, name: "hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
16
- { no: 3, name: "size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
17
- { no: 4, name: "scope", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
18
- { no: 5, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
19
- { no: 6, name: "created_at", kind: "message", T: () => timestamp_1.Timestamp },
20
- { no: 7, name: "last_accessed_at", kind: "message", T: () => timestamp_1.Timestamp },
21
- { no: 8, name: "expires_at", kind: "message", T: () => timestamp_1.Timestamp }
22
- ]);
23
- }
24
- create(value) {
25
- const message = { key: "", hash: "", sizeBytes: "0", scope: "", version: "" };
26
- globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
27
- if (value !== undefined)
28
- (0, runtime_3.reflectionMergePartial)(this, message, value);
29
- return message;
30
- }
31
- internalBinaryRead(reader, length, options, target) {
32
- let message = target !== null && target !== void 0 ? target : this.create(), end = reader.pos + length;
33
- while (reader.pos < end) {
34
- let [fieldNo, wireType] = reader.tag();
35
- switch (fieldNo) {
36
- case /* string key */ 1:
37
- message.key = reader.string();
38
- break;
39
- case /* string hash */ 2:
40
- message.hash = reader.string();
41
- break;
42
- case /* int64 size_bytes */ 3:
43
- message.sizeBytes = reader.int64().toString();
44
- break;
45
- case /* string scope */ 4:
46
- message.scope = reader.string();
47
- break;
48
- case /* string version */ 5:
49
- message.version = reader.string();
50
- break;
51
- case /* google.protobuf.Timestamp created_at */ 6:
52
- message.createdAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
53
- break;
54
- case /* google.protobuf.Timestamp last_accessed_at */ 7:
55
- message.lastAccessedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastAccessedAt);
56
- break;
57
- case /* google.protobuf.Timestamp expires_at */ 8:
58
- message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
59
- break;
60
- default:
61
- let u = options.readUnknownField;
62
- if (u === "throw")
63
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
64
- let d = reader.skip(wireType);
65
- if (u !== false)
66
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
67
- }
68
- }
69
- return message;
70
- }
71
- internalBinaryWrite(message, writer, options) {
72
- /* string key = 1; */
73
- if (message.key !== "")
74
- writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.key);
75
- /* string hash = 2; */
76
- if (message.hash !== "")
77
- writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.hash);
78
- /* int64 size_bytes = 3; */
79
- if (message.sizeBytes !== "0")
80
- writer.tag(3, runtime_1.WireType.Varint).int64(message.sizeBytes);
81
- /* string scope = 4; */
82
- if (message.scope !== "")
83
- writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.scope);
84
- /* string version = 5; */
85
- if (message.version !== "")
86
- writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.version);
87
- /* google.protobuf.Timestamp created_at = 6; */
88
- if (message.createdAt)
89
- timestamp_1.Timestamp.internalBinaryWrite(message.createdAt, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
90
- /* google.protobuf.Timestamp last_accessed_at = 7; */
91
- if (message.lastAccessedAt)
92
- timestamp_1.Timestamp.internalBinaryWrite(message.lastAccessedAt, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
93
- /* google.protobuf.Timestamp expires_at = 8; */
94
- if (message.expiresAt)
95
- timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
96
- let u = options.writeUnknownFields;
97
- if (u !== false)
98
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
99
- return writer;
100
- }
101
- }
102
- /**
103
- * @generated MessageType for protobuf message github.actions.results.entities.v1.CacheEntry
104
- */
105
- exports.CacheEntry = new CacheEntry$Type();
106
- //# sourceMappingURL=cacheentry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cacheentry.js","sourceRoot":"","sources":["../../../../../src/generated/results/entities/v1/cacheentry.ts"],"names":[],"mappings":";;;AAKA,kDAAgD;AAGhD,kDAA2D;AAE3D,kDAA8D;AAC9D,kDAAoD;AACpD,kDAAmD;AACnD,kEAA+D;AAsD/D,2FAA2F;AAC3F,MAAM,eAAgB,SAAQ,qBAAuB;IACjD;QACI,KAAK,CAAC,+CAA+C,EAAE;YACnD,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,qBAAqB,EAAE;YAClE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,E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