yamltypes

package
v0.0.0-...-fc91ca8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 8 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(unmarshal func(interface{}) error) 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) ToMap

func (s *MaporColonSlice) ToMap() map[string]string

ToMap returns the list of string as a map splitting using = the key=value

func (*MaporColonSlice) UnmarshalYAML

func (s *MaporColonSlice) UnmarshalYAML(unmarshal func(interface{}) error) 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) ToMap

func (s *MaporEqualSlice) ToMap() map[string]string

ToMap returns the list of string as a map splitting using = the key=value

func (*MaporEqualSlice) UnmarshalYAML

func (s *MaporEqualSlice) UnmarshalYAML(unmarshal func(interface{}) error) 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) ToMap

func (s *MaporSpaceSlice) ToMap() map[string]string

ToMap returns the list of string as a map splitting using = the key=value

func (*MaporSpaceSlice) UnmarshalYAML

func (s *MaporSpaceSlice) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaller interface.

type MemStringorInt

type MemStringorInt int64

MemStringorInt represents a string or an integer the String supports notations like 10m for then Megabyte of memory

func (*MemStringorInt) UnmarshalYAML

func (s *MemStringorInt) UnmarshalYAML(unmarshal func(interface{}) error) 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(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaller interface.

type StringorInt

type StringorInt int64

StringorInt represents a string or an integer.

func (*StringorInt) UnmarshalYAML

func (s *StringorInt) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaller interface.

type Stringorslice

type Stringorslice strslice.StrSlice

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

func (*Stringorslice) UnmarshalYAML

func (s *Stringorslice) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaller interface.

type Volume

type Volume struct {
	Source      string `yaml:"-"`
	Destination string `yaml:"-"`
	AccessMode  string `yaml:"-"`
}

Volume represent a service volume

func (*Volume) String

func (v *Volume) String() string

String implements the Stringer interface.

type Volumes

type Volumes struct {
	Volumes []*Volume
}

Volumes represents a list of service volumes in compose file. It has several representation, hence this specific struct.

func (*Volumes) HashString

func (v *Volumes) HashString() string

Generate a hash string to detect service volume config changes

func (Volumes) MarshalYAML

func (v Volumes) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaller interface.

func (*Volumes) UnmarshalYAML

func (v *Volumes) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaller interface.

Jump to

Keyboard shortcuts

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