Documentation
¶
Index ¶
- Constants
- func GetDefaultType(bytes []byte) (string, error)
- func ParseControllerConfig(bytes []byte) ([]string, error)
- func ParseDomain(bytes []byte) (string, error)
- func ParseReleaseVersion(bytes []byte) (int, error)
- func YamlToJson(bytes []byte) (string, error)
- type BuildHook
- type BuildHookResponse
- type Config
- type ConfigHook
- type DeisTime
- type ProcessType
Constants ¶
const (
DEIS_DATETIME string = "2006-01-02T15:04:05MST"
)
Variables ¶
This section is empty.
Functions ¶
func GetDefaultType ¶
func ParseControllerConfig ¶
func ParseDomain ¶
func ParseReleaseVersion ¶
func YamlToJson ¶
YamlToJson takes an input yaml string, parses it and returns a string formatted as json.
Types ¶
type BuildHook ¶
type BuildHook struct {
Sha string `json:"sha"`
ReceiveUser string `json:"receive_user"`
ReceiveRepo string `json:"receive_repo"`
Image string `json:"image"`
Procfile ProcessType `json:"procfile"`
Dockerfile string `json:"dockerfile"`
}
BuildHook represents a controller's build-hook object.
type BuildHookResponse ¶
type BuildHookResponse struct {
Release map[string]int `json:"release"`
Domains []string `json:"domains"`
}
BuildHookResponse represents a controller's build-hook response object.
type Config ¶
type Config struct {
Owner string `json:"owner"`
App string `json:"app"`
Values map[string]interface{} `json:"values"`
Memory map[string]string `json:"memory"`
CPU map[string]int `json:"cpu"`
Tags map[string]string `json:"tags"`
UUID string `json:"uuid"`
Created DeisTime `json:"created"`
Updated DeisTime `json:"updated"`
}
Config represents a Deis application's configuration.
type ConfigHook ¶
type ConfigHook struct {
ReceiveUser string `json:"receive_user"`
ReceiveRepo string `json:"receive_repo"`
}
ConfigHook represents a repository from which to extract the configuration and user to use.
type DeisTime ¶
DeisTime represents the standard datetime format used across the platform.
func (*DeisTime) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. The time is a quoted string in Deis' datetime format.
func (*DeisTime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in Deis' datetime format.
func (*DeisTime) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in Deis' datetime format.
type ProcessType ¶
ProcessType represents the key/value mappings of a process type to a process inside a Heroku Procfile.
Directories
¶
| Path | Synopsis |
|---|---|
|
Godeps
|
|
|
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
|
Package yaml implements YAML support for the Go language. |