pydio8

package
v2.2.8+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	P8GlobalMetaSharedUser  = "AJXP_METADATA_SHAREDUSER"
	P8GlobalMetaWatchRead   = "META_WATCH_READ"
	P8GlobalMetaWatchChange = "META_WATCH_CHANGE"
	P8GlobalMetaWatchBoth   = "META_WATCH_BOTH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) GetPeople

func (a *Client) GetPeople(params *GetPeopleParams) (*GetPeopleOK, error)

User Client Rewrite

func (*Client) GetRoles

func (a *Client) GetRoles(params *provisioning.GetRolesParams) (*GetRolesOK, error)

ROLE client rewrite

type ClientV1

type ClientV1 struct {
	// contains filtered or unexported fields
}

func (*ClientV1) GetAdvancedUserInfo

func (a *ClientV1) GetAdvancedUserInfo(userId string, sdkConfig *config.SdkConfig) (*GetAdvancedUserInfoResponse, error)

func (*ClientV1) GetConfig

func (a *ClientV1) GetConfig(params *GetConfigParams) (*GetConfigOK, error)

func (*ClientV1) GetDomainName

func (a *ClientV1) GetDomainName(sdkConfig *config.SdkConfig) (*GetDomainNameResponse, error)

func (*ClientV1) ListNonTechnicalRoles

func (a *ClientV1) ListNonTechnicalRoles(teams bool, sdkConfig *config.SdkConfig) (map[string]*NonTechRole, error)

func (*ClientV1) ListP8GlobalMeta

func (a *ClientV1) ListP8GlobalMeta(sdkConfig *config.SdkConfig) (P8GlobalMeta, error)

type GetAdvancedUserInfoResponse

type GetAdvancedUserInfoResponse struct {
	Login      string `json:"login"`
	AuthSource string `json:"authsource,omitempty"`
	Password   string `json:"password,omitempty"`
	Profile    string `json:"profile,omitempty"`
	OwnerLogin string `json:"parent,omitempty"`
}

type GetConfigOK

type GetConfigOK struct {
	PluginSettingsValues *frontend.Cplugin_settings_values
}

GetConfigOK handles this case with default header values.

A list of roles represented as standard nodes

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Error

func (o *GetConfigOK) Error() string

type GetConfigParams

