clustersmngrfakes

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClientsPool

type FakeClientsPool struct {
	AddStub func(client.Client, cluster.Cluster) error

	ClientStub func(string) (client.Client, error)

	ClientsStub func() map[string]client.Client
	// contains filtered or unexported fields
}

func (*FakeClientsPool) Add

func (fake *FakeClientsPool) Add(arg1 client.Client, arg2 cluster.Cluster) error

func (*FakeClientsPool) AddArgsForCall

func (fake *FakeClientsPool) AddArgsForCall(i int) (client.Client, cluster.Cluster)

func (*FakeClientsPool) AddCallCount

func (fake *FakeClientsPool) AddCallCount() int

func (*FakeClientsPool) AddCalls

func (fake *FakeClientsPool) AddCalls(stub func(client.Client, cluster.Cluster) error)

func (*FakeClientsPool) AddReturns

func (fake *FakeClientsPool) AddReturns(result1 error)

func (*FakeClientsPool) AddReturnsOnCall

func (fake *FakeClientsPool) AddReturnsOnCall(i int, result1 error)

func (*FakeClientsPool) Client

func (fake *FakeClientsPool) Client(arg1 string) (client.Client, error)

func (*FakeClientsPool) ClientArgsForCall

func (fake *FakeClientsPool) ClientArgsForCall(i int) string

func (*FakeClientsPool) ClientCallCount

func (fake *FakeClientsPool) ClientCallCount() int

func (*FakeClientsPool) ClientCalls

func (fake *FakeClientsPool) ClientCalls(stub func(string) (client.Client, error))

func (*FakeClientsPool) ClientReturns

func (fake *FakeClientsPool) ClientReturns(result1 client.Client, result2 error)

func (*FakeClientsPool) ClientReturnsOnCall

func (fake *FakeClientsPool) ClientReturnsOnCall(i int, result1 client.Client, result2 error)

func (*FakeClientsPool) Clients

func (fake *FakeClientsPool) Clients() map[string]client.Client

func (*FakeClientsPool) ClientsCallCount

func (fake *FakeClientsPool) ClientsCallCount() int

func (*FakeClientsPool) ClientsCalls

func (fake *FakeClientsPool) ClientsCalls(stub func() map[string]client.Client)

func (*FakeClientsPool) ClientsReturns

func (fake *FakeClientsPool) ClientsReturns(result1 map[string]client.Client)

func (*FakeClientsPool) ClientsReturnsOnCall

func (fake *FakeClientsPool) ClientsReturnsOnCall(i int, result1 map[string]client.Client)

func (*FakeClientsPool) Invocations

func (fake *FakeClientsPool) Invocations() map[string][][]interface{}

type FakeClusterFetcher

type FakeClusterFetcher struct {
	FetchStub func(context.Context) ([]cluster.Cluster, error)
	// contains filtered or unexported fields
}

func (*FakeClusterFetcher) Fetch

func (fake *FakeClusterFetcher) Fetch(arg1 context.Context) ([]cluster.Cluster, error)

func (*FakeClusterFetcher) FetchArgsForCall

func (fake *FakeClusterFetcher) FetchArgsForCall(i int) context.Context

func (*FakeClusterFetcher) FetchCallCount

func (fake *FakeClusterFetcher) FetchCallCount() int

func (*FakeClusterFetcher) FetchCalls

func (fake *FakeClusterFetcher) FetchCalls(stub func(context.Context) ([]cluster.Cluster, error))

func (*FakeClusterFetcher) FetchReturns

func (fake *FakeClusterFetcher) FetchReturns(result1 []cluster.Cluster, result2 error)

func (*FakeClusterFetcher) FetchReturnsOnCall

func (fake *FakeClusterFetcher) FetchReturnsOnCall(i int, result1 []cluster.Cluster, result2 error)

func (*FakeClusterFetcher) Invocations

func (fake *FakeClusterFetcher) Invocations() map[string][][]interface{}

type FakeClustersManager added in v0.9.5

