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
Click to show internal directories.
Click to hide internal directories.