Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExitCodeTimeout = 124 ExitCodeError = 1 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ExecOperations ¶
type ExecOperations struct {
// contains filtered or unexported fields
}
func (*ExecOperations) RunCommand ¶
func (ops *ExecOperations) RunCommand(ctx context.Context, user *database.User, appName string, command ...string) (io.ReadCloser, <-chan error)
func (*ExecOperations) RunCommandBySpec ¶
func (ops *ExecOperations) RunCommandBySpec(ctx context.Context, podSpec *spec.Pod) (io.ReadCloser, <-chan error)
type FakeOperations ¶
type FakeOperations struct {
ExpectedErr error
}
func NewFakeOperations ¶
func NewFakeOperations() *FakeOperations
func (*FakeOperations) RunCommand ¶
func (f *FakeOperations) RunCommand(ctx context.Context, user *database.User, appName string, command ...string) (io.ReadCloser, <-chan error)
func (*FakeOperations) RunCommandBySpec ¶
func (f *FakeOperations) RunCommandBySpec(ctx context.Context, podSpec *spec.Pod) (io.ReadCloser, <-chan error)
type K8sOperations ¶
type Operations ¶
type Operations interface { RunCommand(ctx context.Context, user *database.User, appName string, command ...string) (io.ReadCloser, <-chan error) RunCommandBySpec(ctx context.Context, podSpec *spec.Pod) (io.ReadCloser, <-chan error) }
func NewOperations ¶
func NewOperations(appOps app.Operations, k8s K8sOperations, fs storage.Storage, defaults *Defaults) Operations
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ops Operations, keepAliveTimeout time.Duration) *Service
func (*Service) Command ¶
func (s *Service) Command(req *execpb.CommandRequest, stream execpb.Exec_CommandServer) error
func (*Service) RegisterService ¶
Click to show internal directories.
Click to hide internal directories.