Documentation
¶
Index ¶
- Variables
- type Mapper
- func (m *Mapper) InternalWorkspaceListToWorkspaceList(workspaces *workspacesv1alpha1.InternalWorkspaceList) (*restworkspacesv1alpha1.WorkspaceList, error)
- func (m *Mapper) InternalWorkspaceToWorkspace(workspace *workspacesv1alpha1.InternalWorkspace) (*restworkspacesv1alpha1.Workspace, error)
- func (m *Mapper) WorkspaceListToInternalWorkspaceList(workspaces *restworkspacesv1alpha1.WorkspaceList) (*workspacesv1alpha1.InternalWorkspaceList, error)
- func (m *Mapper) WorkspaceToInternalWorkspace(workspace *restworkspacesv1alpha1.Workspace) (*workspacesv1alpha1.InternalWorkspace, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &Mapper{}
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper struct{}
func (*Mapper) InternalWorkspaceListToWorkspaceList ¶
func (m *Mapper) InternalWorkspaceListToWorkspaceList(workspaces *workspacesv1alpha1.InternalWorkspaceList) (*restworkspacesv1alpha1.WorkspaceList, error)
func (*Mapper) InternalWorkspaceToWorkspace ¶
func (m *Mapper) InternalWorkspaceToWorkspace(workspace *workspacesv1alpha1.InternalWorkspace) (*restworkspacesv1alpha1.Workspace, error)
func (*Mapper) WorkspaceListToInternalWorkspaceList ¶
func (m *Mapper) WorkspaceListToInternalWorkspaceList(workspaces *restworkspacesv1alpha1.WorkspaceList) (*workspacesv1alpha1.InternalWorkspaceList, error)
func (*Mapper) WorkspaceToInternalWorkspace ¶
func (m *Mapper) WorkspaceToInternalWorkspace(workspace *restworkspacesv1alpha1.Workspace) (*workspacesv1alpha1.InternalWorkspace, error)
WorkspaceToInternalWorkspace builds an InternalWorkspace starting from a Workspace. IMPORTANT: The Name and Namespace fields are left empty.
Click to show internal directories.
Click to hide internal directories.