Documentation ¶
Index ¶
- func ErrWriterFromContext(ctx context.Context) io.Writer
- func MarshalBundles(w io.Writer, bundles Bundles) error
- func RegisterVCS(vcs VCS)
- func WithErrWriter(parent context.Context, w io.Writer) context.Context
- func WithLogger(parent context.Context, logger Logger) context.Context
- func WithWriter(parent context.Context, w io.Writer) context.Context
- func WriterFromContext(ctx context.Context) io.Writer
- type BuildScript
- type Bundle
- type Bundles
- type BundlesFile
- type Hariti
- func (self *Hariti) AddAlias(repository string, alias string) error
- func (self *Hariti) AddDependency(repository string, dependency string) error
- func (self *Hariti) ClearAlias(repository string) error
- func (self *Hariti) ClearDependencies(repository string) error
- func (self *Hariti) CreateBundle(repository string) (Bundle, error)
- func (self *Hariti) DeployDir() string
- func (self *Hariti) Disable(repository string) error
- func (self *Hariti) Enable(repository string) error
- func (self *Hariti) EnableIf(repository string, expr string) error
- func (self *Hariti) Get(ctx context.Context, repository string, update bool, enabled bool) error
- func (self *Hariti) IsEnabled(bundle Bundle) bool
- func (self *Hariti) List() ([]Bundle, error)
- func (self *Hariti) MetaDir() string
- func (self *Hariti) Remove(repository string, force bool) error
- func (self *Hariti) RemoveAlias(repository string, alias string) error
- func (self *Hariti) RemoveDependency(repository string, dependency string) error
- func (self *Hariti) RepositoriesDir() string
- func (self *Hariti) SetupManagedDirectory() error
- func (self *Hariti) WriteScript(w io.Writer, header []string) error
- type HaritiConfig
- type LocalBundle
- type Logger
- type RemoteBundle
- type VCS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVCS ¶
func RegisterVCS(vcs VCS)
Types ¶
type BuildScript ¶
type BundlesFile ¶
type Hariti ¶
type Hariti struct { Logger Logger // contains filtered or unexported fields }
func NewHariti ¶
func NewHariti(config *HaritiConfig) *Hariti
func (*Hariti) AddDependency ¶
func (*Hariti) ClearAlias ¶
func (*Hariti) ClearDependencies ¶
func (*Hariti) RemoveDependency ¶
func (*Hariti) RepositoriesDir ¶
func (*Hariti) SetupManagedDirectory ¶
type HaritiConfig ¶
type LocalBundle ¶
type LocalBundle struct { // name Name string `yaml:"-"` // aliases Aliases []string `yaml:"-"` // path LocalPath string `yaml:"path"` }
func (*LocalBundle) GetAliases ¶
func (self *LocalBundle) GetAliases() []string
func (*LocalBundle) GetLocalPath ¶
func (self *LocalBundle) GetLocalPath() string
func (*LocalBundle) GetName ¶
func (self *LocalBundle) GetName() string
type Logger ¶
type Logger interface { WithPrefix(string) Logger Debug(...interface{}) Debugf(string, ...interface{}) Info(...interface{}) Infof(string, ...interface{}) Warn(...interface{}) Warnf(string, ...interface{}) Error(...interface{}) Errorf(string, ...interface{}) Fatal(...interface{}) Fatalf(string, ...interface{}) Panic(...interface{}) Panicf(string, ...interface{}) }
func LoggerFromContextKey ¶
func NewStdLogger ¶
type RemoteBundle ¶
type RemoteBundle struct { // name Name string `yaml:"name"` // repository url URL *url.URL `yaml:"url"` // local directory path LocalPath string // aliases Aliases []string `yaml:"aliases"` // dependencies Dependencies []*RemoteBundle `yaml:"dependencies"` // vim expr EnableIfExpr string `yaml:"enable-if"` // build script BuildScript *BuildScript `yaml:"build"` }
func (*RemoteBundle) GetAliases ¶
func (self *RemoteBundle) GetAliases() []string
func (*RemoteBundle) GetLocalPath ¶
func (self *RemoteBundle) GetLocalPath() string
func (*RemoteBundle) GetName ¶
func (self *RemoteBundle) GetName() string
func (*RemoteBundle) MarshalYAML ¶
func (self *RemoteBundle) MarshalYAML() (interface{}, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.