Documentation ¶
Index ¶
- Constants
- Variables
- func AddResource(fileName, resourceName, key string, c *cli.Context) error
- func AutoAddResource(fileName, key string, c *cli.Context) error
- func RenderJSON(filePath string) string
- func Validate(c *cli.Context, startTime time.Time)
- func WriteJSON(filePath string, gossConfig GossConfig) error
- type GossConfig
Constants ¶
View Source
const ( JSON = iota YAML UNSET )
Variables ¶
View Source
var StoreFormat = UNSET
Functions ¶
func AddResource ¶ added in v0.1.0
func AutoAddResource ¶ added in v0.1.0
func RenderJSON ¶
Reads json file recursively returning string
func WriteJSON ¶
func WriteJSON(filePath string, gossConfig GossConfig) error
Types ¶
type GossConfig ¶ added in v0.1.0
type GossConfig struct { Files resource.FileMap `json:"file,omitempty" yaml:"file,omitempty"` Packages resource.PackageMap `json:"package,omitempty" yaml:"package,omitempty"` Addrs resource.AddrMap `json:"addr,omitempty" yaml:"addr,omitempty"` Ports resource.PortMap `json:"port,omitempty" yaml:"port,omitempty"` Services resource.ServiceMap `json:"service,omitempty" yaml:"service,omitempty"` Users resource.UserMap `json:"user,omitempty" yaml:"user,omitempty"` Groups resource.GroupMap `json:"group,omitempty" yaml:"group,omitempty"` Commands resource.CommandMap `json:"command,omitempty" yaml:"command,omitempty"` DNS resource.DNSMap `json:"dns,omitempty" yaml:"dns,omitempty"` Processes resource.ProcessMap `json:"process,omitempty" yaml:"process,omitempty"` Gossfiles resource.GossfileMap `json:"gossfile,omitempty" yaml:"gossfile,omitempty"` }
func NewGossConfig ¶ added in v0.1.0
func NewGossConfig() *GossConfig
func ReadJSONData ¶
func ReadJSONData(data []byte) GossConfig
Reads json byte array returning GossConfig
func (*GossConfig) Resources ¶ added in v0.1.0
func (c *GossConfig) Resources() []resource.Resource
Click to show internal directories.
Click to hide internal directories.