Documentation
¶
Index ¶
- Constants
- func AllObjectKinds() []string
- func GetClusterRoleAPIVersion() string
- func GetClusterRoleBindingAPIVersion() string
- func GetHorizontalPodAutoscalerAPIVersion(version string) string
- func GetNetworkPolicyAPIVersion() string
- func GetRoleAPIVersion() string
- func GetRoleBindingAPIVersion() string
- type Matcher
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 ¶
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 ¶
ConstructMatcher constructs a matcher that matches objects that fall into one of the given object kinds.
Click to show internal directories.
Click to hide internal directories.