klone: github.com/kris-nova/klone/pkg/provider Index | Files | Directories

package provider

import "github.com/kris-nova/klone/pkg/provider"

Index

Package Files

interface.go

type Command Uses

type Command interface {
    Exec()
    GetStdErr() ([]byte, error)
    GetStdOut() ([]byte, error)
    Next() Command
}

Command represents a single task to perform in with git

type GitServer Uses

type GitServer interface {
    Authenticate() error
    GetServerString() string
    GetRepos() (map[string]Repo, error)
    GetRepo(string) (Repo, error)
    GetRepoByOwner(owner, name string) (Repo, error)
    OwnerName() string
    OwnerEmail() string
    Fork(Repo, string) (Repo, error)
    DeleteRepo(string) (bool, error)
    DeleteRepoByOwner(owner, name string) (bool, error)
    NewRepo(name, desc string) (Repo, error)
}

GitServer represents a git server (like github.com)

type KloneProvider Uses

type KloneProvider interface {
    NewGitServer() (GitServer, error)
}

KloneProvider is the core provider for using Klone

type Repo Uses

type Repo interface {
    GitCloneUrl() string
    GitRemoteUrl() string
    HttpsCloneUrl() string
    Language() string
    Owner() string
    Name() string
    Description() string
    ForkedFrom() Repo
    GetKlonefile() []byte
    SetImplementation(interface{})
}

Repo represents a git repository

Directories

PathSynopsis
github

Package provider is imported by 5 packages. Updated 2017-08-07. Refresh now. Tools for package owners.