backstage-catalog-importer

command module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Backstage catalog importer

A utility to fill the catalog in the Giant Swarm developer portal.

Usage

Requires a Github personal access token (PTA) with permission to read repository content, teams, and user info for the giantswarm organization, provided as GITHUB_TOKEN environment variable.

To run the export, execute

go run main.go [--output output.yaml]

As a result, the file output.yaml in the current directory will provide the catalog content.

What's covered

The following data will be exported/imported into the catalog:

  • All repositories referenced in the repositories lists in giantswarm/github as Component entities.
  • All teams of the configured Github organizaiton as Group entities.
  • All members of the above teams as User entities.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd contains CLI commands.
Package cmd contains CLI commands.
pkg
export
Package export takes data from various sources and writes it to a YAML file.
Package export takes data from various sources and writes it to a YAML file.
repositories
Package repositories provides types and tools to deal with Giant Swarm's repository configuration data maintained in https://github.com/giantswarm/github/tree/master/repositories
Package repositories provides types and tools to deal with Giant Swarm's repository configuration data maintained in https://github.com/giantswarm/github/tree/master/repositories

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL