Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCmd ¶
ExecCmd runs the child process of a connect session. On unix, SIGINT/SIGTERM received while the session is running are forwarded to the child process, so an interrupted session (e.g. Ctrl-C during `kubectl get pods -w`) terminates the child and returns through the command's cleanup (e.g. temporary kubeconfig removal). A child killed by a signal exits with 128+signal, the shell convention.
Types ¶
type TemplateData ¶
type TemplateData struct {
// contains filtered or unexported fields
}
TemplateData is the base template data for connect commands, embedded by each namespace's connect command which adds its own template values. Organization and Project are resolved lazily: the API is only called when the template references {{.Organization}} or {{.Project}} (Go templates invoke no-arg methods at the point of use).
func NewTemplateData ¶
func NewTemplateData(ctx context.Context) *TemplateData
func (*TemplateData) Organization ¶
func (d *TemplateData) Organization() (*iam.Organization, error)
Organization returns the default organization.