structs

package
v0.0.0-...-e9c822e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestProjectClaimName string = "fakeProjectClaim"
	TestNamespace        string = "fakeNamespace"
)

Variables

This section is empty.

Functions

func NewProjectClaimBuilder

func NewProjectClaimBuilder() *testProjectClaimBuilder

func NewProjectReferenceBuilder

func NewProjectReferenceBuilder() *testProjectReferenceBuilder

func NewTestConfigMapBuilder

func NewTestConfigMapBuilder(name, namespace, data string) *testConfigMapBuilder

func NewTestSecretBuilder

func NewTestSecretBuilder(secretName, namespace, creds string) *testSecretBuilder

func SetupDefaultMocks

func SetupDefaultMocks(t *testing.T, localObjects []runtime.Object) *mocks

setupDefaultMocks is an easy way to setup all of the default mocks

Types

type ProjectClaimMatcher

type ProjectClaimMatcher struct {
	ActualProjectClaim *api.ProjectClaim
	FailReason         string
}

func NewProjectClaimMatcher

func NewProjectClaimMatcher() *ProjectClaimMatcher

func (*ProjectClaimMatcher) Matches

func (m *ProjectClaimMatcher) Matches(x interface{}) bool

func (*ProjectClaimMatcher) String

func (m *ProjectClaimMatcher) String() string

type ProjectReferenceMatcher

type ProjectReferenceMatcher struct {
	ActualProjectReference api.ProjectReference
	FailReason             string
}

func NewProjectReferenceMatcher

func NewProjectReferenceMatcher() *ProjectReferenceMatcher

func (*ProjectReferenceMatcher) Matches

func (m *ProjectReferenceMatcher) Matches(x interface{}) bool

func (*ProjectReferenceMatcher) String

func (m *ProjectReferenceMatcher) String() string

type SecretMatcher

type SecretMatcher struct {
	ActualSecret *corev1.Secret
	FailReason   string
}

func NewSecretMatcher

func NewSecretMatcher() *SecretMatcher

func (*SecretMatcher) Matches

func (m *SecretMatcher) Matches(x interface{}) bool

func (*SecretMatcher) String

func (m *SecretMatcher) String() string

Jump to

Keyboard shortcuts

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