npm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NPM

type NPM struct{}

func NewNPM

func NewNPM() *NPM

func (*NPM) Install

func (npm *NPM) Install(packageName string, registry string) error

func (*NPM) Login

func (npm *NPM) Login(userName string, password string, email string, registry string) error

func (*NPM) Logout

func (npm *NPM) Logout(registry string) error

func (*NPM) Publish

func (npm *NPM) Publish(path string, tag string, registry string) error

func (*NPM) View

func (npm *NPM) View(packageName string, registry string) (*PackageInfo, error)

type PackageInfo

type PackageInfo struct {
	Name     string `json:"name"`
	Version  string `json:"version"`
	Homepage string `json:"homepage"`
}

type PackageManager

type PackageManager interface {
	Login(userName string, password string, email string, registry string) error
	Logout(registry string) error
	View(packageName string, registry string) (*PackageInfo, error)
	Install(packageName string, registry string) error
	Publish(path string, tag string, registry string) error
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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