objectkinds

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// Any represents the ObjectKind that matches any object.
	Any = "Any"
)
View Source
const (
	// ClusterRole represents Kubernetes ClusterRole objects. Case sensitive.
	ClusterRole = "ClusterRole"
)
View Source
const (
	// ClusterRoleBinding represents Kubernetes ClusterRoleBinding objects. Case sensitive.
	ClusterRoleBinding = "ClusterRoleBinding"
)
View Source
const (
	// DeploymentLike is the name of the DeploymentLike ObjectKind.
	DeploymentLike = "DeploymentLike"
)
View Source
const (
	// HorizontalPodAutoscaler represents Kubernetes HorizontalPodAutoscaler objects. Case sensitive.
	HorizontalPodAutoscaler = "HorizontalPodAutoscaler"
)
View Source
const (
	// NetworkPolicy represents Kubernetes NetworkPolicy objects.
	NetworkPolicy = "NetworkPolicy"
)
View Source
const (
	// Role represents Kubernetes Role objects. Case sensitive.
	Role = "Role"
)
View Source
const (
	// RoleBinding represents Kubernetes RoleBinding objects. Case sensitive.
	RoleBinding = "RoleBinding"
)
View Source
const (
	// Service represents Kubernetes Service objects.
	Service = "Service"
)
View Source
const (
	// ServiceAccount represents Kubernetes ServiceAccount objects.
	ServiceAccount = "ServiceAccount"
)

Variables

This section is empty.

Functions

func AllObjectKinds

func AllObjectKinds() []string

AllObjectKinds will return all the object kind names that are registered

func GetClusterRoleAPIVersion

func GetClusterRoleAPIVersion() string

GetClusterRoleAPIVersion returns ClusterRole's APIVersion

func GetClusterRoleBindingAPIVersion

func GetClusterRoleBindingAPIVersion() string

GetClusterRoleBindingAPIVersion returns ClusterRoleBinding's APIVersion

func GetHorizontalPodAutoscalerAPIVersion

func GetHorizontalPodAutoscalerAPIVersion(version string) string

GetHorizontalPodAutoscalerAPIVersion returns HorizontalPodAutoscaler's APIVersion

func GetNetworkPolicyAPIVersion

func GetNetworkPolicyAPIVersion() string

GetNetworkPolicyAPIVersion returns networkpolicy's apiversion

func GetRoleAPIVersion

func GetRoleAPIVersion() string

GetRoleAPIVersion returns Role's APIVersion

func GetRoleBindingAPIVersion

func GetRoleBindingAPIVersion() string

GetRoleBindingAPIVersion returns RoleBinding's APIVersion

Types

type Matcher

type Matcher interface {
	Matches(gvk schema.GroupVersionKind) bool
}

A Matcher selects a certain subset of GVKs.

func ConstructMatcher

func ConstructMatcher(objectKinds ...string) (Matcher, error)

ConstructMatcher constructs a matcher that matches objects that fall into one of the given object kinds.

Jump to

Keyboard shortcuts

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