Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretClient ¶
type SecretClient interface { // Give history cluster and current cluster, this function should keep remote is the same as define. // It should return the record of sync result, if sync failed, should return nil status. Sync(ctx context.Context, cluster, lastCluster *clustercrd.Cluster) (*SyncResult, error) // Clean up remote by giving cluster, this cluster is the last success record, not the current info. Delete(ctx context.Context, cluster *clustercrd.Cluster) error GetKubeConfig(ctx context.Context, cluster *clustercrd.Cluster) (string, error) Logout() }
type SyncResult ¶
type SyncResult struct {
SecretID string
}
Click to show internal directories.
Click to hide internal directories.