MCPcopy Create free account
hub / github.com/auth0/auth0-cli / FetchData

Method FetchData

internal/cli/terraform_fetcher.go:402–418  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

400}
401
402func (f *flowResourceFetcher) FetchData(ctx context.Context) (importDataList, error) {
403 var data importDataList
404
405 flowList, err := f.api.Flow.List(ctx)
406 if err != nil {
407 return data, err
408 }
409
410 for _, flow := range flowList.Flows {
411 data = append(data, importDataItem{
412 ResourceName: "auth0_flow." + sanitizeResourceName(flow.GetName()),
413 ImportID: flow.GetID(),
414 })
415 }
416
417 return data, nil
418}
419
420func (f *flowVaultConnectionResourceFetcher) FetchData(ctx context.Context) (importDataList, error) {
421 var data importDataList

Callers 1

Calls 3

sanitizeResourceNameFunction · 0.85
ListMethod · 0.65
GetNameMethod · 0.65

Tested by 1