Documentation
¶
Index ¶
- Variables
- func CreateTar() (*bytes.Buffer, error)
- func InitClient() (*client.Client, *kubernetes.Clientset, error)
- type App
- func (app *App) AddToCleanup(resource runtime.Object)
- func (app *App) CheckWorkspaceExists() (bool, error)
- func (app *App) Cleanup()
- func (app *App) CreateCommand(name string) error
- func (app *App) CreateConfigMap(tarball *bytes.Buffer) (string, error)
- func (app *App) Run() error
- func (app *App) WaitForPod(name string, exitCondition watchtools.ConditionFunc, timeout time.Duration) (*corev1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
View Source
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 InitClient ¶
func InitClient() (*client.Client, *kubernetes.Clientset, error)
Types ¶
type App ¶
type App struct {
Workspace string
Namespace string
Tarball *bytes.Buffer
Args []string
Resources []runtime.Object
// embed?
Client client.Client
// embed?
KubeClient kubernetes.Interface
}
func (*App) AddToCleanup ¶
func (*App) CheckWorkspaceExists ¶
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
Click to show internal directories.
Click to hide internal directories.