Documentation ¶
Index ¶
- Variables
- type MdlrCtx
- func (ctx *MdlrCtx) Add(name string, mType string, path string, url string, branch string, ...) error
- func (ctx *MdlrCtx) Import(specificName string, force bool) error
- func (ctx *MdlrCtx) Init() error
- func (ctx *MdlrCtx) List() (string, error)
- func (ctx *MdlrCtx) Remove(name string, dropFiles bool) error
- func (ctx *MdlrCtx) Status(name string) (string, error)
- func (ctx *MdlrCtx) Update(specificName, branch, commit string, force bool) error
- type MdlrFile
- type Module
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMdlrFileNotExist = errors.New("error mdlr.yml file does not exist") ErrMdlrFileInvalidPath = errors.New("error invalid path to mdl.yml file") ErrMdlrFileAlreadyLoaded = errors.New("error mdlr.yml file already loaded") ErrMdlrFileAlreadyExists = errors.New("error mdlr.yml file already exists") ErrInvalidSyntaxInMdlrFile = errors.New("error invalid syntax tag in mdlr.yml file. valid syntax tags include: 1") ErrInvalidMdlrFile = errors.New("error invalid mdlr.yml file") ErrInvalidModuleDefinition = errors.New("error invalid module definition") ErrInvalidModuleType = errors.New("error invalid module type. must be either git or hg") ErrModuleNameAlreadyInUse = errors.New("error the module name is already used in the same mdlr.yml file") ErrModuleNameNotExist = errors.New("error the module name does not exist in the mdlr.yml file") ErrNoModules = errors.New("error no modules are defined in the mdlr.yml file") )
View Source
var Log = config.Cfg().GetLogger()
Functions ¶
This section is empty.
Types ¶
type MdlrFile ¶
type MdlrFile struct { ParentDirectory string `yaml:"-"` AbsoluteFilePath string `yaml:"-"` Syntax int64 `yaml:"syntax"` Modules map[string]*Module `yaml:"modules,flow"` }
func NewMdlrFile ¶
func NewMdlrFile() *MdlrFile
type Module ¶
type Module struct { Name string `yaml:"-"` // This is the key used for the module -- populated outside of the YAML object Type string `yaml:"type"` Path string `yaml:"path"` AbsolutePath string `yaml:"-"` URL string `yaml:"url"` Branch string `yaml:"branch"` Commit string `yaml:"commit"` Depth int64 `yaml:"depth"` vcs.Context `yaml:"-"` }
Click to show internal directories.
Click to hide internal directories.