Documentation
¶
Index ¶
Constants ¶
View Source
const ( LandscapeURL = "https://raw.githubusercontent.com/cncf/landscape/master/landscape.yml" CacheTTL = 1 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct {
Name string `yaml:"name"`
Subcategories []Subcategory `yaml:"subcategories"`
}
type DefaultHTTPClient ¶
type DefaultHTTPClient struct{}
DefaultHTTPClient is the default implementation of HTTPClient that uses http.Get.
type FindProjectOptions ¶
type HTTPClient ¶
HTTPClient is an interface that abstracts the http.Get function.
type Landscape ¶
type Landscape struct {
Categories []Category `yaml:"landscape"`
}
func GetLandscape ¶
func GetLandscape(client HTTPClient) (*Landscape, error)
func (*Landscape) FindProject ¶
func (l *Landscape) FindProject(opts FindProjectOptions) *Project
FindProject finds a project in the landscape by repo URL, homepage URL, or name.
type Subcategory ¶
Click to show internal directories.
Click to hide internal directories.