type FakeClustersManager struct {
	GetClustersStub func() []cluster.Cluster

	GetClustersNamespacesStub func() map[string][]v1.Namespace

	GetImpersonatedClientStub func(context.Context, *auth.UserPrincipal) (clustersmngr.Client, error)

	GetImpersonatedClientForClusterStub func(context.Context, *auth.UserPrincipal, string) (clustersmngr.Client, error)

	GetImpersonatedDiscoveryClientStub func(context.Context, *auth.UserPrincipal, string) (discovery.DiscoveryInterface, error)

	GetServerClientStub func(context.Context) (clustersmngr.Client, error)

	GetUserNamespacesStub func(*auth.UserPrincipal) map[string][]v1.Namespace

	RemoveWatcherStub func(*clustersmngr.ClustersWatcher)

	StartStub func(context.Context)

	SubscribeStub func() *clustersmngr.ClustersWatcher

	UpdateClustersStub func(context.Context) error

	UpdateNamespacesStub func(context.Context) error

	UpdateUserNamespacesStub func(context.Context, *auth.UserPrincipal)
	// contains filtered or unexported fields
}

func (*FakeClustersManager) GetClusters added in v0.10.1

func (fake *FakeClustersManager) GetClusters() []cluster.Cluster

func (*FakeClustersManager) GetClustersCallCount added in v0.10.1

func (fake *FakeClustersManager) GetClustersCallCount() int

func (*FakeClustersManager) GetClustersCalls added in v0.10.1

func (fake *FakeClustersManager) GetClustersCalls(stub func() []cluster.Cluster)

func (*FakeClustersManager) GetClustersNamespaces added in v0.9.5

func (fake *FakeClustersManager) GetClustersNamespaces() map[string][]v1.Namespace

func (*FakeClustersManager) GetClustersNamespacesCallCount added in v0.9.5

func (fake *FakeClustersManager) GetClustersNamespacesCallCount() int

func (*FakeClustersManager) GetClustersNamespacesCalls added in v0.9.5

func (fake *FakeClustersManager) GetClustersNamespacesCalls(stub func() map[string][]v1.Namespace)

func (*FakeClustersManager) GetClustersNamespacesReturns added in v0.9.5

func (fake *FakeClustersManager) GetClustersNamespacesReturns(result1 map[string][]v1.Namespace)

func (*FakeClustersManager) GetClustersNamespacesReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) GetClustersNamespacesReturnsOnCall(i int, result1 map[string][]v1.Namespace)

func (*FakeClustersManager) GetClustersReturns added in v0.10.1

func (fake *FakeClustersManager) GetClustersReturns(result1 []cluster.Cluster)

func (*FakeClustersManager) GetClustersReturnsOnCall added in v0.10.1

func (fake *FakeClustersManager) GetClustersReturnsOnCall(i int, result1 []cluster.Cluster)

func (*FakeClustersManager) GetImpersonatedClient added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClient(arg1 context.Context, arg2 *auth.UserPrincipal) (clustersmngr.Client, error)

func (*FakeClustersManager) GetImpersonatedClientArgsForCall added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientArgsForCall(i int) (context.Context, *auth.UserPrincipal)

func (*FakeClustersManager) GetImpersonatedClientCallCount added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientCallCount() int

func (*FakeClustersManager) GetImpersonatedClientCalls added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientCalls(stub func(context.Context, *auth.UserPrincipal) (clustersmngr.Client, error))

func (*FakeClustersManager) GetImpersonatedClientForCluster added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientForCluster(arg1 context.Context, arg2 *auth.UserPrincipal, arg3 string) (clustersmngr.Client, error)

func (*FakeClustersManager) GetImpersonatedClientForClusterArgsForCall added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientForClusterArgsForCall(i int) (context.Context, *auth.UserPrincipal, string)

func (*FakeClustersManager) GetImpersonatedClientForClusterCallCount added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientForClusterCallCount() int

func (*FakeClustersManager) GetImpersonatedClientForClusterCalls added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientForClusterCalls(stub func(context.Context, *auth.UserPrincipal, string) (clustersmngr.Client, error))

func (*FakeClustersManager) GetImpersonatedClientForClusterReturns added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientForClusterReturns(result1 clustersmngr.Client, result2 error)

func (*FakeClustersManager) GetImpersonatedClientForClusterReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientForClusterReturnsOnCall(i int, result1 clustersmngr.Client, result2 error)

func (*FakeClustersManager) GetImpersonatedClientReturns added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientReturns(result1 clustersmngr.Client, result2 error)

func (*FakeClustersManager) GetImpersonatedClientReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedClientReturnsOnCall(i int, result1 clustersmngr.Client, result2 error)

func (*FakeClustersManager) GetImpersonatedDiscoveryClient added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedDiscoveryClient(arg1 context.Context, arg2 *auth.UserPrincipal, arg3 string) (discovery.DiscoveryInterface, error)

func (*FakeClustersManager) GetImpersonatedDiscoveryClientArgsForCall added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedDiscoveryClientArgsForCall(i int) (context.Context, *auth.UserPrincipal, string)

func (*FakeClustersManager) GetImpersonatedDiscoveryClientCallCount added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedDiscoveryClientCallCount() int

func (*FakeClustersManager) GetImpersonatedDiscoveryClientCalls added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedDiscoveryClientCalls(stub func(context.Context, *auth.UserPrincipal, string) (discovery.DiscoveryInterface, error))

func (*FakeClustersManager) GetImpersonatedDiscoveryClientReturns added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedDiscoveryClientReturns(result1 discovery.DiscoveryInterface, result2 error)

func (*FakeClustersManager) GetImpersonatedDiscoveryClientReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) GetImpersonatedDiscoveryClientReturnsOnCall(i int, result1 discovery.DiscoveryInterface, result2 error)

func (*FakeClustersManager) GetServerClient added in v0.9.5

func (fake *FakeClustersManager) GetServerClient(arg1 context.Context) (clustersmngr.Client, error)

func (*FakeClustersManager) GetServerClientArgsForCall added in v0.9.5

func (fake *FakeClustersManager) GetServerClientArgsForCall(i int) context.Context

func (*FakeClustersManager) GetServerClientCallCount added in v0.9.5

func (fake *FakeClustersManager) GetServerClientCallCount() int

func (*FakeClustersManager) GetServerClientCalls added in v0.9.5

func (fake *FakeClustersManager) GetServerClientCalls(stub func(context.Context) (clustersmngr.Client, error))

func (*FakeClustersManager) GetServerClientReturns added in v0.9.5

func (fake *FakeClustersManager) GetServerClientReturns(result1 clustersmngr.Client, result2 error)

func (*FakeClustersManager) GetServerClientReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) GetServerClientReturnsOnCall(i int, result1 clustersmngr.Client, result2 error)

func (*FakeClustersManager) GetUserNamespaces added in v0.9.5

func (fake *FakeClustersManager) GetUserNamespaces(arg1 *auth.UserPrincipal) map[string][]v1.Namespace

func (*FakeClustersManager) GetUserNamespacesArgsForCall added in v0.9.5

func (fake *FakeClustersManager) GetUserNamespacesArgsForCall(i int) *auth.UserPrincipal

func (*FakeClustersManager) GetUserNamespacesCallCount added in v0.9.5

func (fake *FakeClustersManager) GetUserNamespacesCallCount() int

func (*FakeClustersManager) GetUserNamespacesCalls added in v0.9.5

func (fake *FakeClustersManager) GetUserNamespacesCalls(stub func(*auth.UserPrincipal) map[string][]v1.Namespace)

func (*FakeClustersManager) GetUserNamespacesReturns added in v0.9.5

func (fake *FakeClustersManager) GetUserNamespacesReturns(result1 map[string][]v1.Namespace)

func (*FakeClustersManager) GetUserNamespacesReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) GetUserNamespacesReturnsOnCall(i int, result1 map[string][]v1.Namespace)

func (*FakeClustersManager) Invocations added in v0.9.5

func (fake *FakeClustersManager) Invocations() map[string][][]interface{}

func (*FakeClustersManager) RemoveWatcher added in v0.9.5

func (fake *FakeClustersManager) RemoveWatcher(arg1 *clustersmngr.ClustersWatcher)

func (*FakeClustersManager) RemoveWatcherArgsForCall added in v0.9.5

func (fake *FakeClustersManager) RemoveWatcherArgsForCall(i int) *clustersmngr.ClustersWatcher

func (*FakeClustersManager) RemoveWatcherCallCount added in v0.9.5

func (fake *FakeClustersManager) RemoveWatcherCallCount() int

func (*FakeClustersManager) RemoveWatcherCalls added in v0.9.5

