Documentation ¶
Index ¶
- type Server
- func (s *Server) Create(ctx context.Context, q *cluster.ClusterCreateRequest) (*appv1.Cluster, error)
- func (s *Server) Delete(ctx context.Context, q *cluster.ClusterQuery) (*cluster.ClusterResponse, error)
- func (s *Server) Get(ctx context.Context, q *cluster.ClusterQuery) (*appv1.Cluster, error)
- func (s *Server) List(ctx context.Context, q *cluster.ClusterQuery) (*appv1.ClusterList, error)
- func (s *Server) RotateAuth(ctx context.Context, q *cluster.ClusterQuery) (*cluster.ClusterResponse, error)
- func (s *Server) Update(ctx context.Context, q *cluster.ClusterUpdateRequest) (*appv1.Cluster, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Cluster service
func NewServer ¶
func NewServer(db db.ArgoDB, enf *rbac.Enforcer, cache *servercache.Cache, kubectl kube.Kubectl) *Server
NewServer returns a new instance of the Cluster service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, q *cluster.ClusterCreateRequest) (*appv1.Cluster, error)
Create creates a cluster
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, q *cluster.ClusterQuery) (*cluster.ClusterResponse, error)
Delete deletes a cluster by name
func (*Server) List ¶
func (s *Server) List(ctx context.Context, q *cluster.ClusterQuery) (*appv1.ClusterList, error)
List returns list of clusters
func (*Server) RotateAuth ¶ added in v1.1.0
func (s *Server) RotateAuth(ctx context.Context, q *cluster.ClusterQuery) (*cluster.ClusterResponse, error)
RotateAuth rotates the bearer token used for a cluster
Click to show internal directories.
Click to hide internal directories.