Documentation ¶
Index ¶
- func NewPWD(f docker.FactoryApi, e event.EventApi, s storage.StorageApi, ...) *pwd
- func SessionNotEmpty(e error) bool
- type Mock
- func (m *Mock) ClientClose(client *types.Client)
- func (m *Mock) ClientCount() int
- func (m *Mock) ClientNew(id string, session *types.Session) *types.Client
- func (m *Mock) ClientResizeViewPort(client *types.Client, cols, rows uint)
- func (m *Mock) InstanceDelete(session *types.Session, instance *types.Instance) error
- func (m *Mock) InstanceExec(instance *types.Instance, cmd []string) (int, error)
- func (m *Mock) InstanceFSTree(instance *types.Instance) (io.Reader, error)
- func (m *Mock) InstanceFile(instance *types.Instance, filePath string) (io.Reader, error)
- func (m *Mock) InstanceFindBySession(session *types.Session) ([]*types.Instance, error)
- func (m *Mock) InstanceGet(session *types.Session, name string) *types.Instance
- func (m *Mock) InstanceGetTerminal(instance *types.Instance) (net.Conn, error)
- func (m *Mock) InstanceNew(session *types.Session, conf types.InstanceConfig) (*types.Instance, error)
- func (m *Mock) InstanceResizeTerminal(instance *types.Instance, cols, rows uint) error
- func (m *Mock) InstanceUploadFromReader(instance *types.Instance, fileName, dest string, reader io.Reader) error
- func (m *Mock) InstanceUploadFromUrl(instance *types.Instance, fileName, dest, url string) error
- func (m *Mock) PlaygroundFindByDomain(domain string) *types.Playground
- func (m *Mock) PlaygroundGet(id string) *types.Playground
- func (m *Mock) PlaygroundList() ([]*types.Playground, error)
- func (m *Mock) PlaygroundNew(playground types.Playground) (*types.Playground, error)
- func (m *Mock) SessionClose(session *types.Session) error
- func (m *Mock) SessionDeployRepo(session *types.Session) error
- func (m *Mock) SessionDeployStack(session *types.Session) error
- func (m *Mock) SessionGet(id string) (*types.Session, error)
- func (m *Mock) SessionGetSmallestViewPort(sessionId string) types.ViewPort
- func (m *Mock) SessionNew(ctx context.Context, config types.SessionConfig) (*types.Session, error)
- func (m *Mock) SessionSetup(session *types.Session, conf SessionSetupConf) error
- func (m *Mock) UserGet(id string) (*types.User, error)
- func (m *Mock) UserGetLoginRequest(id string) (*types.LoginRequest, error)
- func (m *Mock) UserLogin(loginRequest *types.LoginRequest, user *types.User) (*types.User, error)
- func (m *Mock) UserNewLoginRequest(providerName string) (*types.LoginRequest, error)
- type PWDApi
- type SessionSetupConf
- type SessionSetupInstanceConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPWD ¶
func NewPWD(f docker.FactoryApi, e event.EventApi, s storage.StorageApi, sp provisioner.SessionProvisionerApi, ipf provisioner.InstanceProvisionerFactoryApi) *pwd
func SessionNotEmpty ¶
Types ¶
type Mock ¶
func (*Mock) ClientClose ¶
func (*Mock) ClientCount ¶
func (*Mock) ClientResizeViewPort ¶
func (*Mock) InstanceDelete ¶
func (*Mock) InstanceExec ¶
func (*Mock) InstanceFSTree ¶
func (*Mock) InstanceFile ¶
func (*Mock) InstanceFindBySession ¶
func (*Mock) InstanceGet ¶
func (*Mock) InstanceGetTerminal ¶
func (*Mock) InstanceNew ¶
func (*Mock) InstanceResizeTerminal ¶
func (*Mock) InstanceUploadFromReader ¶
func (*Mock) InstanceUploadFromUrl ¶
func (*Mock) PlaygroundFindByDomain ¶
func (m *Mock) PlaygroundFindByDomain(domain string) *types.Playground
func (*Mock) PlaygroundGet ¶
func (m *Mock) PlaygroundGet(id string) *types.Playground
func (*Mock) PlaygroundList ¶
func (m *Mock) PlaygroundList() ([]*types.Playground, error)
func (*Mock) PlaygroundNew ¶
func (m *Mock) PlaygroundNew(playground types.Playground) (*types.Playground, error)
func (*Mock) SessionGetSmallestViewPort ¶
func (*Mock) SessionNew ¶
func (*Mock) SessionSetup ¶
func (m *Mock) SessionSetup(session *types.Session, conf SessionSetupConf) error
func (*Mock) UserGetLoginRequest ¶
func (m *Mock) UserGetLoginRequest(id string) (*types.LoginRequest, error)
func (*Mock) UserNewLoginRequest ¶
func (m *Mock) UserNewLoginRequest(providerName string) (*types.LoginRequest, error)
type PWDApi ¶
type PWDApi interface { SessionNew(ctx context.Context, config types.SessionConfig) (*types.Session, error) SessionClose(session *types.Session) error SessionGetSmallestViewPort(sessionId string) types.ViewPort SessionDeployStack(session *types.Session) error SessionDeployRepo(session *types.Session) error SessionGet(id string) (*types.Session, error) SessionSetup(session *types.Session, conf SessionSetupConf) error InstanceNew(session *types.Session, conf types.InstanceConfig) (*types.Instance, error) InstanceResizeTerminal(instance *types.Instance, cols, rows uint) error InstanceGetTerminal(instance *types.Instance) (net.Conn, error) InstanceUploadFromUrl(instance *types.Instance, fileName, dest, url string) error InstanceUploadFromReader(instance *types.Instance, fileName, dest string, reader io.Reader) error InstanceGet(session *types.Session, name string) *types.Instance InstanceFindBySession(session *types.Session) ([]*types.Instance, error) InstanceDelete(session *types.Session, instance *types.Instance) error InstanceExec(instance *types.Instance, cmd []string) (int, error) InstanceFSTree(instance *types.Instance) (io.Reader, error) InstanceFile(instance *types.Instance, filePath string) (io.Reader, error) ClientNew(id string, session *types.Session) *types.Client ClientResizeViewPort(client *types.Client, cols, rows uint) ClientClose(client *types.Client) ClientCount() int UserNewLoginRequest(providerName string) (*types.LoginRequest, error) UserGetLoginRequest(id string) (*types.LoginRequest, error) UserLogin(loginRequest *types.LoginRequest, user *types.User) (*types.User, error) UserGet(id string) (*types.User, error) PlaygroundNew(playground types.Playground) (*types.Playground, error) PlaygroundGet(id string) *types.Playground PlaygroundFindByDomain(domain string) *types.Playground PlaygroundList() ([]*types.Playground, error) }
type SessionSetupConf ¶
type SessionSetupConf struct { Instances []SessionSetupInstanceConf `json:"instances"` PlaygroundFQDN string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.