community

package
v0.0.0-...-cfbe2bf Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BranchMaster    = "master"
	BranchProtected = "protected"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	GiteeId      string `json:"gitee_id, omitempty"`
	Name         string `json:"name, omitempty"`
	Organization string `json:"organization, omitempty"`
	Email        string `json:"email, omitempty"`
}

type Committer

type Committer struct {
	GiteeId      string `json:"gitee_id, omitempty"`
	Name         string `json:"name, omitempty"`
	Organization string `json:"organization, omitempty"`
	Email        string `json:"email, omitempty"`
}

type Contributor

type Contributor struct {
	GiteeId      string `json:"gitee_id, omitempty"`
	Name         string `json:"name, omitempty"`
	Organization string `json:"organization, omitempty"`
	Email        string `json:"email, omitempty"`
}

type Maintainer

type Maintainer struct {
	GiteeId      string `json:"gitee_id, omitempty"`
	Name         string `json:"name, omitempty"`
	Organization string `json:"organization, omitempty"`
	Email        string `json:"email, omitempty"`
}

type Mentor

type Mentor struct {
	GiteeId      string `json:"gitee_id, omitempty"`
	Name         string `json:"name, omitempty"`
	Organization string `json:"organization, omitempty"`
	Email        string `json:"email, omitempty"`
}

type RepoAdmin

type RepoAdmin struct {
	Repo         []string      `json:"repo, omitempty"`
	Admins       []Admin       `json:"admins, omitempty"`
	Committers   []Committer   `json:"committers, omitempty"`
	Contributors []Contributor `json:"contributor, omitempty"`
}

type RepoBranch

type RepoBranch struct {
	Name       string `json:"name" required:"true"`
	Type       string `json:"type,omitempty"`
	CreateFrom string `json:"create_from,omitempty"`
}

type RepoMember

type RepoMember struct {
	Viewers    []string `json:"viewers,omitempty"`
	Managers   []string `json:"managers,omitempty"`
	Reporters  []string `json:"reporters,omitempty"`
	Developers []string `json:"developers,omitempty"`
}

type RepoOwners

type RepoOwners struct {
	Maintainers []string `json:"maintainers,omitempty"`
	// contains filtered or unexported fields
}

func (*RepoOwners) GetOwners

func (r *RepoOwners) GetOwners() []string

func (*RepoOwners) Validate

func (r *RepoOwners) Validate() error

type Repos

type Repos struct {
	Version      string       `json:"version,omitempty"`
	Community    string       `json:"community" required:"true"`
	Repositories []Repository `json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*Repos) GetCommunity

func (r *Repos) GetCommunity() string

func (*Repos) GetRepos

func (r *Repos) GetRepos() map[string]*Repository

func (*Repos) Validate

func (r *Repos) Validate() error

type Repository

type Repository struct {
	Name              string       `json:"name" required:"true"`
	Type              string       `json:"type" required:"true"`
	RenameFrom        string       `json:"rename_from,omitempty"`
	Description       string       `json:"description,omitempty"`
	Commentable       bool         `json:"commentable,omitempty"`
	ProtectedBranches []string     `json:"protected_branches,omitempty"`
	Branches          []RepoBranch `json:"branches,omitempty"`

	RepoMember
}

func (*Repository) IsPrivate

func (r *Repository) IsPrivate() bool

func (*Repository) Validate

func (r *Repository) Validate() error

type Sig

type Sig struct {
	Name         string   `json:"name" required:"true"`
	Repositories []string `json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*Sig) GetRepos

func (s *Sig) GetRepos(org string) []string

type SigInfos

type SigInfos struct {
	Name         string       `json:"name, omitempty"`
	Description  string       `json:"description, omitempty"`
	MailingList  string       `json:"mailing_list, omitempty"`
	MeetingUrl   string       `json:"meeting_url, omitempty"`
	MatureLevel  string       `json:"mature_level, omitempty"`
	Mentors      []Mentor     `json:"mentors, omitempty"`
	Maintainers  []Maintainer `json:"maintainers, omitempty"`
	Repositories []RepoAdmin  `json:"repositories, omitempty"`
	// contains filtered or unexported fields
}

func (*SigInfos) GetRepoAdditionalOwners

func (s *SigInfos) GetRepoAdditionalOwners() map[string][]string

func (*SigInfos) GetRepoAdmin

func (s *SigInfos) GetRepoAdmin() map[string][]string

func (*SigInfos) GetRepoOwners

func (s *SigInfos) GetRepoOwners() []string

func (*SigInfos) Validate

func (s *SigInfos) Validate() error

type Sigs

type Sigs struct {
	Items []Sig `json:"sigs,omitempty"`
}

func (*Sigs) GetSigs

func (s *Sigs) GetSigs() []Sig

func (*Sigs) Validate

func (s *Sigs) Validate() error

Jump to

Keyboard shortcuts

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