Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBlueprintExclusions ¶ added in v0.1.8
func ApplyBlueprintExclusions(all []api.Blueprint, excludeDeep, excludeSchema []string) (iterList, dataList []api.Blueprint)
ApplyBlueprintExclusions returns two filtered slices from all:
- iterList: used to iterate for fetching entities/scorecards/actions (deep-excluded removed, schema-only kept)
- dataList: written to data.Blueprints for export output (both deep and schema-only excluded)
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector collects data from Port API concurrently.
func NewCollector ¶
NewCollector creates a new collector.
type Data ¶
type Data struct {
Blueprints []api.Blueprint
Entities []api.Entity
Scorecards []api.Scorecard
Actions []api.Action
// BlueprintPermissions maps blueprint identifier -> permissions object.
BlueprintPermissions map[string]api.Permissions
// ActionPermissions maps action identifier -> permissions object.
ActionPermissions map[string]api.Permissions
// PagePermissions maps page identifier -> permissions object.
PagePermissions map[string]api.Permissions
Teams []api.Team
Users []api.User
Folders []api.Folder
Pages []api.Page
Integrations []api.Integration
TimeoutErrors []string // Blueprints that timed out during export
Warnings []string // Non-fatal issues encountered during collection
}
Data represents collected export data.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module handles exporting data from Port.
type Options ¶
type Options struct {
OutputPath string
Blueprints []string
Format string
SkipEntities bool
SkipSystemBlueprints bool // skip _* blueprint schemas and their entities
IncludeRuleResults bool // include the _rule_result system blueprint and its entities (excluded by default)
IncludeResources []string
ExcludeBlueprints []string // deep: exclude blueprint schema + all its resources
ExcludeBlueprintSchema []string // shallow: exclude only the blueprint schema, keep resources
}
Options represents export options.
type Result ¶
type Result struct {
Success bool
Message string
OutputPath string
BlueprintsCount int
EntitiesCount int
ActionsCount int
PagesCount int
IntegrationsCount int
UsersCount int
TeamsCount int
FoldersCount int
TimeoutErrors []string // Blueprints that timed out during export
Error error
}
Result represents the result of an export operation.
Click to show internal directories.
Click to hide internal directories.