Documentation ¶
Index ¶
- Variables
- func Add(dir string, name string) (string, error)
- func Commit(dir string, message string) (string, error)
- func ConfigCommitterInformation(dir string, email string, name string) error
- func ConfigProperty(dir string, property string, value string) error
- func CurrentBranchName(dir string) (string, error)
- func ExtractHostOrgAndRepoURL(urlString string) (string, string, string, error)
- func ExtractURLFromRemote(reader io.Reader, name string) (string, error)
- func GetCurrentUser(client *api.Client, host string) (string, error)
- func GetDefaultBranch(client *api.Client, host string, org string, repo string) (string, error)
- func GetOrgsForUser(client *api.Client, host string) ([]string, error)
- func GetRemote(name string) (string, error)
- func LocalChanges(dir string) (bool, error)
- func Stash(dir string) (string, error)
- func StashPop(dir string) (string, error)
- func Status(dir string) (string, error)
- type Context
- type GetIssues
- type GetPrs
- type GetSecurityConfig
- type GetVulnerabilityAlerts
- type ImportContext
- type IssueData
- type IssueSearch
- type Namespace
- type PrData
- type PrSearch
- type Rebase
- type Repo
- func (r *Repo) DeleteRepositoriesFromOrg(host string, org string) error
- func (r *Repo) DeleteRepositoriesFromUser(host string, user string) error
- func (r *Repo) ListRepositoriesForOrg(host string, org string) ([]RepoInfo, error)
- func (r *Repo) ListRepositoriesForUser(host string, user string) ([]RepoInfo, error)
- func (r *Repo) SelectRepositories(host string, filter string, in repoGetter) ([]string, error)
- type RepoInfo
- type SecurityConfigData
- type SecurityConfigSearch
- type VulnerabilityAlertsData
- type VulnerabilityAlertsSearch
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Runner util.CommandRunner = util.DefaultCommandRunner{}
)
Functions ¶
func CurrentBranchName ¶
func ExtractURLFromRemote ¶
func GetDefaultBranch ¶
func LocalChanges ¶
Types ¶
type Context ¶
type Context struct { cmd.CommonOptions Context string Config *api.Config }
Context defines Kubernetes context.
type GetIssues ¶
type GetIssues struct { cmd.CommonOptions ShowBots bool ShowHidden bool Me bool Review bool Raw string Issues []pr.Issue FilteredLabels int FilteredBotAccounts int }
GetIssues defines get pull issues response.
func (*GetIssues) GetIssuesForHost ¶
type GetPrs ¶
type GetPrs struct { cmd.CommonOptions ShowBots bool ShowHidden bool Me bool Review bool Raw string PullRequests []pr.PullRequest FilteredLabels int FilteredBotAccounts int }
GetPrs defines get pull request response.
type GetSecurityConfig ¶
type GetSecurityConfig struct { cmd.CommonOptions Config []securityconfig.Repository }
GetSecurityConfig defines get vulnerability alerts request response.
func (*GetSecurityConfig) GetSecurityConfigForHost ¶
func (g *GetSecurityConfig) GetSecurityConfigForHost(host string, cfg config.Config, query string) ([]securityconfig.Repository, error)
type GetVulnerabilityAlerts ¶
type GetVulnerabilityAlerts struct { cmd.CommonOptions Alerts []alerts.Repository }
GetVulnerabilityAlerts defines get vulnerability alerts request response.
func NewGetVulnerabilityAlerts ¶
func NewGetVulnerabilityAlerts() *GetVulnerabilityAlerts
NewGetVulnerabilityAlerts.
func (*GetVulnerabilityAlerts) GetVulnerabilityAlertsForHost ¶
func (g *GetVulnerabilityAlerts) GetVulnerabilityAlertsForHost(host string, cfg config.Config, query string) ([]alerts.Repository, error)
func (*GetVulnerabilityAlerts) Validate ¶
func (g *GetVulnerabilityAlerts) Validate() error
Validate input.
type ImportContext ¶
type ImportContext struct { cmd.CommonOptions Path string Config *api.Config ConfigToImport *api.Config }
ImportContext defines Kubernetes context.
func NewImportContext ¶
func NewImportContext(path string) *ImportContext
NewImportContext creates a new ImportContext.
type Namespace ¶
type Namespace struct { cmd.CommonOptions Namespace string APIConfig *api.Config RESTConfig *rest.Config }
Namespace defines Kubernetes namespace.
type Rebase ¶
type Repo ¶
type Repo struct {
cmd.CommonOptions
}
func (*Repo) DeleteRepositoriesFromOrg ¶
func (*Repo) DeleteRepositoriesFromUser ¶
func (*Repo) ListRepositoriesForOrg ¶
func (*Repo) ListRepositoriesForUser ¶
type SecurityConfigData ¶
type SecurityConfigData struct {
Search SecurityConfigSearch `json:"search"`
}
SecurityConfigData.
type SecurityConfigSearch ¶
type SecurityConfigSearch struct {
SecurityConfig []securityconfig.Repository `json:"nodes"`
}
SecurityConfigSearch.
type VulnerabilityAlertsData ¶
type VulnerabilityAlertsData struct {
Search VulnerabilityAlertsSearch `json:"search"`
}
VulnerabilityAlertsData.
type VulnerabilityAlertsSearch ¶
type VulnerabilityAlertsSearch struct {
VulnerabilityAlerts []alerts.Repository `json:"nodes"`
}
VulnerabilityAlertsSearch.
Click to show internal directories.
Click to hide internal directories.