registry

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

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

func Pull

func Pull(ociName string, disableTLS bool) (manifests []string, values []string, secrets []string, err error)

Pull pulls an OCI image from a registry.

func Push

func Push(policyMetadataFile string, manifests []string, values []string, secrets []string, policyReferenceNames []string, disableTLS bool, fileStore string, overwrite bool) error

Push pushes updatecli manifest(s) as an OCI image to an OCI registry.

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

Jump to

Keyboard shortcuts

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