file

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package file implements the git connector used to fetch components from local repositories.

It is basically an implementation of the interface "scmHandler" in "github.com/ekara-platform/engine/component/scm"

Currently the local repositories are only used for testing purpose but later the should be used as part of an environment descriptor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileScmHandler

type FileScmHandler struct {
	Logger *log.Logger
}

FileScmHandler Represents the scm connector allowing to fecth local repositories.

It implements "github.com/ekara-platform/engine/component/scm.scmHandler

func (FileScmHandler) Fetch

func (fileScm FileScmHandler) Fetch(repository model.Repository, path string, auth model.Parameters) error

Fetch implements "github.com/ekara-platform/engine/component/scm.scmHandler

func (FileScmHandler) Matches

func (fileScm FileScmHandler) Matches(repository model.Repository, path string) bool

Matches implements "github.com/ekara-platform/engine/component/scm.scmHandler

func (FileScmHandler) Switch

func (fileScm FileScmHandler) Switch(path string, ref string) error

Switch implements "github.com/ekara-platform/engine/component/scm.scmHandler

func (FileScmHandler) Update

func (fileScm FileScmHandler) Update(path string, auth model.Parameters) error

Update implements "github.com/ekara-platform/engine/component/scm.scmHandler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL