Documentation
¶
Index ¶
- Constants
- func NewActionInvoker(ctx context.Context, dbPath string, action string, resourceTypeID string, ...) tasks.Manager
- func NewBulkTicket(ctx context.Context, templatePath string) tasks.Manager
- func NewCreateAccountManager(ctx context.Context, dbPath string, login string, email string, ...) tasks.Manager
- func NewCredentialRotator(ctx context.Context, dbPath string, resourceId string, resourceType string) tasks.Manager
- func NewDiffer(ctx context.Context, dbPath string, baseSyncID string, appliedSyncID string) tasks.Manager
- func NewEventFeed(ctx context.Context, feedId string, startAt time.Time, cursor string) tasks.Manager
- func NewGetTicket(ctx context.Context, ticketId string) tasks.Manager
- func NewGranter(ctx context.Context, dbPath string, entitlementID string, principalID string, ...) tasks.Manager
- func NewListActionSchemas(ctx context.Context, resourceTypeID string) tasks.Manager
- func NewListTicketSchema(ctx context.Context) tasks.Manager
- func NewLocalCompactor(ctx context.Context, outputPath string, ...) tasks.Manager
- func NewResourceDeleter(ctx context.Context, dbPath string, resourceId string, resourceType string) tasks.Manager
- func NewRevoker(ctx context.Context, dbPath string, grantID string) tasks.Manager
- func NewSyncer(ctx context.Context, dbPath string, opts ...Option) (tasks.Manager, error)
- func NewTicket(ctx context.Context, templatePath string) tasks.Manager
- type Option
- func WithExternalResourceC1Z(externalResourceC1Z string) Option
- func WithExternalResourceEntitlementIdFilter(entitlementId string) Option
- func WithSkipEntitlementsAndGrants(skip bool) Option
- func WithSkipGrants(skip bool) Option
- func WithSyncResourceTypeIDs(resourceTypeIDs []string) Option
- func WithTargetedSyncResources(resources []*v2.Resource) Option
- func WithTmpDir(tmpDir string) Option
Constants ¶
const EventsPerPageLocally = 100
Variables ¶
This section is empty.
Functions ¶
func NewActionInvoker ¶ added in v0.3.25
func NewActionInvoker(ctx context.Context, dbPath string, action string, resourceTypeID string, args *structpb.Struct) tasks.Manager
NewActionInvoker returns a task manager that queues an action invoke task. If resourceTypeID is provided, it invokes a resource-scoped action.
func NewBulkTicket ¶ added in v0.2.43
NewBulkTicket returns a task manager that queues a bulk create ticket task.
func NewCreateAccountManager ¶ added in v0.1.15
func NewCreateAccountManager(ctx context.Context, dbPath string, login string, email string, profile *structpb.Struct, resourceTypeId string) tasks.Manager
NewCreateAccountManager returns a task manager that queues a create account task.
func NewCredentialRotator ¶ added in v0.1.15
func NewCredentialRotator(ctx context.Context, dbPath string, resourceId string, resourceType string) tasks.Manager
NewGranter returns a task manager that queues a sync task.
func NewDiffer ¶ added in v0.3.2
func NewDiffer(ctx context.Context, dbPath string, baseSyncID string, appliedSyncID string) tasks.Manager
NewDiffer returns a task manager that queues a revoke task.
func NewEventFeed ¶ added in v0.1.16
func NewEventFeed(ctx context.Context, feedId string, startAt time.Time, cursor string) tasks.Manager
NewEventFeed returns a task manager that queues an event feed task.
func NewGetTicket ¶ added in v0.1.36
NewGetTicket returns a task manager that queues a get ticket task.
func NewGranter ¶
func NewGranter(ctx context.Context, dbPath string, entitlementID string, principalID string, principalType string) tasks.Manager
NewGranter returns a task manager that queues a grant task.
func NewListActionSchemas ¶ added in v0.6.9
NewListActionSchemas returns a task manager that queues a list action schemas task. If resourceTypeID is provided, it filters schemas for that specific resource type.
func NewListTicketSchema ¶ added in v0.1.36
NewSchema returns a task manager that queues a list schema task.
func NewLocalCompactor ¶ added in v0.3.3
func NewLocalCompactor(ctx context.Context, outputPath string, compactableSyncs []*synccompactor.CompactableSync) tasks.Manager
NewLocalCompactor returns a task manager that queues a revoke task.
func NewResourceDeleter ¶ added in v0.1.15
func NewResourceDeleter(ctx context.Context, dbPath string, resourceId string, resourceType string) tasks.Manager
NewResourceDeleter returns a task manager that queues a delete resource task.
func NewRevoker ¶
NewRevoker returns a task manager that queues a revoke task.
Types ¶
type Option ¶ added in v0.1.8
type Option func(*localSyncer)