Backstage
    Preparing search index...

    Interface ScmIntegrationsGroup<T>

    Encapsulates several integrations, that are all of the same type.

    interface ScmIntegrationsGroup<T extends ScmIntegration> {
        byHost(host: string): T | undefined;
        byUrl(url: string | URL): T | undefined;
        list(): T[];
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Methods

    Methods

    • Fetches an integration of this type by host name.

      Parameters

      • host: string

        A host name that matches a registered integration of this type

      Returns T | undefined

    • Fetches an integration of this type by URL.

      Parameters

      • url: string | URL

        A URL that matches a registered integration of this type

      Returns T | undefined