go-micro: github.com/micro/go-micro/runtime/local/source Index | Files | Directories

package source

import "github.com/micro/go-micro/runtime/local/source"

Package source retrieves source code

Index

Package Files

options.go source.go

type Option Uses

type Option func(o *Options)

func Path Uses

func Path(p string) Option

Local path for repository

type Options Uses

type Options struct {
    // local path to download source
    Path string
}

type Repository Uses

type Repository struct {
    // Name or repo
    Name string
    // Local path where repo is stored
    Path string
    // URL from which repo was retrieved
    URL string
}

Repository is the source repository

type Source Uses

type Source interface {
    // Fetch repo from a url
    Fetch(url string) (*Repository, error)
    // Commit and upload repo
    Commit(*Repository) error
    // The sourcerer
    String() string
}

Source retrieves source code

Directories

PathSynopsis
gitPackage git provides a git source
goPackage golang is a source for Go

Package source is imported by 1 packages. Updated 2020-02-22. Refresh now. Tools for package owners.