@kubernetes-models/flux-cd
Version:
47 lines (46 loc) • 2.13 kB
TypeScript
import { IComGithubFluxcdNotificationControllerApiV1CrossNamespaceObjectReference } from "../v1/CrossNamespaceObjectReference.js";
import { IComGithubFluxcdPkgApisMetaLocalObjectReference } from "../../github.com/fluxcd/pkg/apis/meta/LocalObjectReference.js";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ReceiverSpec defines the desired state of the Receiver.
*/
export interface IReceiverSpec {
/**
* Events specifies the list of event types to handle,
* e.g. 'push' for GitHub or 'Push Hook' for GitLab.
*/
"events"?: Array<string>;
"interval"?: string;
/**
* A list of resources to be notified about changes.
*/
"resources": Array<IComGithubFluxcdNotificationControllerApiV1CrossNamespaceObjectReference>;
/**
* SecretRef specifies the Secret containing the token used
* to validate the payload authenticity.
*/
"secretRef": IComGithubFluxcdPkgApisMetaLocalObjectReference;
/**
* Suspend tells the controller to suspend subsequent
* events handling for this receiver.
*/
"suspend"?: boolean;
/**
* Type of webhook sender, used to determine
* the validation procedure and payload deserialization.
*/
"type": "generic" | "generic-hmac" | "github" | "gitlab" | "bitbucket" | "harbor" | "dockerhub" | "quay" | "gcr" | "nexus" | "acr";
}
/**
* ReceiverSpec defines the desired state of the Receiver.
*/
export declare class ReceiverSpec extends Model<IReceiverSpec> implements IReceiverSpec {
"events"?: Array<string>;
"interval"?: string;
"resources": Array<IComGithubFluxcdNotificationControllerApiV1CrossNamespaceObjectReference>;
"secretRef": IComGithubFluxcdPkgApisMetaLocalObjectReference;
"suspend"?: boolean;
"type": "generic" | "generic-hmac" | "github" | "gitlab" | "bitbucket" | "harbor" | "dockerhub" | "quay" | "gcr" | "nexus" | "acr";
constructor(data?: ModelData<IReceiverSpec>);
}
export type { IReceiverSpec as IComGithubFluxcdNotificationControllerApiV1beta2ReceiverSpec, ReceiverSpec as ComGithubFluxcdNotificationControllerApiV1beta2ReceiverSpec };