tasks

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectUserAccountsExactMeta = plugin.SubTaskMeta{
	Name:             "connectUserAccountsExact",
	EntryPoint:       ConnectUserAccountsExact,
	EnabledByDefault: true,
	Description:      "associate users and accounts",
	DomainTypes:      []string{plugin.DOMAIN_TYPE_CROSS},
}
View Source
var SetProjectMappingMeta = plugin.SubTaskMeta{
	Name:             "setProjectMapping",
	EntryPoint:       SetProjectMapping,
	EnabledByDefault: true,
	Description:      "set project mapping",
	DomainTypes:      []string{plugin.DOMAIN_TYPE_CROSS},
}

Functions

func ConnectUserAccountsExact

func ConnectUserAccountsExact(taskCtx plugin.SubTaskContext) errors.Error

func SetProjectMapping

func SetProjectMapping(taskCtx plugin.SubTaskContext) errors.Error

SetProjectMapping binds projects and scopes

Types

type Options

type Options struct {
	ConnectionId    uint64           `json:"connectionId"`
	ProjectMappings []ProjectMapping `json:"projectMappings"`
}

type Params

type Params struct {
	ConnectionId uint64
}

type ProjectMapping

type ProjectMapping struct {
	ProjectName string  `json:"projectName"`
	Scopes      []Scope `json:"scopes"`
}

ProjectMapping represents the relations between project and scopes

func NewProjectMapping

func NewProjectMapping(projectName string, pluginScopes []plugin.Scope) ProjectMapping

NewProjectMapping is the construct function of ProjectMapping

type Scope

type Scope struct {
	Table string `json:"table"`
	RowID string `json:"rowId"`
}

Scope represents a scope by specifies the table and id

type TaskData

type TaskData struct {
	Options *Options
}

Jump to

Keyboard shortcuts

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