Documentation ¶
Overview ¶
The helper package provides builders to instantiate Kubernetes objects used in integration tests.
Index ¶
- type DeploymentBuilder
- type PodBuilder
- type VulnerabilityReportBuilder
- func (b *VulnerabilityReportBuilder) Build() *v1alpha1.VulnerabilityReport
- func (b *VulnerabilityReportBuilder) WithName(name string) *VulnerabilityReportBuilder
- func (b *VulnerabilityReportBuilder) WithNamespace(namespace string) *VulnerabilityReportBuilder
- func (b *VulnerabilityReportBuilder) WithOwnerKind(kind kube.Kind) *VulnerabilityReportBuilder
- func (b *VulnerabilityReportBuilder) WithOwnerName(name string) *VulnerabilityReportBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentBuilder ¶
type DeploymentBuilder struct {
// contains filtered or unexported fields
}
func NewDeployment ¶
func NewDeployment() *DeploymentBuilder
func (*DeploymentBuilder) Build ¶
func (b *DeploymentBuilder) Build() *appsv1.Deployment
func (*DeploymentBuilder) WithContainer ¶
func (b *DeploymentBuilder) WithContainer(name, image string) *DeploymentBuilder
func (*DeploymentBuilder) WithName ¶
func (b *DeploymentBuilder) WithName(name string) *DeploymentBuilder
func (*DeploymentBuilder) WithNamespace ¶
func (b *DeploymentBuilder) WithNamespace(namespace string) *DeploymentBuilder
type PodBuilder ¶
type PodBuilder struct {
// contains filtered or unexported fields
}
func NewPod ¶
func NewPod() *PodBuilder
func (*PodBuilder) Build ¶
func (b *PodBuilder) Build() *corev1.Pod
func (*PodBuilder) WithContainer ¶
func (b *PodBuilder) WithContainer(name, image string) *PodBuilder
func (*PodBuilder) WithImagePullSecret ¶
func (b *PodBuilder) WithImagePullSecret(name string) *PodBuilder
func (*PodBuilder) WithName ¶
func (b *PodBuilder) WithName(name string) *PodBuilder
func (*PodBuilder) WithNamespace ¶
func (b *PodBuilder) WithNamespace(namespace string) *PodBuilder
type VulnerabilityReportBuilder ¶
type VulnerabilityReportBuilder struct {
// contains filtered or unexported fields
}
func NewVulnerabilityReport ¶
func NewVulnerabilityReport() *VulnerabilityReportBuilder
func (*VulnerabilityReportBuilder) Build ¶
func (b *VulnerabilityReportBuilder) Build() *v1alpha1.VulnerabilityReport
func (*VulnerabilityReportBuilder) WithName ¶
func (b *VulnerabilityReportBuilder) WithName(name string) *VulnerabilityReportBuilder
func (*VulnerabilityReportBuilder) WithNamespace ¶
func (b *VulnerabilityReportBuilder) WithNamespace(namespace string) *VulnerabilityReportBuilder
func (*VulnerabilityReportBuilder) WithOwnerKind ¶
func (b *VulnerabilityReportBuilder) WithOwnerKind(kind kube.Kind) *VulnerabilityReportBuilder
func (*VulnerabilityReportBuilder) WithOwnerName ¶
func (b *VulnerabilityReportBuilder) WithOwnerName(name string) *VulnerabilityReportBuilder
Click to show internal directories.
Click to hide internal directories.