Documentation
¶
Index ¶
- func CopyMap(original map[string]string) map[string]string
- func Difference(a, b []string) (diff []string)
- func GetKeyValSlice(m map[string]string) (key []string, val []string)
- func Include(target string, values []string) bool
- func MaxOf[T constraints.Ordered](vars ...T) T
- func Maximum[T constraints.Ordered](a, b T) T
- func MinOf[T constraints.Ordered](vars ...T) T
- func Minimum[T constraints.Ordered](a, b T) T
- func NewRateLimitedClient(qps int, burst int) (*http.Client, error)
- func RemoveDuplicatedSg(list []string) []string
- type SecurityGroupForPods
- type SecurityGroupForPodsAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶ added in v1.1.0
Difference returns a-b, elements present in a and not in b
func GetKeyValSlice ¶ added in v1.1.0
func MaxOf ¶ added in v1.1.5
func MaxOf[T constraints.Ordered](vars ...T) T
func Maximum ¶ added in v1.1.5
func Maximum[T constraints.Ordered](a, b T) T
func MinOf ¶ added in v1.1.5
func MinOf[T constraints.Ordered](vars ...T) T
func Minimum ¶ added in v1.1.5
func Minimum[T constraints.Ordered](a, b T) T
func NewRateLimitedClient ¶
NewRateLimitedClient returns a new HTTP client with rate limiter.
func RemoveDuplicatedSg ¶
RemoveDuplicatedSg removes duplicated items from a string slice. It returns a no duplicates string slice.
Types ¶
type SecurityGroupForPods ¶ added in v1.1.0
func (*SecurityGroupForPods) GetMatchingSecurityGroupForPods ¶ added in v1.1.0
func (s *SecurityGroupForPods) GetMatchingSecurityGroupForPods(pod *corev1.Pod) ([]string, error)
GetMatchingSecurityGroupForPods returns the list of security groups that should be associated with the Pod by matching against all the SecurityGroupPolicy
type SecurityGroupForPodsAPI ¶ added in v1.1.0
type SecurityGroupForPodsAPI interface {
GetMatchingSecurityGroupForPods(pod *corev1.Pod) ([]string, error)
}
func NewSecurityGroupForPodsAPI ¶ added in v1.1.0
func NewSecurityGroupForPodsAPI(client client.Client, log logr.Logger) SecurityGroupForPodsAPI
NewSecurityGroupForPodsAPI returns the SecurityGroupForPod APIs for common operations on objects Using Security Group Policy
Click to show internal directories.
Click to hide internal directories.