mock

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchClientset

func MatchClientset(expected *cage_k8s_core.Clientset) gomock.Matcher

MatchClientset returns a matcher to assert the equality of the individual clients.

Types

type Clientset

type Clientset struct {
	ClusterRoles        *mock_cluster_role.MockClient
	ClusterRoleBindings *mock_cluster_role_binding.MockClient
	Namespaces          *mock_namespace.MockClient
	Roles               *mock_role.MockClient
	RoleBindings        *mock_role_binding.MockClient
	Secrets             *mock_secret.MockClient
	ServiceAccounts     *mock_service_account.MockClient
}

Clientset fields mirror the non-mock Clientset so the latter's values can be replaced.

func NewClientset

func NewClientset(ctrl *gomock.Controller) *Clientset

func (*Clientset) ToReal

func (c *Clientset) ToReal() *cage_k8s_core.Clientset

Jump to

Keyboard shortcuts

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