assets

package
v0.0.0-...-4e12832 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoles

func GetRoles(f fs.ReadFileFS, clusterType configuration.ClusterType) ([]runtimeclient.Object, error)

func ParseTemplate

func ParseTemplate(f fs.ReadFileFS, fileName string) ([]runtimeclient.Object, error)

Types

type ClusterConfig

type ClusterConfig struct {
	API string `yaml:"api"`
}

type ClusterRoleBindings

type ClusterRoleBindings struct {
	ClusterRoles []string `yaml:"clusterRoles,omitempty"`
}

type Clusters

type Clusters struct {
	Host    ClusterConfig   `yaml:"host"`
	Members []MemberCluster `yaml:"members"`
}

type FS

type FS interface {
	fs.FS
	fs.ReadDirFS
	fs.ReadFileFS
}

interface that matches all the methods provided by embed.FS

type FilenameMatcher

type FilenameMatcher func(string) bool

type KubeSawAdmins

type KubeSawAdmins struct {
	Clusters        Clusters         `yaml:"clusters"`
	ServiceAccounts []ServiceAccount `yaml:"serviceAccounts"`
	Users           []User           `yaml:"users"`
}

func GetKubeSawAdminsConfig

func GetKubeSawAdminsConfig(kubeSawAdminsFile string) (*KubeSawAdmins, error)

type MemberCluster

type MemberCluster struct {
	Name          string `yaml:"name"`
	ClusterConfig `yaml:",inline"`
}

type PermissionBindings

type PermissionBindings struct {
	RoleBindings        []RoleBindings      `yaml:"roleBindings"`
	ClusterRoleBindings ClusterRoleBindings `yaml:"clusterRoleBindings"`
}

type PermissionsPerClusterType

type PermissionsPerClusterType map[string]PermissionBindings

type RoleBindings

type RoleBindings struct {
	Namespace    string   `yaml:"namespace"`
	Roles        []string `yaml:"roles,omitempty"`
	ClusterRoles []string `yaml:"clusterRoles,omitempty"`
}

type ServiceAccount

type ServiceAccount struct {
	Name                      string `yaml:"name"`
	Namespace                 string `yaml:"namespace,omitempty"`
	PermissionsPerClusterType `yaml:",inline"`
}

type User

type User struct {
	Name                      string   `yaml:"name"`
	ID                        []string `yaml:"id"`
	Groups                    []string `yaml:"groups"`
	PermissionsPerClusterType `yaml:",inline"`
}

Jump to

Keyboard shortcuts

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