Documentation ¶
Index ¶
- func LoadSharedElement(s *Share) (*models.ShareElement, error)
- func LoadShares() (map[string]*Share, []error, error)
- func LoadWorkspace(repositoryId string) (*models.AdminWorkspace, error)
- func OpenAdminPermission(workspaceId string) error
- func ParseWorkspacePath(ws *models.AdminWorkspace) (string, error)
- func RecurseParentPaths(loadedShares map[string]*Share, share *Share) (newPath string, parentWs *models.AdminWorkspace, topOwnerId string, e error)
- func SetConfig(sdkConfig *config.SdkConfig)
- type Cursor
- type ListSharesResponse
- type Share
- func (s *Share) GetElement() *ShareElement
- func (s *Share) GetHiddenUser() (*models.ShareEntry, bool)
- func (s *Share) GetListKey() string
- func (s *Share) GetMetadata() *ShareMetadata
- func (s *Share) GetOwnerId() string
- func (s *Share) GetPrelogUser() string
- func (s *Share) GetPresetLogin() string
- func (s *Share) GetSharedUsers() (entries []*models.ShareEntry)
- func (s *Share) GetSharedUsersIds() (ids []string)
- func (s *Share) GetTemplateName() string
- func (s *Share) GetWorkspace() (*models.AdminWorkspace, error)
- func (s *Share) LoadElement() error
- type ShareElement
- type ShareMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSharedElement ¶
func LoadSharedElement(s *Share) (*models.ShareElement, error)
LoadSharedElement performs api call to load_shared_element_data
func LoadWorkspace ¶
func LoadWorkspace(repositoryId string) (*models.AdminWorkspace, error)
LoadWorkspace loads AdminWorkspace from API
func OpenAdminPermission ¶
func ParseWorkspacePath ¶
func ParseWorkspacePath(ws *models.AdminWorkspace) (string, error)
func RecurseParentPaths ¶
Types ¶
type ListSharesResponse ¶
type ListSharesResponse struct {}
type Share ¶
type Share struct { // contains filtered or unexported fields }
func (*Share) GetElement ¶
func (s *Share) GetElement() *ShareElement
func (*Share) GetHiddenUser ¶
func (s *Share) GetHiddenUser() (*models.ShareEntry, bool)
func (*Share) GetListKey ¶
func (*Share) GetMetadata ¶
func (s *Share) GetMetadata() *ShareMetadata
func (*Share) GetOwnerId ¶
func (*Share) GetPrelogUser ¶
func (*Share) GetPresetLogin ¶
func (*Share) GetSharedUsers ¶
func (s *Share) GetSharedUsers() (entries []*models.ShareEntry)
func (*Share) GetSharedUsersIds ¶
func (*Share) GetTemplateName ¶
func (*Share) GetWorkspace ¶
func (s *Share) GetWorkspace() (*models.AdminWorkspace, error)
func (*Share) LoadElement ¶
type ShareElement ¶
type ShareElement struct { // contains filtered or unexported fields }
func NewElementFromModel ¶
func NewElementFromModel(e *models.ShareElement) (*ShareElement, error)
type ShareMetadata ¶
type ShareMetadata struct {
}func NewMetaFromModel ¶
func NewMetaFromModel(metadata *models.ShareMetadata) *ShareMetadata
NewFromModel creates a ShareMetadata from a parsed models.ShareMetadata
func (*ShareMetadata) GetNodeRelativePath ¶
func (s *ShareMetadata) GetNodeRelativePath() string
GetNodeRelativePath returns original path inside parent repository
func (*ShareMetadata) GetParentRepositoryId ¶
func (s *ShareMetadata) GetParentRepositoryId() string
GetParentRepositoryId returns SharedElementParentRepository as string
func (*ShareMetadata) GetParentRepositoryLabel ¶
func (s *ShareMetadata) GetParentRepositoryLabel() string
GetParentRepositoryLabel returns SharedElementParentRepositoryLabel
Click to show internal directories.
Click to hide internal directories.