Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBatchSize = 100
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 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
Click to show internal directories.
Click to hide internal directories.