manifest

package
v0.0.0-...-39bc41e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigDirectory = "config"
View Source
const DefaultDirectory = "default"
View Source
const DefaultRepository = "https://github.com/file-new/fnew-manifest.git"
View Source
const FileName = "manifest.json"
View Source
const MockProject1 = "project1"
View Source
const MockProject2 = "project2"

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLoader

type FileLoader struct{}

func (FileLoader) Load

func (FileLoader) Load(filename string) (*Manifest, error)

type Loader

type Loader interface {
	Load(filename string) (*Manifest, error)
}

func NewFileLoader

func NewFileLoader() Loader

type Manifest

type Manifest map[string]string

func FromJSON

func FromJSON(data []byte) (*Manifest, error)

func FromString

func FromString(jsonString string) (*Manifest, error)

func FullManifest

func FullManifest() *Manifest

func (Manifest) Merge

func (manifest Manifest) Merge(other Manifest) Manifest

func (Manifest) String

func (manifest Manifest) String() string

type MockLoader

type MockLoader struct {
	mock.Mock
}

func NewMockLoader

func NewMockLoader(shouldError bool) *MockLoader

func (*MockLoader) Load

func (mockLoader *MockLoader) Load(filename string) (*Manifest, error)

Jump to

Keyboard shortcuts

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