Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractRoleRefAndSubjects ¶
func ExtractRoleRefAndSubjects(raw *unstructured.Unstructured) (*rbacv1.RoleRef, []rbacv1.Subject, error)
func Parse ¶
func Parse() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding, []rbacv1.Role, []rbacv1.RoleBinding, error)
Types ¶
type DownStreamError ¶
type DownStreamError struct {
// contains filtered or unexported fields
}
func (DownStreamError) Error ¶
func (d DownStreamError) Error() string
type ParsingError ¶
type ParsingError interface { Error() string // contains filtered or unexported methods }
func ExtractRules ¶
func ExtractRules(raw *unstructured.Unstructured) ([]rbacv1.PolicyRule, ParsingError)
func FirstRound ¶
func FirstRound(document []byte) (*metav1.TypeMeta, *metav1.ObjectMeta, *unstructured.Unstructured, ParsingError)
type ShortDocumentError ¶
type ShortDocumentError struct { }
func (ShortDocumentError) Error ¶
func (s ShortDocumentError) Error() string
Click to show internal directories.
Click to hide internal directories.