Documentation ¶
Index ¶
- func EditCreateTextFile(path string, editors ...TextEditFunc) error
- func EditTextFile(path string, editors ...TextEditFunc) error
- func ReplaceTextTags(text, startTag, endTag, replace string) (string, error)
- type Maintainer
- type Maintainers
- type Repositories
- type Repository
- type RepositoryScope
- type RepositoryStatus
- type TextEditFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditCreateTextFile ¶
func EditCreateTextFile(path string, editors ...TextEditFunc) error
func EditTextFile ¶
func EditTextFile(path string, editors ...TextEditFunc) error
func ReplaceTextTags ¶
Types ¶
type Maintainer ¶
type Maintainers ¶
type Maintainers []Maintainer
func ReadMaintainersFromFile ¶
func ReadMaintainersFromFile(path string) (Maintainers, error)
type Repositories ¶
type Repositories []Repository
func ReadRepositoriesFromFile ¶
func ReadRepositoriesFromFile(path string) (Repositories, error)
type Repository ¶
type Repository struct { Name string `yaml:"name"` Description string `yaml:"description,omitempty"` Scope RepositoryScope `yaml:"scope"` Status RepositoryStatus `yaml:"status,omitempty"` }
func (*Repository) URL ¶
func (r *Repository) URL() string
type RepositoryScope ¶
type RepositoryScope string
const ( RepositoryScopeCore RepositoryScope = "Core" RepositoryScopeEcosystem RepositoryScope = "Ecosystem" RepositoryScopeInfra RepositoryScope = "Infra" RepositoryScopeSpecial RepositoryScope = "Special" )
func (RepositoryScope) String ¶
func (r RepositoryScope) String() string
type RepositoryStatus ¶
type RepositoryStatus string
const ( RepositoryStatusStable RepositoryStatus = "Stable" RepositoryStatusIncubating RepositoryStatus = "Incubating" RepositoryStatusSandbox RepositoryStatus = "Sandbox" RepositoryStatusDeprecated RepositoryStatus = "Deprecated" )
func (RepositoryStatus) String ¶
func (r RepositoryStatus) String() string
type TextEditFunc ¶
Click to show internal directories.
Click to hide internal directories.