Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateProviderConfig ¶
ValidateProviderConfig calls the provider's validate functions depending upon the providers configured
Types ¶
type DefaultRemoteProvider ¶
DefaultRemoteProvider holds basic providers data
func (*DefaultRemoteProvider) GetParsedPullInterval ¶
func (rp *DefaultRemoteProvider) GetParsedPullInterval() (time.Duration, error)
GetParsedPullInterval returns the parsed duration
func (*DefaultRemoteProvider) GetPullInterval ¶
func (rp *DefaultRemoteProvider) GetPullInterval() string
GetPullInterval returns the pullInterval assigned to remote provider
func (*DefaultRemoteProvider) SetPullInterval ¶
func (rp *DefaultRemoteProvider) SetPullInterval(pullInterval string)
SetPullInterval sets the pullInterval
type GitProvider ¶
type GitProvider struct { DefaultRemoteProvider `mapstructure:",squash"` Git config.Git `mapstructure:",squash"` // contains filtered or unexported fields }
GitProvider holds the git provider config
type RemoteProvider ¶
type RemoteProvider interface { fetcher.Fetcher GetParsedPullInterval() (time.Duration, error) GetPullInterval() string SetPullInterval(string) }
RemoteProvider is the interface to be implmented by the remote config providers
func CreateGitConfigProvider ¶
func CreateGitConfigProvider(git *config.Git) (RemoteProvider, error)
CreateGitConfigProvider creates GitProvider from the git config
Click to show internal directories.
Click to hide internal directories.