golang

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeDescriptor

type CodeDescriptor struct {
	Source       string
	MetadataRoot string
	Path         string
	Module       bool
}

func DescribeCode

func DescribeCode(path string) (*CodeDescriptor, error)

type Env

type Env map[string]string

type ModuleInfo

type ModuleInfo struct {
	Dir        string `json:"dir,omitempty"`
	ImportPath string `json:"import_path,omitempty"`
	ModulePath string `json:"module_path,omitempty"`
	GoMod      string `json:"gomod,omitempty"`
}

type PackageInfo

type PackageInfo struct {
	ImportPath     string   `json:"import_path,omitempty"`
	Dir            string   `json:"dir,omitempty"`
	GoFiles        []string `json:"go_files,omitempty"`
	CFiles         []string `json:"c_files,omitempty"`
	CgoFiles       []string `json:"cgo_files,omitempty"`
	HFiles         []string `json:"h_files,omitempty"`
	SFiles         []string `json:"s_files,omitempty"`
	IgnoredGoFiles []string `json:"ignored_go_files,omitempty"`
	Incomplete     bool     `json:"incomplete,omitempty"`
}

func (PackageInfo) Files

func (p PackageInfo) Files() []string

type Paths

type Paths map[string]bool

type Platform

type Platform struct{}

func (*Platform) DockerBuildOptions

func (p *Platform) DockerBuildOptions(path string) (util.DockerBuildOptions, error)

func (*Platform) GenerateDockerfile

func (p *Platform) GenerateDockerfile() (string, error)

func (*Platform) GetDeploymentPayload

func (p *Platform) GetDeploymentPayload(codepath string) ([]byte, error)

func (*Platform) Name

func (p *Platform) Name() string

func (*Platform) NormalizePath

func (p *Platform) NormalizePath(rawPath string) (string, error)

func (*Platform) ValidateCodePackage

func (p *Platform) ValidateCodePackage(code []byte) error

func (*Platform) ValidatePath

func (p *Platform) ValidatePath(rawPath string) error

type SourceDescriptor

type SourceDescriptor struct {
	Name string
	Path string
}

type SourceMap

type SourceMap map[string]SourceDescriptor

func (SourceMap) Directories

func (s SourceMap) Directories() []string

func (SourceMap) Sources

func (s SourceMap) Sources() Sources

type Sources

type Sources []SourceDescriptor

func (Sources) Len

func (s Sources) Len() int

func (Sources) Less

func (s Sources) Less(i, j int) bool

func (Sources) Swap

func (s Sources) Swap(i, j int)

Jump to

Keyboard shortcuts

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