Documentation ¶
Overview ¶
Package flagutil contains utilities and interfaces shared between several Prow commands.
Index ¶
- type GitHubOptions
- func (o *GitHubOptions) AddFlags(fs *flag.FlagSet)
- func (o *GitHubOptions) GitClient(secretAgent *config.SecretAgent, dryRun bool) (client *git.Client, err error)
- func (o *GitHubOptions) GitHubClient(secretAgent *config.SecretAgent, dryRun bool) (client *github.Client, err error)
- func (o *GitHubOptions) Validate(dryRun bool) error
- type KubernetesOptions
- type Strings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubOptions ¶
type GitHubOptions struct { TokenPath string // contains filtered or unexported fields }
GitHubOptions holds options for interacting with GitHub.
func (*GitHubOptions) AddFlags ¶
func (o *GitHubOptions) AddFlags(fs *flag.FlagSet)
AddFlags injects GitHub options into the given FlagSet.
func (*GitHubOptions) GitClient ¶
func (o *GitHubOptions) GitClient(secretAgent *config.SecretAgent, dryRun bool) (client *git.Client, err error)
GitClient returns a Git client.
func (*GitHubOptions) GitHubClient ¶
func (o *GitHubOptions) GitHubClient(secretAgent *config.SecretAgent, dryRun bool) (client *github.Client, err error)
GitHubClient returns a GitHub client.
func (*GitHubOptions) Validate ¶
func (o *GitHubOptions) Validate(dryRun bool) error
Validate validates GitHub options.
type KubernetesOptions ¶
type KubernetesOptions struct {
// contains filtered or unexported fields
}
KubernetesOptions holds options for interacting with Kubernetes.
func (*KubernetesOptions) AddFlags ¶
func (o *KubernetesOptions) AddFlags(fs *flag.FlagSet)
AddFlags injects Kubernetes options into the given FlagSet.
func (*KubernetesOptions) Validate ¶
func (o *KubernetesOptions) Validate(dryRun bool) error
Validate validates Kubernetes options.
type Strings ¶
type Strings struct {
// contains filtered or unexported fields
}
func NewStrings ¶
NewStrings returns a Strings struct that defaults to the value of def if left unset.
Click to show internal directories.
Click to hide internal directories.