utils

package
v0.9.26 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupBoolEnv added in v0.9.25

func LookupBoolEnv(key string, fallback bool) bool

func LookupIntEnv added in v0.9.25

func LookupIntEnv(key string, fallback int) int

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

Types

type GistCommit added in v0.9.25

type GistCommit struct {
	Version string `json:"version"`
}

func GetLastGistCommit added in v0.9.25

func GetLastGistCommit(rawGistUrl string) (*GistCommit, error)

type GitCommit added in v0.9.25

type GitCommit struct {
	Sha string `json:"sha"`
}

func GetLastGitCommit added in v0.9.25

func GetLastGitCommit(repoUrl string) (*GitCommit, error)

type GithubGist added in v0.9.23

type GithubGist struct {
	Description string `json:"description"`
	ID          string `json:"id"`
	Owner       struct {
		Login string `json:"login"`
	} `json:"owner"`
}

func FetchGithubGist added in v0.9.23

func FetchGithubGist(rawGistUrl string) (*GithubGist, error)

type GithubRepo added in v0.6.1

type GithubRepo struct {
	Name            string
	FullName        string `json:"full_name"`
	Description     string
	HtmlUrl         string `json:"html_url"`
	StargazersCount int    `json:"stargazers_count"`
}

func FetchGithubRepository added in v0.9.23

func FetchGithubRepository(repoUrl string) (*GithubRepo, error)

func SearchSunbeamExtensions added in v0.6.1

func SearchSunbeamExtensions(query string) ([]GithubRepo, error)

type Release added in v0.9.0

type Release struct {
	TagName string `json:"tag_name"`
}

func GetLatestRelease added in v0.9.0

func GetLatestRelease(repoUrl string) (*Release, error)

type SearchBody added in v0.6.1

type SearchBody struct {
	Items []GithubRepo
}

Jump to

Keyboard shortcuts

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