Documentation
¶
Index ¶
- func StartDebugContainer(s Squash, dbt DebugTarget) (*v1.Pod, error)
- type DebugTarget
- type EditorData
- type Squash
- func (s *Squash) DeletePlankPod() error
- func (s *Squash) ExpectToGetUniqueDebugTargetFromSpec(dbt *DebugTarget) error
- func (s *Squash) GetDebugTargetContainerFromSpec(dbt *DebugTarget) error
- func (s *Squash) GetDebugTargetPodFromSpec(dbt *DebugTarget) error
- func (s *Squash) GetIntent() squashv1.Intent
- func (s *Squash) ReportOrConnectToCreatedDebuggerPod() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartDebugContainer ¶
func StartDebugContainer(s Squash, dbt DebugTarget) (*v1.Pod, error)
Types ¶
type DebugTarget ¶
type DebugTarget struct {
Pod *v1.Pod
Container *v1.Container
}
type EditorData ¶
type EditorData struct {
PortForwardCmd string
}
type Squash ¶
type Squash struct {
ChooseDebugger bool
NoClean bool
ChoosePod bool
TimeoutSeconds int
DebugContainerVersion string
DebugContainerRepo string
LocalPort int
Debugger string
Namespace string
Pod string
Container string
Machine bool
DebugServerAddress string
CRISock string
SquashNamespace string
// contains filtered or unexported fields
}
func NewSquashConfig ¶
func NewSquashConfig() Squash
func (*Squash) DeletePlankPod ¶
func (s *Squash) DeletePlankPod() error
DeletePlankPod deletes the plank pod that was created for the debug session represented by the Squash object. This should be called when a debugging session is terminated.
func (*Squash) ExpectToGetUniqueDebugTargetFromSpec ¶
func (s *Squash) ExpectToGetUniqueDebugTargetFromSpec(dbt *DebugTarget) error
for the debug controller, this function finds the debug target from the squash spec that it receives If it is able to find a unique target, it applies the target values to the DebugTarget argument. Otherwise it errors.
func (*Squash) GetDebugTargetContainerFromSpec ¶
func (s *Squash) GetDebugTargetContainerFromSpec(dbt *DebugTarget) error
func (*Squash) GetDebugTargetPodFromSpec ¶
func (s *Squash) GetDebugTargetPodFromSpec(dbt *DebugTarget) error
func (*Squash) GetIntent ¶
func (s *Squash) GetIntent() squashv1.Intent
TODO - remove this when V2 api is ready
func (*Squash) ReportOrConnectToCreatedDebuggerPod ¶
func (s *Squash) ReportOrConnectToCreatedDebuggerPod() error
Click to show internal directories.
Click to hide internal directories.