yaml

package
v0.0.0-...-7676619 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command strslice.StrSlice

Command represents a docker command, can be a string or an array of strings.

func (*Command) UnmarshalYAML

func (s *Command) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

type MaporColonSlice

type MaporColonSlice []string

MaporColonSlice represents a slice of strings that gets unmarshal from a YAML map into 'key:value' string.

func (*MaporColonSlice) UnmarshalYAML

func (s *MaporColonSlice) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

type MaporEqualSlice

type MaporEqualSlice []string

MaporEqualSlice represents a slice of strings that gets unmarshal from a YAML map into 'key=value' string.

func (*MaporEqualSlice) UnmarshalYAML

func (s *MaporEqualSlice) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

type MaporSpaceSlice

type MaporSpaceSlice []string

MaporSpaceSlice represents a slice of strings that gets unmarshal from a YAML map into 'key value' string.

func (*MaporSpaceSlice) UnmarshalYAML

func (s *MaporSpaceSlice) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

type SliceorMap

type SliceorMap map[string]string

SliceorMap represents a slice or a map of strings.

func (*SliceorMap) UnmarshalYAML

func (s *SliceorMap) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

type Stringorslice

type Stringorslice strslice.StrSlice

Stringorslice represents a string or an array of strings. Using engine-api Strslice and augment it with YAML marshalling stuff.

func (*Stringorslice) UnmarshalYAML

func (s *Stringorslice) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

type Ulimit

type Ulimit struct {
	Name string
	// contains filtered or unexported fields
}

Ulimit represents ulimit information.

func NewUlimit

func NewUlimit(name string, soft int64, hard int64) Ulimit

NewUlimit creates a Ulimit based on the specified parts.

func (Ulimit) MarshalYAML

func (u Ulimit) MarshalYAML() (tag string, value interface{}, err error)

MarshalYAML implements the Marshaller interface.

type Ulimits

type Ulimits struct {
	Elements []Ulimit
}

Ulimits represents a list of Ulimit. It is, however, represented in yaml as keys (and thus map in Go)

func (Ulimits) MarshalYAML

func (u Ulimits) MarshalYAML() (tag string, value interface{}, err error)

MarshalYAML implements the Marshaller interface.

func (*Ulimits) UnmarshalYAML

func (u *Ulimits) UnmarshalYAML(tag string, value interface{}) error

UnmarshalYAML implements the Unmarshaller interface.

Jump to

Keyboard shortcuts

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