Documentation ¶
Index ¶
- Constants
- type Server
- func (s *Server) Create(ctx context.Context, q *project.ProjectCreateRequest) (*v1alpha1.AppProject, error)
- func (s *Server) CreateToken(ctx context.Context, q *project.ProjectTokenCreateRequest) (*project.ProjectTokenResponse, error)
- func (s *Server) Delete(ctx context.Context, q *project.ProjectQuery) (*project.EmptyResponse, error)
- func (s *Server) DeleteToken(ctx context.Context, q *project.ProjectTokenDeleteRequest) (*project.EmptyResponse, error)
- func (s *Server) Get(ctx context.Context, q *project.ProjectQuery) (*v1alpha1.AppProject, error)
- func (s *Server) GetGlobalProjects(ctx context.Context, q *project.ProjectQuery) (*project.GlobalProjectsResponse, error)
- func (s *Server) GetSyncWindowsState(ctx context.Context, q *project.SyncWindowsQuery) (*project.SyncWindowsResponse, error)
- func (s *Server) List(ctx context.Context, q *project.ProjectQuery) (*v1alpha1.AppProjectList, error)
- func (s *Server) ListEvents(ctx context.Context, q *project.ProjectQuery) (*v1.EventList, error)
- func (s *Server) NormalizeProjs() error
- func (s *Server) Update(ctx context.Context, q *project.ProjectUpdateRequest) (*v1alpha1.AppProject, error)
Constants ¶
View Source
const (
// JWTTokenSubFormat format of the JWT token subject that Argo CD vends out.
JWTTokenSubFormat = "proj:%s:%s"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Project service
func NewServer ¶
func NewServer(ns string, kubeclientset kubernetes.Interface, appclientset appclientset.Interface, enf *rbac.Enforcer, projectLock sync.KeyLock, sessionMgr *session.SessionManager, policyEnf *rbacpolicy.RBACPolicyEnforcer, projInformer cache.SharedIndexInformer, settingsMgr *settings.SettingsManager) *Server
NewServer returns a new instance of the Project service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, q *project.ProjectCreateRequest) (*v1alpha1.AppProject, error)
Create a new project
func (*Server) CreateToken ¶
func (s *Server) CreateToken(ctx context.Context, q *project.ProjectTokenCreateRequest) (*project.ProjectTokenResponse, error)
CreateToken creates a new token to access a project
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, q *project.ProjectQuery) (*project.EmptyResponse, error)
Delete deletes a project
func (*Server) DeleteToken ¶
func (s *Server) DeleteToken(ctx context.Context, q *project.ProjectTokenDeleteRequest) (*project.EmptyResponse, error)
DeleteToken deletes a token in a project
func (*Server) Get ¶
func (s *Server) Get(ctx context.Context, q *project.ProjectQuery) (*v1alpha1.AppProject, error)
Get returns a project by name
func (*Server) GetGlobalProjects ¶
func (s *Server) GetGlobalProjects(ctx context.Context, q *project.ProjectQuery) (*project.GlobalProjectsResponse, error)
GetGlobalProjects returns global projects
func (*Server) GetSyncWindowsState ¶
func (s *Server) GetSyncWindowsState(ctx context.Context, q *project.SyncWindowsQuery) (*project.SyncWindowsResponse, error)
func (*Server) List ¶
func (s *Server) List(ctx context.Context, q *project.ProjectQuery) (*v1alpha1.AppProjectList, error)
List returns list of projects
func (*Server) ListEvents ¶
func (*Server) NormalizeProjs ¶
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, q *project.ProjectUpdateRequest) (*v1alpha1.AppProject, error)
Update updates a project
Click to show internal directories.
Click to hide internal directories.