models

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ICON_DEFAULT_URL = "https://github.com/cloudfoundry-incubator/cf-extensions/blob/master/docs/images/cf-extensions-proposal-icon.png"
View Source
const LOGO_DEFAULT_URL = "https://github.com/cloudfoundry-incubator/cf-extensions/blob/master/docs/images/cf-extensions-proposal-logo.png"
View Source
const PROPOSAL_DEFAULT_URL = "https://docs.google.com/document/d/1cpyBmds7WYNLKO1qkjhCdS8bNSJjWH5MqTE-h1UCQkQ/edit?usp=sharing"
View Source
const TRACKER_DEFAULT_URL = "https://www.pivotaltracker.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Optionally provided by owner
	OwnerCompany string `json:"owner_company"`
	ContactEmail string `json:"contact_email"`

	Description string `json:"description"`

	TrackerUrl  string `json:"tracker_url"`
	ProposalUrl string `json:"proposal_url"`

	LogoUrl string `json:"logo_url,omitempty"`
	IconUrl string `json:"icon_url,omitempty"`

	ProposedDate string `json:"proposed_date"`

	// Computed fields
	Name   string `json:"name,omitempty"`
	GitUrl string `json:"git_url,omitempty"`

	Stats Statistics `json:"-"`

	Repo              *github.Repository        `json:"-"`
	LatestRepoRelease *github.RepositoryRelease `json:"-"`

	Status
}

func CreateInfo

func CreateInfo(repo *github.Repository) *Info

func (*Info) AddDefaults

func (info *Info) AddDefaults()

func (*Info) Update

func (info *Info) Update()

type Infos

type Infos []Info

func (Infos) Len

func (infos Infos) Len() int

func (Infos) Less

func (infos Infos) Less(i, j int) bool

func (Infos) Swap

func (infos Infos) Swap(i, j int)

type ProjectStatus

type ProjectStatus struct {
	Name string `json:"name"`
	Status
}

func (ProjectStatus) Equals

func (ps ProjectStatus) Equals(otherProjectStatus ProjectStatus) bool

type Projects

type Projects struct {
	Org   string `json:"org"`
	Infos Infos  `json:"projects"`
}

func (Projects) Equals

func (p Projects) Equals(otherProjects Projects) bool

type ProjectsStatus

type ProjectsStatus struct {
	Org   string          `json:"org"`
	Array []ProjectStatus `json:"projects_status"`
}

func (ProjectsStatus) Equals

func (ps ProjectsStatus) Equals(otherProjectsStatus ProjectsStatus) bool

func (ProjectsStatus) StatusForName

func (ps ProjectsStatus) StatusForName(name string) (Status, error)

type Statistics

type Statistics struct {
	ForksCount      int `json:"-"`
	OpenIssuesCount int `json:"-"`
	StargazersCount int `json:"-"`
	WatchersCount   int `json:"-"`
}

type Status

type Status struct {
	Status      string `json:"status,omitempty"`
	ChangedDate string `json:"status_changed_date,omitempty"`
}

Jump to

Keyboard shortcuts

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