Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func Allowed(src resources.ClusterObjectKey, verb string, tgt resources.ClusterObjectKey) (bool, string, error)
 - func CheckAccess(object resources.Object, verb string, used resources.Object) error
 - func CheckAccessWithRealms(object resources.Object, verb string, used resources.Object, rtypes RealmTypes) error
 - func Register(ctr AccessController, clusterId string, priority int)
 - func RegisterNamespaceOnlyAccess()
 - type AccessController
 - type NamespaceLocalAccessOnly
 - type RealmType
 - type RealmTypes
 - type Realms
 - func (this *Realms) AnnotationValue() string
 - func (this *Realms) Contains(realm string) bool
 - func (this *Realms) ContainsAnyOf(realms *Realms) bool
 - func (this *Realms) IsDefault() bool
 - func (this *Realms) IsResponsibleFor(obj resources.Object) bool
 - func (this *Realms) Realms() utils.StringSet
 - func (this *Realms) Size() int
 - func (this *Realms) String() string
 
Constants ¶
      View Source
      
  
    const ( ACCESS_PROCEED = iota ACCESS_GRANTED ACCESS_DENIED )
      View Source
      
  
    const ( MAX_PRIO = 0 MIN_PRIO = 32768 )
      View Source
      
  
const ANNOTATION_IGNORE_OWNERS = "resources.gardener.cloud/ignore-owners-for-access-control"
    Variables ¶
This section is empty.
Functions ¶
func Allowed ¶
func Allowed(src resources.ClusterObjectKey, verb string, tgt resources.ClusterObjectKey) (bool, string, error)
func CheckAccess ¶
func CheckAccessWithRealms ¶
func Register ¶
func Register(ctr AccessController, clusterId string, priority int)
func RegisterNamespaceOnlyAccess ¶
func RegisterNamespaceOnlyAccess()
Types ¶
type AccessController ¶
type AccessController interface {
	Name() string
	Allowed(src resources.ClusterObjectKey, verb string, tgt resources.ClusterObjectKey) (int, error)
}
    type NamespaceLocalAccessOnly ¶
type NamespaceLocalAccessOnly struct {
}
    func (*NamespaceLocalAccessOnly) Allowed ¶
func (this *NamespaceLocalAccessOnly) Allowed(src resources.ClusterObjectKey, verb string, tgt resources.ClusterObjectKey) (int, error)
func (*NamespaceLocalAccessOnly) Name ¶
func (this *NamespaceLocalAccessOnly) Name() string
type RealmType ¶
type RealmType struct {
	// contains filtered or unexported fields
}
    func NewRealmType ¶
func (*RealmType) GetAnnotation ¶
type RealmTypes ¶
type Realms ¶
type Realms struct {
	// contains filtered or unexported fields
}
    func (*Realms) AnnotationValue ¶
func (*Realms) ContainsAnyOf ¶
 Click to show internal directories. 
   Click to hide internal directories.