util

package
v0.0.0-...-c8afd98 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinKeyValuePairs

func JoinKeyValuePairs(pairs map[string]string) []string

func ParseKeyValuePairs

func ParseKeyValuePairs(pairs []string) (map[string]string, error)

Parses strings of the form "key=value" into a map[string]string.

func RenderAccessMatrix

func RenderAccessMatrix(am AccessMatrix) string

func RenderBootstrapToken

func RenderBootstrapToken(token *core.BootstrapToken) string

func RenderBootstrapTokenList

func RenderBootstrapTokenList(list *core.BootstrapTokenList) string

func RenderCertInfoChain

func RenderCertInfoChain(chain []*core.CertInfo) string

func RenderClusterList

func RenderClusterList(list *core.ClusterList) string

func RenderRole

func RenderRole(role *core.Role) string

func RenderRoleBinding

func RenderRoleBinding(binding *core.RoleBinding) string

func RenderRoleBindingList

func RenderRoleBindingList(list *core.RoleBindingList) string

func RenderRoleList

func RenderRoleList(list *core.RoleList) string

Types

type AccessMatrix

type AccessMatrix struct {
	// List of users (in the order they will appear in the table)
	Users []string
	// Set of known clusters (rules referencing nonexistent clusters are marked)
	KnownClusters map[string]struct{}
	// Map of tenant IDs to a set of users that have access to the tenant
	ClustersToUsers map[string]map[string]struct{}
}

Jump to

Keyboard shortcuts

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