Documentation ¶
Index ¶
- func NewGithubHook(p *Purger, secret []byte, statsdClient *statsd.Statsd) *hook
- type Purger
- func (p *Purger) APIResources() ([]*metav1.APIResourceList, error)
- func (p *Purger) FindResources(namespace string) ([]runtime.Unstructured, error)
- func (p *Purger) FindResourcesAll() ([]runtime.Unstructured, error)
- func (p *Purger) HandleResources(namespace string, selector labels.Selector, handler resourceHandlerFn) ([]metav1.Object, error)
- func (p *Purger) NewSelector(val string) (labels.Selector, error)
- func (p *Purger) Purge(repo, branch string) error
- func (p *Purger) PurgeBranchless() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Purger ¶
type Purger struct { DryRun bool discovery.DiscoveryInterface v1.NamespaceInterface *kubernetes.Clientset ClientPool clientForGroupVersionKinder SelectorKey string }
func (*Purger) APIResources ¶
func (p *Purger) APIResources() ([]*metav1.APIResourceList, error)
func (*Purger) FindResources ¶
func (p *Purger) FindResources(namespace string) ([]runtime.Unstructured, error)
func (*Purger) FindResourcesAll ¶
func (p *Purger) FindResourcesAll() ([]runtime.Unstructured, error)
func (*Purger) HandleResources ¶
func (*Purger) PurgeBranchless ¶
Click to show internal directories.
Click to hide internal directories.