repo

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type RepoPermissionLevel

type RepoPermissionLevel string
const (
	RepoPermissionRead     RepoPermissionLevel = "read"
	RepoPermissionTriage   RepoPermissionLevel = "triage"
	RepoPermissionWrite    RepoPermissionLevel = "write"
	RepoPermissionMaintain RepoPermissionLevel = "maintain"
	RepoPermissionAdmin    RepoPermissionLevel = "admin"
)

type RepoType

type RepoType string
const (
	RepoTypeApp  RepoType = "app"
	RepoTypeLib  RepoType = "lib"
	RepoTypePlat RepoType = "plat"
	RepoTypeCore RepoType = "core"
	RepoTypeMisc RepoType = "misc"
)

type Repository

type Repository struct {
	Type   RepoType `yaml:"type,omitempty"`
	Origin string   `yaml:"origin,omitempty"`

	Name            string              `yaml:"name,omitempty"`
	PermissionLevel RepoPermissionLevel `yaml:"permission,omitempty"`
	// contains filtered or unexported fields
}

func FindRepoByName

func FindRepoByName(a string, repos []*Repository) *Repository

func NewListOfReposFromPath

func NewListOfReposFromPath(ghApi *ghapi.GithubClient, githubOrg, reposDir string) ([]*Repository, error)

func NewTeamFromYAML

func NewTeamFromYAML(ghApi *ghapi.GithubClient, githubOrg, reposFile string) (*Repository, error)

func (*Repository) Fullname

func (r *Repository) Fullname() string

func (*Repository) NameEquals

func (r *Repository) NameEquals(name string) bool

Jump to

Keyboard shortcuts

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