Documentation ¶
Index ¶
- Constants
- type Access
- type AccessControl
- type AccessList
- type AccessListByVerb
- type AccessSet
- func (a AccessSet) AccessListFor(verb string, gr schema.GroupResource) (result AccessList)
- func (a *AccessSet) Add(verb string, gr schema.GroupResource, access Access)
- func (a AccessSet) Grants(verb string, gr schema.GroupResource, namespace, name string) bool
- func (a *AccessSet) Merge(right *AccessSet)
- func (a *AccessSet) Namespaces() (result []string)
- type AccessSetLookup
- type AccessStore
- type Resources
Constants ¶
View Source
const (
All = "*"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControl ¶
type AccessControl struct {
apiserver.SchemaBasedAccess
}
func NewAccessControl ¶
func NewAccessControl() *AccessControl
func (*AccessControl) CanDo ¶
func (a *AccessControl) CanDo(apiOp *types.APIRequest, resource, verb, namespace, name string) error
func (*AccessControl) CanWatch ¶
func (a *AccessControl) CanWatch(apiOp *types.APIRequest, schema *types.APISchema) error
type AccessList ¶
type AccessList []Access
func (AccessList) Grants ¶
func (a AccessList) Grants(namespace, name string) bool
type AccessListByVerb ¶
type AccessListByVerb map[string]AccessList
func GetAccessListMap ¶
func GetAccessListMap(s *types.APISchema) AccessListByVerb
func (AccessListByVerb) All ¶
func (a AccessListByVerb) All(verb string) bool
func (AccessListByVerb) AnyVerb ¶
func (a AccessListByVerb) AnyVerb(verb ...string) bool
func (AccessListByVerb) Granted ¶
func (a AccessListByVerb) Granted(verb string) (result map[string]Resources)
func (AccessListByVerb) Grants ¶
func (a AccessListByVerb) Grants(verb, namespace, name string) bool
type AccessSet ¶
type AccessSet struct { ID string // contains filtered or unexported fields }
func (AccessSet) AccessListFor ¶
func (a AccessSet) AccessListFor(verb string, gr schema.GroupResource) (result AccessList)
func (*AccessSet) Add ¶
func (a *AccessSet) Add(verb string, gr schema.GroupResource, access Access)
func (*AccessSet) Namespaces ¶
type AccessSetLookup ¶
type AccessStore ¶
type AccessStore struct {
// contains filtered or unexported fields
}
func NewAccessStore ¶
func (*AccessStore) PurgeUserData ¶
func (l *AccessStore) PurgeUserData(id string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.