types

package
v1.0.839 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionGroupSelector

type PermissionGroupSelector struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
}

+kubebuilder:object:generate=true

func (PermissionGroupSelector) Empty

func (t PermissionGroupSelector) Empty() bool

type PermissionGroupSubjects

type PermissionGroupSubjects struct {
	Notifications []PermissionGroupSelector `json:"notifications,omitempty"`
	People        []string                  `json:"people,omitempty"`
	Teams         []string                  `json:"teams,omitempty"`
}

+kubebuilder:object:generate=true

type PermissionObject

type PermissionObject struct {
	Playbooks  []types.ResourceSelector `json:"playbooks,omitempty"`
	Configs    []types.ResourceSelector `json:"configs,omitempty"`
	Components []types.ResourceSelector `json:"components,omitempty"`
}

func (*PermissionObject) GlobalObject

func (t *PermissionObject) GlobalObject() (string, bool)

GlobalObject checks if the object selector semantically maps to a global object and returns the corresponding global object if applicable. For example:

configs:
	- name: '*'

is interpreted as the object: catalog.

func (PermissionObject) RequiredMatchCount

func (t PermissionObject) RequiredMatchCount() int

Jump to

Keyboard shortcuts

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