Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTransientClientErr ¶
IsTransientClientErr checks if the error is a transient error This suggests that a retry (without any change) might be successful
func StartLease ¶
func StartLease()
Types ¶
type ReloadableHubClient ¶
ReloadableHubClient is a wrapper around the hub client that allows reloading the client. This is useful when the kubeconfig file is updated.
func NewReloadableHubClient ¶
func NewReloadableHubClient(filePath string, clientScheme *runtime.Scheme) (*ReloadableHubClient, error)
NewReloadableHubClient creates a new hub client with a reload function.
func NewReloadableHubClientWithReloadFunc ¶
func NewReloadableHubClientWithReloadFunc(reload func() (client.Client, error)) (*ReloadableHubClient, error)
NewReloadableHubClientWithReloadFunc creates a new hub client with a reload function. The reload function is called when the Reload method is called. This can be handy for testing purposes.
func (*ReloadableHubClient) Reload ¶
func (c *ReloadableHubClient) Reload() (*ReloadableHubClient, error)
Reload reloads the hub client and returns a new instance of HubClientWithReload. HubClientWithReload is immutable.
Click to show internal directories.
Click to hide internal directories.