Discover Packages
github.com/opengovern/og-describer-github
plugin
integration
discovery
package
Version:
v0.43.13
Opens a new window with list of versions in this module.
Published: Jan 15, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Discover retrieves all active GitHub organizations accessible by the token.
An organization is considered active if it has at least one non-archived repository.
type Config struct {
Token string `json:"token"`
}
Config represents the JSON input configuration
type OrgDetail struct {
Login string `json:"login,omitempty"`
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
OrgDetail defines the minimal information for each organization.
type Output struct {
Organizations []OrgDetail `json:"organizations,omitempty"`
Error string `json:"error,omitempty"`
}
Output defines the structure of the JSON response.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.