Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CleanupPolicyCondition

import type { CleanupPolicyCondition } from "https://googleapis.deno.dev/v1/artifactregistry:v1.ts";

CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied.

interface CleanupPolicyCondition {
newerThan?: number;
olderThan?: number;
packageNamePrefixes?: string[];
tagPrefixes?: string[];
tagState?:
| "TAG_STATE_UNSPECIFIED"
| "TAGGED"
| "UNTAGGED"
| "ANY";
versionNamePrefixes?: string[];
}

§Properties

§
newerThan?: number
[src]

Match versions newer than a duration.

§
olderThan?: number
[src]

Match versions older than a duration.

§
packageNamePrefixes?: string[]
[src]

Match versions by package prefix. Applied on any prefix match.

§
tagPrefixes?: string[]
[src]

Match versions by tag prefix. Applied on any prefix match.

§
tagState?: "TAG_STATE_UNSPECIFIED" | "TAGGED" | "UNTAGGED" | "ANY"
[src]

Match versions by tag status.

§
versionNamePrefixes?: string[]
[src]

Match versions by version name prefix. Applied on any prefix match.