rbac

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseServiceAccount

func ParseServiceAccount(n string) (namespace, basename string, isGroup, isValid bool)

ParseServiceAccount parses a service account name and identifies whether its a user or group.

For user name system:serviceaccount:a:b, it returns basename "a" and namespace "b". For group name system:serviceaccounts:a, it returns basename "" and namespace "a".

func ParseServiceAccountGroup

func ParseServiceAccountGroup(group string) (namespace string, _ error)

ParseServiceAccountGroup parses a service account group name.

For system:serviceaccounts, it returns namespace "". For system:serviceaccounts:a, it returns namespace "a".

func ParseServiceAccountUser

func ParseServiceAccountUser(user string) (namespace, basename string, _ error)

ParseServiceAccountUser parses a service account user name.

For system:serviceaccount:a:b, it returns namespace "a" and basename "b".

Types

type BindingSelector

type BindingSelector struct {
	RoleName    string
	BindingName string
}

func NewBindingSelector

func NewBindingSelector(s string) (*BindingSelector, error)

Directories

Path Synopsis
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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