matrix

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build() (Matrices, error)
}

func New

func New(c client.Client) Builder

type Matrices

type Matrices struct {
	ClusterRoles Matrix `json:"clusterRoles"`
	Roles        Matrix `json:"roles"`
}

type Matrix

type Matrix struct {
	Objects []string `json:"objects"`
	Roles   []Role   `json:"roles"`
	// contains filtered or unexported fields
}

func NewMatrix

func NewMatrix() Matrix

type MatrixBuilder

type MatrixBuilder struct {
	// contains filtered or unexported fields
}

func (MatrixBuilder) Build

func (mb MatrixBuilder) Build() (Matrices, error)

type Role

type Role struct {
	Name      string              `json:"name"`
	Objects   map[string][]string `json:"objects"`
	Subjects  []rbac.Subject      `json:"subjects"`
	Namespace string              `json:"namespace,omitempty"`
}

func NewRole

func NewRole() Role

Jump to

Keyboard shortcuts

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