yamlrepo

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YAMLRepo

type YAMLRepo struct {
	// YAMLFilePath yaml file path for repo
	YAMLFilePath string
	// NodeGroups node groups info from yaml
	NodeGroups []model.NodeGroup `yaml:"NodeGroups"`
}

YAMLRepo yaml format repo

func New

func New(yamlFilePath string) (*YAMLRepo, error)

New create yaml repo

func (*YAMLRepo) FilterNodeGroups

func (yp *YAMLRepo) FilterNodeGroups(gName string) ([]model.NodeGroup, error)

FilterNodeGroups find groups info from yaml repo

func (*YAMLRepo) FilterNodeGroupsAndNodes

func (yp *YAMLRepo) FilterNodeGroupsAndNodes(gName string, nNames ...string) ([]model.NodeGroup, error)

FilterNodeGroupsAndNodes find nodes and groups info from yaml repo

func (*YAMLRepo) FilterNodes added in v0.2.0

func (yp *YAMLRepo) FilterNodes(gName string, nNames ...string) ([]model.Node, error)

FilterNodes find nodes info from yaml repo

Jump to

Keyboard shortcuts

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