project

package
v2.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 27 Imported by: 2

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) *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) 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) (*v1.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