utils

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kotary-controller"

	CouldNotList = "Could not list resources %s"
)

Variables

This section is empty.

Functions

func Check

func Check(err error)

func Checkf

func Checkf(err error, msg string)

func DefaultLabelSelector

func DefaultLabelSelector() (selector labels.Selector)

Types

type ClusterRole

type ClusterRole int
const (
	CustomerRole ClusterRole = iota
	AppRole
	OpsRole
	AdminRole
)

func GetClusterRole

func GetClusterRole(str string) (error, ClusterRole)

func (ClusterRole) String

func (c ClusterRole) String() string

type LdapConfig

type LdapConfig struct {
	UserBase            string
	GroupBase           string
	AppGroupBase        string
	CustomerGroupBase   string
	OpsGroupBase        string
	AdminGroupBase      string
	Host                string
	Port                int
	UseSSL              bool
	StartTLS            bool
	SkipTLSVerification bool
	BindDN              string
	BindPassword        string
	UserFilter          string
	UserKey             string
	GroupFilter         string
	Attributes          []string
}

func LoadConfig

func LoadConfig() LdapConfig

Jump to

Keyboard shortcuts

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