Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultTemplate() *templateapi.Template
- type REST
- func (r *REST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (s *REST) NamespaceScoped() bool
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
Constants ¶
View Source
const ( DefaultTemplateName = "project-request" ProjectNameParam = "PROJECT_NAME" ProjectDisplayNameParam = "PROJECT_DISPLAYNAME" ProjectDescriptionParam = "PROJECT_DESCRIPTION" ProjectAdminUserParam = "PROJECT_ADMIN_USER" ProjectRequesterParam = "PROJECT_REQUESTING_USER" )
Variables ¶
View Source
var ( ForbiddenNames = []string{"openshift", "kubernetes", "kube"} ForbiddenPrefixes = []string{"openshift-", "kubernetes-", "kube-"} )
Functions ¶
func DefaultTemplate ¶
func DefaultTemplate() *templateapi.Template
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
func NewREST ¶
func NewREST(message, templateNamespace, templateName string, projectClient projectclientinternal.ProjectsGetter, templateClient templateclient.Interface, sarClient authorizationclient.SubjectAccessReviewInterface, client dynamic.Interface, restMapper meta.RESTMapper, roleBindings rbaclisters.RoleBindingLister) *REST
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶
Click to show internal directories.
Click to hide internal directories.