import { IComGithubCiliumCiliumPkgPolicyApiMismatchAction } from "./MismatchAction.js"; import { IComGithubCiliumCiliumPkgPolicyApiSecret } from "./Secret.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * HeaderMatch extends the HeaderValue for matching requirement of a * named header field against an immediate string or a secret value. * If none of the optional fields is present, then the * header value is not matched, only presence of the header is enough. */ export interface IHeaderMatch { /** * Mismatch identifies what to do in case there is no match. The default is * to drop the request. Otherwise the overall rule is still considered as * matching, but the mismatches are logged in the access log. */ "mismatch"?: IComGithubCiliumCiliumPkgPolicyApiMismatchAction; /** * Name identifies the header. */ "name": string; /** * Secret refers to a secret that contains the value to be matched against. * The secret must only contain one entry. If the referred secret does not * exist, and there is no "Value" specified, the match will fail. */ "secret"?: IComGithubCiliumCiliumPkgPolicyApiSecret; /** * Value matches the exact value of the header. Can be specified either * alone or together with "Secret"; will be used as the header value if the * secret can not be found in the latter case. */ "value"?: string; } /** * HeaderMatch extends the HeaderValue for matching requirement of a * named header field against an immediate string or a secret value. * If none of the optional fields is present, then the * header value is not matched, only presence of the header is enough. */ export declare class HeaderMatch extends Model implements IHeaderMatch { "mismatch"?: IComGithubCiliumCiliumPkgPolicyApiMismatchAction; "name": string; "secret"?: IComGithubCiliumCiliumPkgPolicyApiSecret; "value"?: string; constructor(data?: ModelData); } export type { IHeaderMatch as IComGithubCiliumCiliumPkgPolicyApiHeaderMatch, HeaderMatch as ComGithubCiliumCiliumPkgPolicyApiHeaderMatch };