Google Cloud Binary Authorization V1beta1 Client - Class AdmissionWhitelistPattern (0.5.13)

Reference documentation and code samples for the Google Cloud Binary Authorization V1beta1 Client class AdmissionWhitelistPattern.

An admission allowlist pattern exempts images from checks by admission rules.

Generated from protobuf message google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern

Namespace

Google \ Cloud \ BinaryAuthorization \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name_pattern string

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing * as a wildcard, but this is allowed only in text after the registry/ part. * wildcard does not match /, i.e., gcr.io/nginx* matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing ** wildcard which matches subdirectories, i.e., gcr.io/nginx** matches gcr.io/nginx/image.

getNamePattern

An image name pattern to allowlist, in the form registry/path/to/image.

This supports a trailing * as a wildcard, but this is allowed only in text after the registry/ part. * wildcard does not match /, i.e., gcr.io/nginx* matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing ** wildcard which matches subdirectories, i.e., gcr.io/nginx** matches gcr.io/nginx/image.

Returns
TypeDescription
string

setNamePattern

An image name pattern to allowlist, in the form registry/path/to/image.

This supports a trailing * as a wildcard, but this is allowed only in text after the registry/ part. * wildcard does not match /, i.e., gcr.io/nginx* matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image. This also supports a trailing ** wildcard which matches subdirectories, i.e., gcr.io/nginx** matches gcr.io/nginx/image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this