actions

package
v3.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MigrateGlobalMetaName = "actions.etl.p8-global-meta"
)
View Source
var (
	MigratePydioMetaActionName = "actions.etl.p8-legacy-meta"
)
View Source
var (
	SyncConfigActionName = "actions.etl.configs"
)
View Source
var (
	SyncSharesActionName = "actions.etl.shares"
)
View Source
var (
	SyncUsersActionName = "actions.etl.users"
)
View Source
var (
	SyncWorkspacesActionName = "actions.etl.p8-workspaces"
)

Functions

func ComputeContextForUser

func ComputeContextForUser(ctx context.Context, name string, user *idm.User) (context.Context, error)

Types

type MigrateGlobalMetaAction

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

func (*MigrateGlobalMetaAction) FindSlug

func (c *MigrateGlobalMetaAction) FindSlug(ctx context.Context, p8WsId string) string

func (*MigrateGlobalMetaAction) GetDescription

func (c *MigrateGlobalMetaAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*MigrateGlobalMetaAction) GetName

func (c *MigrateGlobalMetaAction) GetName() string

GetName returns the unique identifier of this action.

func (*MigrateGlobalMetaAction) GetParametersForm

func (c *MigrateGlobalMetaAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*MigrateGlobalMetaAction) GetRouter

func (c *MigrateGlobalMetaAction) GetRouter() *views.Router

GetRouter returns an initialized router

func (*MigrateGlobalMetaAction) Init

func (c *MigrateGlobalMetaAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes relevant parameters.

func (*MigrateGlobalMetaAction) Run

Run the actual action code

type MigratePydioMetaAction

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

func (*MigratePydioMetaAction) BrowseNodesForMeta

func (c *MigratePydioMetaAction) BrowseNodesForMeta(ctx context.Context, slug string, channels *actions.RunnableChannels) []error

func (*MigratePydioMetaAction) GetDescription

func (c *MigratePydioMetaAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*MigratePydioMetaAction) GetName

func (c *MigratePydioMetaAction) GetName() string

GetName returns the unique identifier of this action.

func (*MigratePydioMetaAction) GetParametersForm

func (c *MigratePydioMetaAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*MigratePydioMetaAction) GetRouter

func (c *MigratePydioMetaAction) GetRouter() *views.Router

GetRouter returns an initialized router

func (*MigratePydioMetaAction) Init

func (c *MigratePydioMetaAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes relevant parameters.

func (*MigratePydioMetaAction) ProvidesProgress

func (c *MigratePydioMetaAction) ProvidesProgress() bool

ProvidesProgress implements ProgressProvider interface

func (*MigratePydioMetaAction) Run

Run performs the actual action code

func (*MigratePydioMetaAction) WorkspaceHasTemplatePath

func (c *MigratePydioMetaAction) WorkspaceHasTemplatePath(ctx context.Context, ws *idm.Workspace) (bool, error)

type SyncConfigAction

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

func (*SyncConfigAction) GetDescription

func (c *SyncConfigAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*SyncConfigAction) GetName

func (c *SyncConfigAction) GetName() string

GetName returns the unique identifier of this action.

func (*SyncConfigAction) GetParametersForm

func (c *SyncConfigAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*SyncConfigAction) Init

func (c *SyncConfigAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes relevant parameters.

func (*SyncConfigAction) ParseStores

func (c *SyncConfigAction) ParseStores(params map[string]string) error

ParseStores interpret parameters as sync stores

func (*SyncConfigAction) ProvidesProgress

func (c *SyncConfigAction) ProvidesProgress() bool

ProvidesProgress implements ProgressProvider interface

func (*SyncConfigAction) Run

Run the actual action code.

type SyncSharesAction

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

func (*SyncSharesAction) GetDescription

func (c *SyncSharesAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*SyncSharesAction) GetName

func (c *SyncSharesAction) GetName() string

GetName returns the unique identifier of this action.

func (*SyncSharesAction) GetParametersForm

func (c *SyncSharesAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*SyncSharesAction) Init

func (c *SyncSharesAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes relevant parameters.

func (*SyncSharesAction) ParseStores

func (c *SyncSharesAction) ParseStores(params map[string]string) error

ParseStores interpret parameters as sync stores

func (*SyncSharesAction) ProvidesProgress

func (c *SyncSharesAction) ProvidesProgress() bool

ProvidesProgress implements ProgressProvider interface

func (*SyncSharesAction) Run

Run the actual action code

type SyncUsersAction

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

func (*SyncUsersAction) GetDescription

func (c *SyncUsersAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*SyncUsersAction) GetName

func (c *SyncUsersAction) GetName() string

GetName returns the Unique Identifier of this task.

func (*SyncUsersAction) GetParametersForm

func (c *SyncUsersAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*SyncUsersAction) Init

func (c *SyncUsersAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init parses and validates parameters

func (*SyncUsersAction) ParseStores

func (c *SyncUsersAction) ParseStores(params map[string]string) error

ParseStores interpret parameters as sync stores

func (*SyncUsersAction) ProvidesProgress

func (c *SyncUsersAction) ProvidesProgress() bool

ProvidesProgress implements ProgressProvider interface

func (*SyncUsersAction) Run

Run the actual action code

type SyncWorkspacesAction

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

func (*SyncWorkspacesAction) GetDescription

func (c *SyncWorkspacesAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*SyncWorkspacesAction) GetName

func (c *SyncWorkspacesAction) GetName() string

GetName returns the unique identifier of this action.

func (*SyncWorkspacesAction) GetParametersForm

func (c *SyncWorkspacesAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*SyncWorkspacesAction) Init

func (c *SyncWorkspacesAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes relevant parameters.

func (*SyncWorkspacesAction) ParseStores

func (c *SyncWorkspacesAction) ParseStores(params map[string]string) error

ParseStores interpret parameters as sync stores

func (*SyncWorkspacesAction) ProvidesProgress

func (c *SyncWorkspacesAction) ProvidesProgress() bool

ProvidesProgress implements ProgressProvider interface

func (*SyncWorkspacesAction) Run

Run the actual action code.

Jump to

Keyboard shortcuts

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