Documentation ¶
Overview ¶
Package fake implements mock Identity interfaces for test purposes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityReader ¶
type IdentityReader struct {
// contains filtered or unexported fields
}
IdentityReader is a struct implementing an IdentityReader mock for testing purposes.
func NewIdentityReader ¶
func NewIdentityReader() *IdentityReader
NewIdentityReader creates a new identityReader instance.
func (*IdentityReader) Add ¶
func (i *IdentityReader) Add(clusterID, namespace string, restcfg *rest.Config) *IdentityReader
Add adds the associations about a remote cluster to the identityReader.
func (*IdentityReader) GetConfig ¶
func (i *IdentityReader) GetConfig(remoteClusterID, namespace string) (*rest.Config, error)
GetConfig retrieves the rest config associated with a remote cluster.
func (*IdentityReader) GetRemoteTenantNamespace ¶
func (i *IdentityReader) GetRemoteTenantNamespace(remoteClusterID, namespace string) (string, error)
GetRemoteTenantNamespace retrieves the tenant namespace associated with a remote cluster.
Click to show internal directories.
Click to hide internal directories.