repo

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeadingRepositoryDefined added in v0.6.0

func NewLeadingRepositoryDefined(baseDir string) tractusx.QualityGuideline

func NewRepoStructureExists added in v0.6.0

func NewRepoStructureExists(baseDir string) tractusx.QualityGuideline

Types

type LeadingRepositoryDefined added in v0.6.0

type LeadingRepositoryDefined struct {
	// contains filtered or unexported fields
}

func (*LeadingRepositoryDefined) Description added in v0.6.0

func (l *LeadingRepositoryDefined) Description() string

func (*LeadingRepositoryDefined) ExternalDescription added in v0.6.0

func (l *LeadingRepositoryDefined) ExternalDescription() string

func (*LeadingRepositoryDefined) IsOptional added in v0.6.0

func (l *LeadingRepositoryDefined) IsOptional() bool

func (*LeadingRepositoryDefined) Name added in v0.6.0

func (l *LeadingRepositoryDefined) Name() string

func (*LeadingRepositoryDefined) Test added in v0.6.0

type RepoInfo

type RepoInfo struct {
	Owner    string
	Reponame string
}

RepoInfo is a struct to keep basic information about a repository

func GetRepoBaseInfo

func GetRepoBaseInfo() *RepoInfo

GetRepoBaseInfo gathers information about repo owner and name. It leverages environment variables typically available in GitHub workflows. As fallback option, the local git config (.git/config) file is used. Results are returned as *RepoInfo

type RepoStructureExists added in v0.6.0

type RepoStructureExists struct {
	// contains filtered or unexported fields
}

func (RepoStructureExists) Description added in v0.6.0

func (c RepoStructureExists) Description() string

func (RepoStructureExists) ExternalDescription added in v0.6.0

func (c RepoStructureExists) ExternalDescription() string

func (RepoStructureExists) IsOptional added in v0.6.0

func (c RepoStructureExists) IsOptional() bool

func (RepoStructureExists) Name added in v0.6.0

func (c RepoStructureExists) Name() string

func (RepoStructureExists) Test added in v0.6.0

Jump to

Keyboard shortcuts

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