Documentation
¶
Index ¶
Constants ¶
View Source
const ( DeleteVerb = "delete" AnyVerb = "*" AnyResource = "*" )
Variables ¶
This section is empty.
Functions ¶
func MatchRule ¶
func MatchRule(resourceGroup string, apiRes metav1.APIResource, rule authorizationv1.ResourceRule) bool
Types ¶
type GC ¶
type GC struct {
// contains filtered or unexported fields
}
var Instance *GC
Instance a global instance of the GC service.
TODO: since the GC service is quite heavy, as it has to discover
resources that can be subject to GC, we share single global instance, however as long term, we should find a better way to let consumer of the service to access it.
type OptsFn ¶
type OptsFn func(*options)
func WithPropagationPolicy ¶
func WithPropagationPolicy(policy metav1.DeletionPropagation) OptsFn
func WithUnremovables ¶
func WithUnremovables(items ...schema.GroupVersionKind) OptsFn
type Resource ¶
type Resource struct {
meta.RESTMapping
}
func (Resource) GroupVersionKind ¶
func (r Resource) GroupVersionKind() schema.GroupVersionKind
func (Resource) GroupVersionResource ¶
func (r Resource) GroupVersionResource() schema.GroupVersionResource
func (Resource) IsNamespaced ¶
Click to show internal directories.
Click to hide internal directories.