github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/source/source.go (about)

     1  package source
     2  
     3  import "context"
     4  
     5  // Source defines SCM funcions
     6  type Source interface {
     7  	// Get source code from repository into path by revision
     8  	SourceCode(ctx context.Context, repository, path, revision string, submodule bool) error
     9  	// Get related artifact by artifact into path
    10  	Artifact(ctx context.Context, artifact, path string) error
    11  	// Keep code security
    12  	Security(path string) error
    13  }