Documentation ¶
Index ¶
- type CLI
- func (c *CLI) ApprovePlan(out io.Writer, resource string, yamlFile string) error
- func (c *CLI) BreakTheGlass(out io.Writer, resource string) error
- func (c *CLI) Create(out io.Writer, name string, namespace string, path string, source string, ...) error
- func (c *CLI) DeleteTerraform(out io.Writer, resource string) error
- func (c *CLI) ForceUnlock(out io.Writer, resource, lockID string) error
- func (c *CLI) Get(out io.Writer) error
- func (c *CLI) GetTerraform(out io.Writer, resource string) error
- func (c *CLI) Init(kubeconfigArgs *genericclioptions.ConfigFlags, config *viper.Viper) error
- func (c *CLI) Install(out io.Writer, version string, export bool) (err error)
- func (c *CLI) Reconcile(out io.Writer, resource string) error
- func (c *CLI) Replan(out io.Writer, resource string) error
- func (c *CLI) Resume(out io.Writer, resource string) error
- func (c *CLI) ShowPlan(out io.Writer, resource string) error
- func (c *CLI) Suspend(out io.Writer, resource string) error
- func (c *CLI) Uninstall(out io.Writer) error
- func (c *CLI) Version(out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is the main struct for the tfctl command line tool
func (*CLI) ApprovePlan ¶
ApprovePlan approves the pending plan for a given terraform resource
func (*CLI) Create ¶
func (c *CLI) Create( out io.Writer, name string, namespace string, path string, source string, interval string, export bool, ) error
Create generates a Terraform resource
func (*CLI) DeleteTerraform ¶
DeleteTerraform deletes the terraform resource from the cluster
func (*CLI) ForceUnlock ¶
ForceUnlock will set the corresponding field and request a reconciliation for the corresponding resource.
func (*CLI) GetTerraform ¶
GetTerraform prints information about the provided resource
func (*CLI) Init ¶
func (c *CLI) Init(kubeconfigArgs *genericclioptions.ConfigFlags, config *viper.Viper) error
Init initializes the CLI instance for a given kubeconfig, namespace and terraform binary
Click to show internal directories.
Click to hide internal directories.