mocks

package
v0.0.0-...-530e6f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRDName            = "jenkins.jenkins.dev"
	CRDVersion         = "apiextensions.k8s.io/v1beta1"
	CRDKind            = "Jenkins"
	OperatorKind       = "Jenkins"
	OperatorAPIVersion = "apiextensions.k8s.io/v1beta1"
)

resource details employed in mocks

Variables

This section is empty.

Functions

func JenkinsCRMock

func JenkinsCRMock(ns, name string) *jenkinsv1alpha1.Jenkins

Return a mock of a Jenkins Resource

func JenkinsDCMock

func JenkinsDCMock(ns, name string) corev1.PersistentVolumeClaim

Return a mock of a Jenkins Deployment Config

func JenkinsPvcMock

func JenkinsPvcMock(ns, name string) corev1.PersistentVolumeClaim

Return a mock of a Jenkins Persistent Volume Claim

func JenkinsServiceMock

func JenkinsServiceMock(ns, name string) corev1.Service

Return a mock of a Service used by Jenkins

Types

type Fake

type Fake struct {
	S *runtime.Scheme // runtime client scheme
	// contains filtered or unexported fields
}

func NewFake

func NewFake(t *testing.T, ns string) *Fake

NewFake instantiate Fake type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL