Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientFactory interface { // FromSecret creates a Kubernetes client for a cluster from a secret. FromSecret(ctx context.Context, secretID string) (kubernetes.Interface, error) }
ClientFactory returns a Kubernetes client.
type ClusterGetter ¶
type ClusterGetter interface {
GetClusterFromRequest(c *gin.Context) (cluster.CommonCluster, bool)
}
func NewClusterGetter ¶
func NewClusterGetter( manager *cluster.Manager, logger logrus.FieldLogger, errorHandler emperror.Handler, ) ClusterGetter
NewClusterGetter returns a new ClusterGetter instance which returns a cluster from an API request.
Click to show internal directories.
Click to hide internal directories.