Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // FlagSet contains faros flags that are needed in multiple packages FlagSet *flag.FlagSet // Namespace is the namespace for the controller to be restricted to Namespace string // ServerDryRun whether to enable Server side dry run or not ServerDryRun bool // FetchTimeout in seconds for fetching changes from repositories FetchTimeout time.Duration // GitTrack specifies if we're handling GitTracks GitTrack GitTrackMode // ClusterGitTrack specifies which mode we're handling ClusterGitTracks in ClusterGitTrack ClusterGitTrackMode // RepositoryDir is the folder on the local filesystem in which Faros should // check out repositories. If left empty, Faros will check out repositories // in memory RepositoryDir string )
Functions ¶
func ParseIgnoredResources ¶
func ParseIgnoredResources() (map[schema.GroupVersionResource]interface{}, error)
ParseIgnoredResources attempts to parse the ignore-resource flag value and create a set of GroupVersionResources from the slice
func ValidateFlags ¶ added in v0.7.0
func ValidateFlags() error
ValidateFlags returns an error if an invalid set of options have been set in the flags. It must be called after the flags have been parsed
Types ¶
type ClusterGitTrackMode ¶ added in v0.7.0
type ClusterGitTrackMode int
ClusterGitTrackMode specifies which mode we're running ClusterGitTracks in
const ( CGTMIncludeNamespaced ClusterGitTrackMode = iota CGTMDisabled CGTMExcludeNamespaced )
Enums for ClusterGitTrackMode
func (*ClusterGitTrackMode) Set ¶ added in v0.7.0
func (cgtm *ClusterGitTrackMode) Set(s string) error
Set implements the flag.Value interface
func (ClusterGitTrackMode) String ¶ added in v0.7.0
func (cgtm ClusterGitTrackMode) String() string
String implements the flag.Value interface
func (ClusterGitTrackMode) Type ¶ added in v0.7.0
func (cgtm ClusterGitTrackMode) Type() string
Type implements the flag.Value interface
type GitTrackMode ¶ added in v0.7.0
type GitTrackMode bool
GitTrackMode specifies which mode we're running GitTracks in
const ( GTMDisabled GitTrackMode = false GTMEnabled GitTrackMode = true )
Enums for GitTrackMode
func (*GitTrackMode) Set ¶ added in v0.7.0
func (gtm *GitTrackMode) Set(s string) error
Set implements the flag.Value interface
func (GitTrackMode) String ¶ added in v0.7.0
func (gtm GitTrackMode) String() string
String implements the flag.Value interface
func (*GitTrackMode) Type ¶ added in v0.7.0
func (gtm *GitTrackMode) Type() string
Type implements the flag.Value interface