Documentation ¶
Index ¶
- func ParseDocuments(r io.Reader) ([]string, error)
- func ParseDocumentsBytes(b []byte) ([]string, error)
- func ParseDocumentsFile(p string) ([]string, error)
- func ParseDocumentsString(s string) ([]string, error)
- type Clone
- type Config
- func Parse(r io.Reader) (*Config, error)
- func ParseBytes(b []byte) (*Config, error)
- func ParseFile(p string) (*Config, error)
- func ParseMulti(r io.Reader) ([]*Config, error)
- func ParseMultiBytes(b []byte) ([]*Config, error)
- func ParseMultiFile(p string) ([]*Config, error)
- func ParseMultiString(s string) ([]*Config, error)
- func ParseString(s string) (*Config, error)
- type Metadata
- type Network
- type Platform
- type Secret
- type Volume
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDocuments ¶
ParseDocuments returns the yaml documents.
func ParseDocumentsBytes ¶
ParseDocumentsBytes returns the yaml documents.
func ParseDocumentsFile ¶
ParseDocumentsFile returns the yaml documents from file p.
func ParseDocumentsString ¶
ParseDocumentsString returns the yaml documents.
Types ¶
type Config ¶
type Config struct { Metadata Metadata Platform Platform Clone Clone Workspace Workspace Version yaml.StringInt DependsOn yaml.StringSlice `yaml:"depends_on"` Trigger yaml.Constraints Labels yaml.SliceMap Pipeline []map[string]*yaml.Container Services map[string]*yaml.Container Networks map[string]Network Volumes map[string]Volume Secrets map[string]Secret }
Config represents the pipeline configuration.
func ParseBytes ¶
ParseBytes parses the configuration from bytes b.
func ParseMulti ¶
ParseMulti parses the configurations from bytes b.
func ParseMultiBytes ¶
ParseMultiBytes parses the configurations from bytes b.
func ParseMultiFile ¶
ParseMultiFile parses the configurations from path p.
func ParseMultiString ¶
ParseMultiString parses the configurations from string s.
func ParseString ¶
ParseString parses the configuration from string s.
type Platform ¶
type Platform struct { Name string OS string `yaml:"os"` Arch string `yaml:"arch"` Variant string `yaml:"variant"` Kernel string `yaml:"kernel"` }
Platform provides platform details
type Secret ¶
type Secret struct { External yaml.External File string Aescbc string Aesgcm string Secretbox string Driver string DriverOpts map[string]interface{} `yaml:"driver_opts,omitempty"` }
Secret represents the container secret configuration.