Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(githubClient github.Client, gitClientFactory gitv2.ClientFactory, ) *repoowners.Client
NewClient returns a new repoowners.Client from a prow/github.Client and prow/git/v2.ClientFactory. It wraps around repoowners.NewClient facilitating the client build configuration with default settings. It possibly returns an error.
Types ¶
type OwnersLoadingOptions ¶
type OwnersLoadingOptions struct { // RepositoryName represents the git repository name at which load the Owners config. RepositoryName string // GitRef represents the git reference at which load the Owners config. GitRef string // ConfigPath represents the path to the Owners config file in the repository. ConfigPath string // ApproversOnly represents the option to load only the approvers. ApproversOnly bool // ReviewersOnly represents the option to load only the reviewers. ReviewersOnly bool }
OwnersLoadingOptions represents OWNERS loading options.
func (*OwnersLoadingOptions) AddPFlags ¶
func (o *OwnersLoadingOptions) AddPFlags(pfs *pflag.FlagSet)
func (*OwnersLoadingOptions) Validate ¶
func (o *OwnersLoadingOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.