github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/pkg/clients/gitops/controller.go (about) 1 package gitops 2 3 import ( 4 kubeCl "github.com/redhat-appstudio/e2e-tests/pkg/clients/kubernetes" 5 ) 6 7 // Factory to initialize the communication against different APIs like kubernetes. 8 type GitopsController struct { 9 // Generates a client to interact with kubernetes clusters. 10 *kubeCl.CustomClient 11 } 12 13 // Initializes all the clients and return interface to operate with application-service controller. 14 func NewSuiteController(kube *kubeCl.CustomClient) (*GitopsController, error) { 15 return &GitopsController{ 16 kube, 17 }, nil 18 }