Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PolicySpec ¶
type PolicySpec struct {
// Authors is a list of authors of the policy
Authors []string `yaml:",omitempty"`
// URL is the URL of the policy source code
URL string `yaml:",omitempty"`
// Documentation is the URL of the policy documentation
Documentation string `yaml:",omitempty"`
// Source is the URL of the policy source code
Source string `yaml:",omitempty"`
// Version is the policy version, it must be semantic versioning compliant without the leading v
Version string `yaml:",omitempty"`
// Vendor is the policy vendor
Vendor string `yaml:",omitempty"`
// Licenses is the policy license
Licenses []string `yaml:",omitempty"`
// Description is the policy description
Description string `yaml:",omitempty"`
}
func LoadPolicyFile ¶
func LoadPolicyFile(filename string) (*PolicySpec, error)
LoadPolicyFile loads an Updatecli compose file into a compose Spec
func (*PolicySpec) Sanitize ¶
func (s *PolicySpec) Sanitize() error
Sanitize validates the policy spec and set default values accordingly
Click to show internal directories.
Click to hide internal directories.