Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WsAPIUtils ¶
type WsAPIUtils interface { CreateWS(ctx context.Context, wsID, displayName, description string) (*workspace_v1.WorkspaceConfig, error) WaitForWSAvailable(ctx context.Context, wsID string) error BuildWS(ctx context.Context, wsID, buildID string) (*workspace_v1.WorkspaceConfig, error) SubmitWS(ctx context.Context, wsID string, wait, force bool) ( *workspace_v1.WorkspaceConfig, *workspace_v1.Workspace, error) AbandonWS(ctx context.Context, wsID string) (*workspace_v1.WorkspaceConfig, error) DeleteWS(ctx context.Context, wsID string) ( *workspace_v1.WorkspaceKey, error) GetWS(ctx context.Context, wsID string) ( *workspace_v1.Workspace, error) GetWSConfig(ctx context.Context, wsID string) ( *workspace_v1.WorkspaceConfig, error) GetAllWSConfigs(ctx context.Context, ) ([]*workspace_v1.WorkspaceConfig, error) GetBuild(ctx context.Context, wsID, buildID string) (*workspace_v1.WorkspaceBuild, error) GetAllBuildDetails(ctx context.Context, wsID, buildID string) ( map[string]*workspace_v1.WorkspaceBuildDetails, error) WaitForBuildToFinish(ctx context.Context, wsID, buildID string) (*workspace_v1.WorkspaceBuild, error) SubscribeWsState(ctx context.Context, wsID string) (workspace_v1.WorkspaceService_SubscribeClient, error) BuildAndSubmitWS(ctx context.Context, wsID string) (*workspace_v1.Workspace, error) RebaseWS(ctx context.Context, wsID string) (*workspace_v1.Workspace, error) }
WsAPIUtils is the interface for workspace API utils
func NewWsAPIUtils ¶
func NewWsAPIUtils(conn grpc.ClientConnInterface) WsAPIUtils
NewWsAPIUtils creates an instance of WsAPIUtils
Click to show internal directories.
Click to hide internal directories.