data_search

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Architecture

type Architecture struct {
	Name  string `json:"name"`
	Label string `json:"label"`
}

type Category

type Category struct {
	Name  string `json:"name"`
	Label string `json:"label"`
}

type Label

type Label struct {
	Name    string
	Glyph   string
	Color   lipgloss.AdaptiveColor
	Enabled bool
}

type OperatingSystem

type OperatingSystem struct {
	Name  string `json:"name"`
	Label string `json:"label"`
}

type Publisher

type Publisher struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type Repository

type Repository struct {
	Architectures       []Architecture    `json:"architectures"`
	Categories          []Category        `json:"categories"`
	CertificationStatus string            `json:"certification_status"`
	Created_at          time.Time         `json:"created_at"`
	Description         string            `json:"short_description"`
	FilterType          string            `json:"filter_type"`
	Name                string            `json:"name"`
	OperatingSystems    []OperatingSystem `json:"operating_systems"`
	Publisher           Publisher         `json:"publisher"`
	PullCount           string            `json:"pull_count"`
	Slug                string            `json:"slug"`
	Source              string            `json:"source"`
	StarCount           int               `json:"star_count"`
	Type                string            `json:"type"`
	UpdatedAt           time.Time         `json:"updated_at"`
	Labels              []Label
}

func FetchRepositories

func FetchRepositories() ([]Repository, error)

func (Repository) GetUrl

func (data Repository) GetUrl() string

type RepositoryPage

type RepositoryPage struct {
	PageSize     int          `json:"page_size"`
	PageId       int          `json:"page"`
	NextUrl      string       `json:"next"`
	PreviousUrl  string       `json:"previous"`
	Repositories []Repository `json:"summaries"`
}

Jump to

Keyboard shortcuts

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