config

package
v0.5.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL