Documentation
¶
Overview ¶
Package openslosdk provides utilities for working with openslo.Object.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode reads objects from io.Reader and decodes them, according to the provided ObjectFormat, into a slice of openslo.Object.
func Encode ¶
Encode writes the provided openslo.Object to io.Writer, according to the provided ObjectFormat.
func FilterByKind ¶
FilterByKind filters openslo.Object slice and returns its subset matching the type constraint.
Types ¶
type ObjectFormat ¶
type ObjectFormat int
ObjectFormat represents the serialization format of openslo.Object.
const ( FormatYAML ObjectFormat = iota + 1 FormatJSON )
func (ObjectFormat) String ¶
func (f ObjectFormat) String() string
String implements the fmt.Stringer interface.
func (ObjectFormat) Validate ¶
func (f ObjectFormat) Validate() error
Validate checks if ObjectFormat is supported.
Click to show internal directories.
Click to hide internal directories.