project

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 27 Imported by: 23

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 added in v0.8.0

CreateToken creates a new token to access a project

func (*Server) Delete

Delete deletes a project

func (*Server) DeleteToken added in v0.8.0

DeleteToken deletes a token in a project

func (*Server) Get

Get returns a project by name

func (*Server) GetGlobalProjects added in v1.8.0

func (s *Server) GetGlobalProjects(ctx context.Context, q *project.ProjectQuery) (*project.GlobalProjectsResponse, error)

GetGlobalProjects returns global projects

func (*Server) GetSyncWindowsState added in v1.2.4

func (s *Server) GetSyncWindowsState(ctx context.Context, q *project.SyncWindowsQuery) (*project.SyncWindowsResponse, error)

func (*Server) List

List returns list of projects

func (*Server) ListEvents added in v0.8.0

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

func (*Server) NormalizeProjs added in v1.7.0

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