Versions in this module Expand all Collapse all v5 v5.0.1 Dec 13, 2023 Changes in this version + func CreateInteractiveStreamOptions(streams IOStreams) (remotecommand.StreamOptions, func(term.SafeFunc) error) + type AttachOptions struct + Hook LifecycleHook + IO IOStreams + KubeConfig *rest.Config + Name string + Namespace string + func (opts AttachOptions) WithDefaults() AttachOptions + type Attacher interface + Attach func(ctx context.Context, pod *corev1.Pod, containerName string, streams IOStreams) error + type AuthoriseOptions struct + Attach bool + ConsoleName string + Hook LifecycleHook + IO IOStreams + KubeConfig *rest.Config + Namespace string + Username string + func (opts AuthoriseOptions) WithDefaults() AuthoriseOptions + type ConsoleSlice []workloadsv1alpha1.Console + func (cs ConsoleSlice) Print(output io.Writer) error + type CreateOptions struct + Attach bool + Command []string + Hook LifecycleHook + IO IOStreams + KubeConfig *rest.Config + Namespace string + Noninteractive bool + Reason string + Selector string + Timeout time.Duration + func (opts CreateOptions) WithDefaults() CreateOptions + type DefaultLifecycleHook struct + AttachingToPodFunc func(*workloadsv1alpha1.Console) error + ConsoleCreatedFunc func(*workloadsv1alpha1.Console) error + ConsoleReadyFunc func(*workloadsv1alpha1.Console) error + ConsoleRequiresAuthorisationFunc func(*workloadsv1alpha1.Console, *workloadsv1alpha1.ConsoleAuthorisationRule) error + TemplateFoundFunc func(*workloadsv1alpha1.ConsoleTemplate) error + func (d DefaultLifecycleHook) AttachingToConsole(c *workloadsv1alpha1.Console) error + func (d DefaultLifecycleHook) ConsoleCreated(c *workloadsv1alpha1.Console) error + func (d DefaultLifecycleHook) ConsoleReady(c *workloadsv1alpha1.Console) error + func (d DefaultLifecycleHook) ConsoleRequiresAuthorisation(c *workloadsv1alpha1.Console, r *workloadsv1alpha1.ConsoleAuthorisationRule) error + func (d DefaultLifecycleHook) TemplateFound(c *workloadsv1alpha1.ConsoleTemplate) error + type GetOptions struct + ConsoleName string + Namespace string + type IOStreams genericclioptions.IOStreams + type LifecycleHook interface + AttachingToConsole func(*workloadsv1alpha1.Console) error + ConsoleCreated func(*workloadsv1alpha1.Console) error + ConsoleReady func(*workloadsv1alpha1.Console) error + ConsoleRequiresAuthorisation func(*workloadsv1alpha1.Console, *workloadsv1alpha1.ConsoleAuthorisationRule) error + TemplateFound func(*workloadsv1alpha1.ConsoleTemplate) error + type ListOptions struct + Namespace string + Output io.Writer + Selector string + Username string + type MultipleConsoleTemplateError struct + ConsoleTemplates []workloadsv1alpha1.ConsoleTemplate + func (e MultipleConsoleTemplateError) Error() string + type Options struct + Cmd []string + Noninteractive bool + Reason string + Timeout int + type Runner struct + func New(cfg *rest.Config) (*Runner, error) + func (c *Runner) Attach(ctx context.Context, opts AttachOptions) error + func (c *Runner) Authorise(ctx context.Context, opts AuthoriseOptions) error + func (c *Runner) Create(ctx context.Context, opts CreateOptions) (*workloadsv1alpha1.Console, error) + func (c *Runner) CreateResource(namespace string, template workloadsv1alpha1.ConsoleTemplate, opts Options) (*workloadsv1alpha1.Console, error) + func (c *Runner) FindConsoleByName(namespace, name string) (*workloadsv1alpha1.Console, error) + func (c *Runner) FindTemplateBySelector(namespace string, labelSelector string) (*workloadsv1alpha1.ConsoleTemplate, error) + func (c *Runner) Get(ctx context.Context, opts GetOptions) (*workloadsv1alpha1.Console, error) + func (c *Runner) GetAttachablePod(ctx context.Context, csl *workloadsv1alpha1.Console) (*corev1.Pod, string, error) + func (c *Runner) List(ctx context.Context, opts ListOptions) (ConsoleSlice, error) + func (c *Runner) ListConsolesByLabelsAndUser(namespace, username, labelSelector string) (ConsoleSlice, error) + func (c *Runner) WaitUntilReady(ctx context.Context, createdCsl workloadsv1alpha1.Console, ...) (*workloadsv1alpha1.Console, error) Other modules containing this package github.com/incident-io/theatre