type GetConfigParams struct {
	Format *string
	Plugin string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetConfigParams contains all the parameters to send to the API endpoint for the get people operation typically these are written to a http.Request

func (*GetConfigParams) WriteToRequest

func (o *GetConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetConfigReader

type GetConfigReader struct {
	// contains filtered or unexported fields
}

GetConfigReader is a Reader for the GetConfig structure.

func (*GetConfigReader) ReadResponse

func (o *GetConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetDomainNameResponse

type GetDomainNameResponse struct {
	DomainName string `json:"domainname"`
}

type GetPeopleOK

type GetPeopleOK struct {
	Payload *models.NodeList
}

GetRolesOK handles this case with default header values.

A list of roles represented as standard nodes

func NewGetPeopleOK

func NewGetPeopleOK() *GetPeopleOK

NewGetRolesOK creates a GetRolesOK with default headers values

func (*GetPeopleOK) Error

func (o *GetPeopleOK) Error() string

type GetPeopleParams

type GetPeopleParams struct {

	/*Format
	  Format produced in output (defaults to xml)

	*/
	Format *string
	/*List
	  list children of the current resource

	*/
	List *bool
	/*Path
	  User or group identifier, including full group path (optional)

	*/
	Path string

	Page int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPeopleParams contains all the parameters to send to the API endpoint for the get people operation typically these are written to a http.Request

func (*GetPeopleParams) WriteToRequest

func (o *GetPeopleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPeopleReader

type GetPeopleReader struct {
	// contains filtered or unexported fields
}

GetRolesReader is a Reader for the GetRoles structure.

func (*GetPeopleReader) ReadResponse

func (o *GetPeopleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRolesOK

type GetRolesOK struct {
	Payload *models.NodeList
}

GetRolesOK handles this case with default header values.

A list of roles represented as standard nodes

func NewGetRolesOK

func NewGetRolesOK() *GetRolesOK

NewGetRolesOK creates a GetRolesOK with default headers values

func (*GetRolesOK) Error

func (o *GetRolesOK) Error() string

type GetRolesReader

type GetRolesReader struct {
	// contains filtered or unexported fields
}

GetRolesReader is a Reader for the GetRoles structure.

func (*GetRolesReader) ReadResponse

func (o *GetRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NonTechRole

type NonTechRole struct {
	RoleId        string                 `json:"role_id"`
	RoleLabel     string                 `json:"role_label"`
	AppliesTo     string                 `json:"applies_to"`
	OwnerId       string                 `json:"owner_id"`
	ForceOverride bool                   `json:"force_override"`
	RoleData      map[string]interface{} `json:"role"`
}

type P8GlobalMeta

type P8GlobalMeta map[string]P8GlobalMetaUsers

type P8GlobalMetaNode

type P8GlobalMetaNode struct {
	Watches  map[string]string `json:"WATCH"`
	Bookmark map[string]bool   `json:"BOOKMARK"`
}

type P8GlobalMetaNodes

type P8GlobalMetaNodes map[string]P8GlobalMetaNode

type P8GlobalMetaUsers

type P8GlobalMetaUsers map[string]P8GlobalMetaNodes

type Pydio8Store

type Pydio8Store struct {
	Config *sdkconfig.SdkConfig
	// contains filtered or unexported fields
}

Pydio8Store implements what it takes to communicate with a Pydio8 entity

func NewPydio8UserStore

func NewPydio8UserStore(c *sdkconfig.SdkConfig) *Pydio8Store

func (*Pydio8Store) CrossLoadShare

func (s *Pydio8Store) CrossLoadShare(ctx context.Context, syncShare *models.SyncShare, target models.ReadableStore, params map[string]interface{}) error

func (*Pydio8Store) GetAPIV1Client

func (s *Pydio8Store) GetAPIV1Client() *ClientV1

func (*Pydio8Store) GetGroupInfo

func (s *Pydio8Store) GetGroupInfo(ctx context.Context, groupPath string, params map[string]interface{}) (u *idm.User, e error)

func (*Pydio8Store) GetLdapDomainName

func (s *Pydio8Store) GetLdapDomainName() (string, error)

func (*Pydio8Store) GetUserInfo

func (s *Pydio8Store) GetUserInfo(c context.Context, userName string, params map[string]interface{}) (u *idm.User, aclCtxt context.Context, e error)

func (*Pydio8Store) ListACLs

func (s *Pydio8Store) ListACLs(ctx context.Context, params map[string]interface{}) ([]*idm.ACL, error)

ListACLs returns acls from the pydio api

func (*Pydio8Store) ListConfig

func (s *Pydio8Store) ListConfig(ctx context.Context, params map[string]interface{}) (*source.ChangeSet, error)

ListUsers from the pydio 8 api

func (*Pydio8Store) ListGroups

func (s *Pydio8Store) ListGroups(ctx context.Context, params map[string]interface{}) ([]*idm.User, error)

ListGroups from the pydio 8 api

func (*Pydio8Store) ListRoles

func (s *Pydio8Store) ListRoles(ctx context.Context, userStore models.ReadableStore, params map[string]interface{}) ([]*idm.Role, error)

Return a list of user with

func (*Pydio8Store) ListShares

func (s *Pydio8Store) ListShares(ctx context.Context, params map[string]interface{}) (res []*models.SyncShare, e error)

func (*Pydio8Store) ListUsers

func (s *Pydio8Store) ListUsers(ctx context.Context, params map[string]interface{}, progress chan float32) (map[string]*idm.User, error)

ListUsers from the pydio 8 api

func (*Pydio8Store) ReadNode

func (s *Pydio8Store) ReadNode(c context.Context, wsUuid string, wsPath string) (*tree.Node, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL