appdeftransf

package module
v0.0.0-...-3beabfb Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2015 License: Apache-2.0 Imports: 7 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.

README

app-def-transf-go

A dependency of the Giant Swarm CLI. It helps in migrating swarm.json files to newer versions.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidDefTypeErr = errgo.Newf("invalid definition type")
)

Functions

func IsInvalidDefType

func IsInvalidDefType(err error) bool

func ParseName

func ParseName(b []byte) (string, error)

ParseName tries to find out what name an app given by b might has. Internally it calls ParseTypeFromBytes.

Types

type DefType

type DefType string

DefType is the app definition type an app can have.

const (
	DefTypeV2GiantSwarm DefType = "V2GiantSwarm"
)

func ParseTypeFromBytes

func ParseTypeFromBytes(b []byte) (DefType, error)

ParseTypeFromBytes tries to find out what kind of app definition is given by b. If no proper type can be detected, it returns an error. Valid definition types are: DefTypeV1GiantSwarm.

Jump to

Keyboard shortcuts

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