Help us shape the future of Go! Take the 2026 Go Developer Survey

project

package
v3.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

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, db db.ArgoDB, enableK8sEvent []string,
) *Server

NewServer returns a new instance of the Project service

func (*Server) Create

Create a new project

func (*Server) CreateToken

CreateToken creates a new token to access a project

func (*Server) Delete

Delete deletes a project

func (*Server) DeleteToken

DeleteToken deletes a token in a project

func (*Server) Get

Get returns a project by name

func (*Server) GetDetailedProject

func (s *Server) GetDetailedProject(ctx context.Context, q *project.ProjectQuery) (*project.DetailedProjectsResponse, error)

GetDetailedProject returns a project with scoped resources

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

List returns list of projects

func (*Server) ListEvents

func (s *Server) ListEvents(ctx context.Context, q *project.ProjectQuery) (*eventspb.EventList, error)

func (*Server) NormalizeProjs

func (s *Server) NormalizeProjs() error

func (*Server) Update

Update updates a project

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL