Token random generation (#136)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
Hussein Galal
2024-11-01 21:27:03 +02:00
committed by GitHub
parent 26a7fa023f
commit 84f921641b
14 changed files with 225 additions and 64 deletions
+3 -1
View File
@@ -31,12 +31,14 @@ const (
type Server struct {
cluster *v1alpha1.Cluster
client client.Client
token string
}
func New(cluster *v1alpha1.Cluster, client client.Client) *Server {
func New(cluster *v1alpha1.Cluster, client client.Client, token string) *Server {
return &Server{
cluster: cluster,
client: client,
token: token,
}
}