secretclient

package
v0.3.2 Latest Latest
Warning

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

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

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
}

Jump to

Keyboard shortcuts

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