Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( /*ErrNoRepositories indicates that no repositories were specified in the config*/ ErrNoRepositories = errors.New("empty repository url list") )
Functions ¶
func InitLogging ¶
func InitLogging(logParams smartlogger.LogParams)
InitLogging initializes this package's logging
func NewDummyConfig ¶
NewDummyConfig creates a new dummy configuration file
Types ¶
type Config ¶
type Config struct { Repositories []string `toml:"repositories"` Protocol gitops.Protocol `toml:"protocol"` Skips struct { MissingBranch bool `toml:"missing_branch"` BadURL bool `toml:"bad_url"` BadProtocol bool `toml:"bad_protocol"` All bool `toml:"all"` } `toml:"skips"` }
Config contains configurations for the recording process
type ErrBadProtocol ¶
ErrBadProtocol describes a missing branch
func NewErrBadProtocol ¶
func NewErrBadProtocol(protocol gitops.Protocol) *ErrBadProtocol
NewErrBadProtocol returns a new ErrBadProtocol
func (*ErrBadProtocol) Error ¶
func (err *ErrBadProtocol) Error() string
type ErrMissingBranch ¶
ErrMissingBranch describes a missing branch
func NewErrMissingBranch ¶
func NewErrMissingBranch(branch, repository string) *ErrMissingBranch
NewErrMissingBranch returns a new ErrMissingBranch
func (*ErrMissingBranch) Error ¶
func (err *ErrMissingBranch) Error() string
type Recorder ¶
Recorder is a struct that does the recording process.
func NewRecorder ¶
NewRecorder creates a new Recorder with the specified configuration.
func (*Recorder) ValidateConfig ¶
ValidateConfig checks the configuration and validates its integrity
Click to show internal directories.
Click to hide internal directories.