Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchManifest ¶ added in v0.81.0
func FetchManifest(ociName string, disableTLS bool) (v1.Descriptor, error)
FetchManifest fetches the OCI manifest from the remote repository
Types ¶
type PolicySpec ¶
type PolicySpec struct { // Authors is a list of authors of the policy Authors []string `yaml:",omitempty"` // Changelog is the URL of the policy changelog Changelog string `yaml:",omitempty"` // Description is the policy description Description string `yaml:",omitempty"` // Documentation is the URL of the policy documentation Documentation string `yaml:",omitempty"` // Licenses is the policy license Licenses []string `yaml:",omitempty"` // Source is the URL of the policy source code Source string `yaml:",omitempty"` // Vendor is the policy vendor Vendor string `yaml:",omitempty"` // Version is the policy version, it must be semantic versioning compliant without the leading v Version string `yaml:",omitempty"` // URL is the URL of the policy source code URL 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.