yamlst

package
v0.0.0-...-47d5559 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MyTest

func MyTest() string

Types

type FilesUpdate

type FilesUpdate struct {
	Files []string `yaml:"files,omitempty"`
}

type Platform

type Platform struct {
	OS string `yaml:"os,omitempty"`
}

type Spec

type Spec struct {
	Timestamp  time.Time   `yaml:"timestamp,omitempty"`
	Platform   Platform    `yaml:"platform,omitempty"`
	DockerCMD  string      `yaml:"cmd"`
	DockerPush string      `yaml:"push"`
	LastCMD    string      `yaml:"last-cmd"`
	Files      FilesUpdate `yaml:"changes,omitempty"`
}

type TopYaml

type TopYaml struct {
	Image   string `yaml:"image"`
	Version string `yaml:"version"`
	Config  string `yaml:"local-config,omitempty"`
	Git     string `yaml:"dopt-git,omitempty"`
	Spec    Spec   `yaml:"spec,omitempty"`
}

func NewDY

func NewDY() *TopYaml

func (*TopYaml) Comments

func (dy *TopYaml) Comments() (string, error)

func (*TopYaml) CommentsWithTags

func (dy *TopYaml) CommentsWithTags(tagBegin, tagEnd string) (string, error)

func (*TopYaml) ImageVersion

func (dy *TopYaml) ImageVersion(image, version string)

func (*TopYaml) NextMajor

func (dy *TopYaml) NextMajor() error

func (*TopYaml) NextMinor

func (dy *TopYaml) NextMinor() error

func (*TopYaml) UnMarshal

func (dy *TopYaml) UnMarshal(s string) error

Jump to

Keyboard shortcuts

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