Documentation
¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Index ¶
- Variables
- func CreateTar() (*bytes.Buffer, error)
- func DoubleDashArgsHandler(args []string) []string
- func Execute()
- func InitClient() (*client.Client, *kubernetes.Clientset, *v1alpha1clientset.StokV1alpha1Client, ...)
- func ShellWrapDoubleDashArgsHandler(args []string) []string
- type App
- func (app *App) AddToCleanup(resource runtime.Object)
- func (app *App) Cleanup()
- func (app *App) CreateCommand() error
- func (app *App) CreateConfigMap(tarball *bytes.Buffer) (*corev1.ConfigMap, error)
- func (app *App) Run() error
- func (app *App) WaitForPod(name string, exitCondition watchtools.ConditionFunc, timeout time.Duration) (*corev1.Pod, error)
- func (app *App) WaitForWorkspaceReady(name string, timeout time.Duration) (command.Command, error)
- func (app *App) Write(in []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
var ErrPodCompleted = fmt.Errorf("pod ran to completion")
ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.
Functions ¶
func CreateTar ¶
Creates tarball from *.tf files found in 'path' TODO: unit test TODO: skip this (and the config file it's embedded in) if command doesn't need *.tf files (e.g. terraform import)
func DoubleDashArgsHandler ¶ added in v0.1.2
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func InitClient ¶
func InitClient() (*client.Client, *kubernetes.Clientset, *v1alpha1clientset.StokV1alpha1Client, error)
func ShellWrapDoubleDashArgsHandler ¶ added in v0.1.2
Types ¶
type App ¶
type App struct {
Workspace string
Namespace string
Tarball *bytes.Buffer
Command command.Command
Args []string
Resources []runtime.Object
// embed?
Client client.Client
// embed?
KubeClient kubernetes.Interface
Clientset v1alpha1clientset.StokV1alpha1Interface
PodWaitTimeout time.Duration
// contains filtered or unexported fields
}
func (*App) AddToCleanup ¶
func (*App) CreateCommand ¶
func (*App) CreateConfigMap ¶
func (*App) WaitForPod ¶
func (app *App) WaitForPod(name string, exitCondition watchtools.ConditionFunc, timeout time.Duration) (*corev1.Pod, error)
waitForPod watches the given pod until the exitCondition is true TODO: replace with watching cmd
func (*App) WaitForWorkspaceReady ¶
waitForWorkspaceReady watches the command until the WorkspaceReady condition is true
Source Files
¶
- app.go
- args_handlers.go
- command_apply.go
- command_destroy.go
- command_force_unlock.go
- command_get.go
- command_import.go
- command_init.go
- command_output.go
- command_plan.go
- command_refresh.go
- command_shell.go
- command_show.go
- command_state.go
- command_taint.go
- command_untaint.go
- command_validate.go
- debug.go
- resources.go
- root.go