libproject

package module
v0.0.0-...-2c8be79 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

README

libproject

This is a Golang library for reading project.toml files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Include    []string    `toml:"include"`
	Exclude    []string    `toml:"exclude"`
	Buildpacks []Buildpack `toml:"buildpacks"`
	Env        []EnvVar    `toml:"env"`
}

type Buildpack

type Buildpack struct {
	Id      string `toml:"id"`
	Version string `toml:"version"`
	Uri     string `toml:"uri"`
}

type EnvVar

type EnvVar struct {
	Name  string `toml:"name"`
	Value string `toml:"value"`
}

type Project

type Project struct {
	Name string `toml:"name"`
}

type ProjectDescriptor

type ProjectDescriptor struct {
	Project  Project                `toml:"project"`
	Build    Build                  `toml:"build"`
	Metadata map[string]interface{} `toml:"metadata"`
}

func ReadProjectDescriptor

func ReadProjectDescriptor(pathToFile string) (ProjectDescriptor, error)

Jump to

Keyboard shortcuts

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