func (fake *FakeClustersManager) RemoveWatcherCalls(stub func(*clustersmngr.ClustersWatcher))

func (*FakeClustersManager) Start added in v0.9.5

func (fake *FakeClustersManager) Start(arg1 context.Context)

func (*FakeClustersManager) StartArgsForCall added in v0.9.5

func (fake *FakeClustersManager) StartArgsForCall(i int) context.Context

func (*FakeClustersManager) StartCallCount added in v0.9.5

func (fake *FakeClustersManager) StartCallCount() int

func (*FakeClustersManager) StartCalls added in v0.9.5

func (fake *FakeClustersManager) StartCalls(stub func(context.Context))

func (*FakeClustersManager) Subscribe added in v0.9.5

func (*FakeClustersManager) SubscribeCallCount added in v0.9.5

func (fake *FakeClustersManager) SubscribeCallCount() int

func (*FakeClustersManager) SubscribeCalls added in v0.9.5

func (fake *FakeClustersManager) SubscribeCalls(stub func() *clustersmngr.ClustersWatcher)

func (*FakeClustersManager) SubscribeReturns added in v0.9.5

func (fake *FakeClustersManager) SubscribeReturns(result1 *clustersmngr.ClustersWatcher)

func (*FakeClustersManager) SubscribeReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) SubscribeReturnsOnCall(i int, result1 *clustersmngr.ClustersWatcher)

func (*FakeClustersManager) UpdateClusters added in v0.9.5

func (fake *FakeClustersManager) UpdateClusters(arg1 context.Context) error

func (*FakeClustersManager) UpdateClustersArgsForCall added in v0.9.5

func (fake *FakeClustersManager) UpdateClustersArgsForCall(i int) context.Context

func (*FakeClustersManager) UpdateClustersCallCount added in v0.9.5

func (fake *FakeClustersManager) UpdateClustersCallCount() int

func (*FakeClustersManager) UpdateClustersCalls added in v0.9.5

func (fake *FakeClustersManager) UpdateClustersCalls(stub func(context.Context) error)

func (*FakeClustersManager) UpdateClustersReturns added in v0.9.5

func (fake *FakeClustersManager) UpdateClustersReturns(result1 error)

func (*FakeClustersManager) UpdateClustersReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) UpdateClustersReturnsOnCall(i int, result1 error)

func (*FakeClustersManager) UpdateNamespaces added in v0.9.5

func (fake *FakeClustersManager) UpdateNamespaces(arg1 context.Context) error

func (*FakeClustersManager) UpdateNamespacesArgsForCall added in v0.9.5

func (fake *FakeClustersManager) UpdateNamespacesArgsForCall(i int) context.Context

func (*FakeClustersManager) UpdateNamespacesCallCount added in v0.9.5

func (fake *FakeClustersManager) UpdateNamespacesCallCount() int

func (*FakeClustersManager) UpdateNamespacesCalls added in v0.9.5

func (fake *FakeClustersManager) UpdateNamespacesCalls(stub func(context.Context) error)

func (*FakeClustersManager) UpdateNamespacesReturns added in v0.9.5

func (fake *FakeClustersManager) UpdateNamespacesReturns(result1 error)

func (*FakeClustersManager) UpdateNamespacesReturnsOnCall added in v0.9.5

func (fake *FakeClustersManager) UpdateNamespacesReturnsOnCall(i int, result1 error)

func (*FakeClustersManager) UpdateUserNamespaces added in v0.9.5

func (fake *FakeClustersManager) UpdateUserNamespaces(arg1 context.Context, arg2 *auth.UserPrincipal)

func (*FakeClustersManager) UpdateUserNamespacesArgsForCall added in v0.9.5

func (fake *FakeClustersManager) UpdateUserNamespacesArgsForCall(i int) (context.Context, *auth.UserPrincipal)

func (*FakeClustersManager) UpdateUserNamespacesCallCount added in v0.9.5

func (fake *FakeClustersManager) UpdateUserNamespacesCallCount() int

func (*FakeClustersManager) UpdateUserNamespacesCalls added in v0.9.5

func (fake *FakeClustersManager) UpdateUserNamespacesCalls(stub func(context.Context, *auth.UserPrincipal))

Jump to

Keyboard shortcuts

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