Documentation ¶
Index ¶
- func Load(namespace string, base, atLeastOne string, more ...string) (map[string]resource.Resource, []string, error)
- func ParseMultidoc(namespace string, multidoc []byte, source string) (map[string]resource.Resource, error)
- type BaseObject
- func (o *BaseObject) Bytes() []byte
- func (o *BaseObject) GetOriginalKey() string
- func (o *BaseObject) Metas() resource.Meta
- func (o BaseObject) ResourceID() resource.ResourceID
- func (o *BaseObject) SetSourceKind(kind string)
- func (o *BaseObject) Source() string
- func (o *BaseObject) SourceKind() string
- type List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(namespace string, base, atLeastOne string, more ...string) (map[string]resource.Resource, []string, error)
Load takes paths to directories or files, and creates an object set based on the file(s) therein. Resources are named according to the file content, rather than the file name of directory structure.
Types ¶
type BaseObject ¶
type BaseObject struct { SourceName string BytesArray []byte Kind string `yaml:"kind"` Meta resource.Meta `yaml:"metadata"` OriginalKey string }
struct to embed in objects, to provide default implementation
func (*BaseObject) Bytes ¶
func (o *BaseObject) Bytes() []byte
func (*BaseObject) GetOriginalKey ¶
func (o *BaseObject) GetOriginalKey() string
func (*BaseObject) Metas ¶
func (o *BaseObject) Metas() resource.Meta
func (BaseObject) ResourceID ¶
func (o BaseObject) ResourceID() resource.ResourceID
func (*BaseObject) SetSourceKind ¶
func (o *BaseObject) SetSourceKind(kind string)
func (*BaseObject) Source ¶
func (o *BaseObject) Source() string
func (*BaseObject) SourceKind ¶
func (o *BaseObject) SourceKind() string
type List ¶
type List struct { BaseObject Items []resource.Resource }
Click to show internal directories.
Click to hide internal directories.