Bucket
import { Bucket } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class Bucket implements KV, KvRemove { }
constructor(
bucket: string,
js: JetStreamClient,
jsm: JetStreamManager,
);_prefixLen: number;
bucket: string;
codec: KvCodecs;
direct: boolean;
editPrefix: string;
hasWildcards;
js: JetStreamClient;
jsm: JetStreamManager;
prefix: string;
get prefixLen(): number;
stream: string;
useJsPrefix: boolean;
validateKey;
validateSearchKey;
_buildCC(
k: string | string[],
content: KvWatchInclude,
opts?: Partial<ConsumerConfig>,
): Partial<ConsumerConfig>;async _deleteOrPurge(
k: string,
op: "DEL" | "PURGE",
opts?: Partial<KvDeleteOptions>,
): Promise<void>;async _doDeleteOrPurge(
k: string,
op: "DEL" | "PURGE",
opts?: Partial<KvDeleteOptions>,
): Promise<void>;bucketName(): string;
canSetWatcherName(): boolean;
close(): Promise<void>;
decodeKey(ekey: string): string;
delete(k: string, opts?: Partial<KvDeleteOptions>): Promise<void>;
destroy(): Promise<boolean>;
encodeKey(key: string): string;
fullKeyName(k: string): string;
async get(k: string, opts?: {
revision: number;
}): Promise<KvEntry | null>;async history(opts?: {
key?: string | string[];
headers_only?: boolean;
}): Promise<QueuedIterator<KvEntry>>;async init(opts?: Partial<KvOptions>): Promise<void>;
initializePrefixes(info: StreamInfo);
jmToEntry(jm: JsMsg): KvEntry;
purge(k: string, opts?: Partial<KvDeleteOptions>): Promise<void>;
purgeBucket(opts?: PurgeOpts): Promise<PurgeResponse>;
async purgeDeletes(olderMillis?: number): Promise<PurgeResponse>;
remove(k: string): Promise<void>;
smToEntry(sm: StoredMsg): KvEntry;
async status(): Promise<KvStatus>;
subjectForBucket(): string;
subjectForKey(k: string, edit?): string;
static async bind(
js: JetStreamClient,
name: string,
opts?: Partial<KvOptions>,
): Promise<KV>;static async create(
js: JetStreamClient,
name: string,
opts?: Partial<KvOptions>,
): Promise<KV>;§Properties
§Methods
§
_buildCC(k: string | string[], content: KvWatchInclude, opts?: Partial<ConsumerConfig>): Partial<ConsumerConfig>
[src]§
_deleteOrPurge(k: string, op: "DEL" | "PURGE", opts?: Partial<KvDeleteOptions>): Promise<void>
[src]§
_doDeleteOrPurge(k: string, op: "DEL" | "PURGE", opts?: Partial<KvDeleteOptions>): Promise<void>
[src]§
history(opts?: {
[src]key?: string | string[];
headers_only?: boolean;
}): Promise<QueuedIterator<KvEntry>>§
keys(k?: string | string[]): Promise<QueuedIterator<string>>
[src]§
watch(opts?: KvWatchOptions): Promise<QueuedIterator<KvEntry>>
[src]