Documentation ¶
Index ¶
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"` }
struct to embed in objects, to provide default implementation
func (BaseObject) Bytes ¶
func (o BaseObject) Bytes() []byte
func (BaseObject) Metas ¶
func (o BaseObject) Metas() resource.Meta
func (BaseObject) ResourceID ¶
func (o BaseObject) ResourceID() resource.ResourceID
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.