Documentation
¶
Index ¶
- func RunDeleteSet(sr scan.InputRun)
- func RunV2(sr InputRun)
- func ValidateArgs(a []string)
- type Client
- func (c *Client) Config() *Client
- func (c *Client) Deleterelease(eks client.EKSCluster, a *action.Configuration, rel *release.Release, ...) error
- func (c *Client) Getekscluster(aws aws.Config, g client.Generator) client.EKSCluster
- func (c *Client) Init()
- func (c *Client) Makeawscfg() aws.Config
- func (c *Client) Makeekscfg() client.Generator
- type InputRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunDeleteSet ¶
RunDeleteSet will look for releases and purge them.
Types ¶
type Client ¶
type Client struct { Dryrun bool Release string Namespace string Env janitorconfig.EnvConfig }
Client is the data object which contains the item to delete
func (*Client) Deleterelease ¶
func (c *Client) Deleterelease(eks client.EKSCluster, a *action.Configuration, rel *release.Release, del internalhelm.HelmDelete) error
Deleterelease will try and delete a release -> Need to reconfigure...
func (*Client) Getekscluster ¶
Getekscluster - Return the cluster, endpoints and auth token!
func (*Client) Makeawscfg ¶
Makeawscfg - creates the cfg object
func (*Client) Makeekscfg ¶
Makeekscfg returns an empty EKS config
type InputRun ¶
type InputRun interface { Config() *Client Init() Makeawscfg() aws.Config Getekscluster(aws.Config, client.Generator) client.EKSCluster Deleterelease(client.EKSCluster, *action.Configuration, *release.Release, internalhelm.HelmDelete) error Makeekscfg() client.Generator // Experimental. Using this to mock... }
InputRun is our interface which defines the main delete methods
Click to show internal directories.
Click to hide internal directories.