gb

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gb provides compatibility with GB manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(dir string) bool

Has returns true if this dir has a GB-flavored manifest file.

func Parse

func Parse(dir string) ([]*cfg.Dependency, error)

Parse parses a GB-flavored manifest file.

Types

type Dependency

type Dependency struct {
	Importpath string `json:"importpath"`
	Repository string `json:"repository"`
	Revision   string `json:"revision"`
	Branch     string `json:"branch"`
	Path       string `json:"path,omitempty"`
}

Dependency represents an individual dependency in the GB manifest file

type Manifest

type Manifest struct {
	Version      int          `json:"version"`
	Dependencies []Dependency `json:"dependencies"`
}

Manifest represents the GB manifest file

Jump to

Keyboard shortcuts

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